跳到主要内容

mcp.json 配置示例

CrashSight MCP 使用 Streamable HTTP 传输。在兼容 MCP 的客户端中,将以下 mcp.json 配置加入 MCP Server 列表,并把 csk_xxx 替换为您在 MCP电子令牌管理 页面生成的真实 Key。

请按您使用的 CrashSight 站点选择对应配置,国内站与国际站的地址和 Key 不能混用。

1 国内环境

适用于控制台地址为 https://crashsight.qq.com 的用户。将下面内容保存到 CodeBuddy 用户级配置文件 ~/.codebuddy/.mcp.json(若文件已存在,将 crashsight 段合并进 mcpServers 即可):

{
"mcpServers": {
"crashsight": {
"type": "http",
"url": "https://crashsight.qq.com/mcp",
"headers": {
"X-CSMCP-API-KEY": "csk_xxx"
}
}
}
}

2 国际环境

适用于控制台地址为 https://crashsight.wetest.net 的用户。配置方式与国内环境相同,仅域名不同:

{
"mcpServers": {
"crashsight": {
"type": "http",
"url": "https://crashsight.wetest.net/mcp",
"headers": {
"X-CSMCP-API-KEY": "csk_xxx"
}
}
}
}

3 字段说明

字段说明
mcpServers.crashsightMCP Server 名称,可按客户端习惯修改
type固定为 "http"(Streamable HTTP)
urlCrashSight MCP 服务地址,必须与 Key 所属环境一致
headers.X-CSMCP-API-KEY个人 API Key,将 csk_xxx 替换为真实令牌

保存配置后,请按 CodeBuddy 使用示例 完成联调。部分客户端若未要求 type 字段,可只保留 urlheaders