laya-mcp
by WayneCommand
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LAYAMCP_HOST | No | 监听地址 | 127.0.0.1 |
| LAYAMCP_PORT | No | 监听端口 | 8077 |
| LAYAMCP_DEVICE | No | auto / cpu / cuda / mps | auto |
| LAYAMCP_MODELS | No | 常驻 checkpoint,逗号分隔或 all | english,multilingual |
| LAYAMCP_WARMUP | No | 启动时预热加载模型 | true |
| LAYAMCP_HF_TOKEN | No | 私有镜像或受限下载时使用 | |
| LAYAMCP_LOG_JSON | No | 结构化 JSON 日志 | true |
| LAYAMCP_MCP_PATH | No | MCP 挂载路径 | /mcp |
| LAYAMCP_LOG_LEVEL | No | DEBUG / INFO / WARNING / ERROR / CRITICAL | INFO |
| LAYAMCP_TRANSPORT | No | 传输方式: streamable-http / stdio / sse | streamable-http |
| LAYAMCP_API_PREFIX | No | REST 前缀 | /v1 |
| LAYAMCP_MAX_CHOICES | No | 单个 choice 问题最大候选数 | 60 |
| LAYAMCP_DOCS_ENABLED | No | 是否开启 /docs | true |
| LAYAMCP_DEFAULT_MODEL | No | 默认 checkpoint | english |
| LAYAMCP_MAX_QUESTIONS | No | 单次调用最大问题数 | 32 |
| LAYAMCP_WORKER_THREADS | No | 推理线程池大小 | 2 |
| LAYAMCP_MAX_STATE_CHARS | No | state 最大字符数 | 120000 |
| LAYAMCP_METRICS_ENABLED | No | 是否采集指标 | true |
| LAYAMCP_MARGIN_THRESHOLD | No | top1−top2 低于此值视为「近距平局」→ escalate | 0.05 |
| LAYAMCP_REQUEST_ID_HEADER | No | 请求 id 头名称 | x-request-id |
| LAYAMCP_AUTO_TASK_DETECTION | No | 自动识别语言/脚本/工作流并路由 | true |
| LAYAMCP_CONFIDENCE_THRESHOLD | No | 达到此置信度才可能判为 auto_execute | 0.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
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues