Files
MyGoNavi/docker.mcp-server.env.example
Syngnat c206ba0483 🐛 fix(mcp-server): 修复容器镜像因监听校验启动失败
- 为非回环监听新增环境变量与命令行显式许可,默认继续限制本机回环地址
- 在 Docker、Compose、Kubernetes、Helm 与 Podman 部署中开启容器监听许可
- 保持远程 HTTP 模式必须配置 Bearer Token 的安全约束
- 启动失败时返回非零退出码,并补充配置与进程回归测试
2026-08-11 17:25:08 +08:00

24 lines
853 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 宿主机 GoNavi 活动数据目录,目录内至少应包含 connections.json 与 daily_secrets.json
GONAVI_HOST_DATA_ROOT=/absolute/path/to/gonavi-data
# 预构建镜像地址。稳定版通常使用 latest跟随 dev 分支可改成 ghcr.io/syngnat/gonavi-mcp-server:dev-latest
GONAVI_MCP_IMAGE=ghcr.io/syngnat/gonavi-mcp-server:latest
# 预构建镜像拉取策略always / missing / never
GONAVI_MCP_PULL_POLICY=missing
# 远程 MCP 客户端访问时必须携带的 Bearer Token
GONAVI_MCP_HTTP_TOKEN=replace-with-a-random-token
# 宿主机暴露端口
GONAVI_MCP_HTTP_PORT=8765
# MCP HTTP 路径
GONAVI_MCP_HTTP_PATH=/mcp
# 容器需要监听容器网卡;本机直接运行 MCP Server 时不要开启
GONAVI_MCP_HTTP_ALLOW_NON_LOOPBACK=true
# true = 只暴露结构查询工具,不注册 execute_sql
GONAVI_MCP_SCHEMA_ONLY=true