Skip to content

xops mcp ​

以下列出命令用法和可用选项。已安装版本支持的参数以 --help 为准。

text
启动 MCP 服务端,默认使用标准输入输出 (stdio)。通过 --transport http 启用需要 Bearer Token 的 Streamable HTTP;不支持旧版 HTTP+SSE。MCP 不会提示输入 SSH 凭据或解锁密钥库。

Usage:
  xops mcp [flags]
  xops mcp [command]

Available Commands:
  recover     检查或维护已停止 MCP 服务的传输任务
  serve       启动 stdio 或 Streamable HTTP MCP 服务端

Flags:
      --allowed-hosts strings     额外允许的 HTTP Host(含端口)
      --allowed-origins strings   额外允许的 HTTP Origin
  -h, --help                      help for mcp
      --listen string             HTTP 监听地址,默认 127.0.0.1:8080
      --public-url string         客户端访问的 HTTP(S) 根地址,局域网监听时必须设置
      --state-dir string          文件传输任务元数据目录
      --token-env string          提供 HTTP Bearer Token 的环境变量名称
      --token-file string         读取 HTTP Bearer Token 的文件,与 --token-env 互斥
      --transport string          MCP 传输方式:stdio 或 http (default "stdio")

Global Flags:
      --color string       ANSI 颜色输出 (auto=自动检测管道/重定向, never=禁用, always=强制启用)
      --debug              开启调试模式 (等同于 --log-level=debug)
      --lang string        界面语言 (zh/en)
      --log-level string   设置内部诊断日志级别 (debug, info, warn, error)

Use "xops mcp [command] --help" for more information about a command.

MIT License