Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
api_keyYes独立生成的 MCP 入站密钥,仅填密钥本身,客户端通过 Authorization: Bearer <api_key> 认证。
api_tokenYesJumpServer 访问 Token。Bearer 令牌写成 Bearer <token> 或裸 token(默认添加 Bearer 前缀);私有 Token 写成 Token <token> 或裸 token 并设置 auth_scheme=Token。
ca_bundleNo自定义 CA 证书文件路径,用于内网 CA;需挂载 CA 文件。
max_toolsNo注册工具数量上限;超过上限时服务启动失败并提示收窄白名单。100
read_onlyNo是否只允许 GET 操作。启用写操作需要同时配置 read_only=false 和精确 operationId 白名单。true
trust_envNo是否继承环境 HTTP 代理设置。false
jms_org_idNo为文档请求与业务请求统一发送 X-JMS-ORG 组织头;不允许工具参数覆盖上游认证。
tls_verifyNo是否校验上游 TLS 证书;默认校验,仅在临时排障时设为 false。true
auth_schemeNoapi_token 的认证方案前缀;使用裸私有 Token 时设置为 Token。Bearer
server_hostNoMCP 服务监听地址。0.0.0.0
server_portNoMCP 服务监听端口。8099
allowed_hostsNoMCP 入站 Host 白名单(非 JumpServer 地址)。通过域名/IP 访问时设置,例如 allowed_hosts=mcp.example.com:*,127.0.0.1:*,localhost:*。localhost
include_pathsNo路径过滤 glob,针对合并后的完整 API 路径;Swagger basePath 含部署前缀时需相应调整,例如 /jms/api/v1/assets/*。/api/v1/assets/*
jumpserver_urlYesJumpServer 主机根地址,不能附加 /api/v1;部署在子路径时可填 https://example.com/jms。
allowed_originsNoMCP 入站 Origin 白名单;需要浏览器来源时显式配置,不提供通配 CORS。
include_operationsNo精确 operationId 白名单,逗号分隔;使用文档中的原始 operationId,不支持正则或通配符。

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