Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LAYAMCP_HOSTNo监听地址127.0.0.1
LAYAMCP_PORTNo监听端口8077
LAYAMCP_DEVICENoauto / cpu / cuda / mpsauto
LAYAMCP_MODELSNo常驻 checkpoint,逗号分隔或 allenglish,multilingual
LAYAMCP_WARMUPNo启动时预热加载模型true
LAYAMCP_HF_TOKENNo私有镜像或受限下载时使用
LAYAMCP_LOG_JSONNo结构化 JSON 日志true
LAYAMCP_MCP_PATHNoMCP 挂载路径/mcp
LAYAMCP_LOG_LEVELNoDEBUG / INFO / WARNING / ERROR / CRITICALINFO
LAYAMCP_TRANSPORTNo传输方式: streamable-http / stdio / ssestreamable-http
LAYAMCP_API_PREFIXNoREST 前缀/v1
LAYAMCP_MAX_CHOICESNo单个 choice 问题最大候选数60
LAYAMCP_DOCS_ENABLEDNo是否开启 /docstrue
LAYAMCP_DEFAULT_MODELNo默认 checkpointenglish
LAYAMCP_MAX_QUESTIONSNo单次调用最大问题数32
LAYAMCP_WORKER_THREADSNo推理线程池大小2
LAYAMCP_MAX_STATE_CHARSNostate 最大字符数120000
LAYAMCP_METRICS_ENABLEDNo是否采集指标true
LAYAMCP_MARGIN_THRESHOLDNotop1−top2 低于此值视为「近距平局」→ escalate0.05
LAYAMCP_REQUEST_ID_HEADERNo请求 id 头名称x-request-id
LAYAMCP_AUTO_TASK_DETECTIONNo自动识别语言/脚本/工作流并路由true
LAYAMCP_CONFIDENCE_THRESHOLDNo达到此置信度才可能判为 auto_execute0.80

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources