{
  "id": "art_tDLr5mpDDYcX",
  "slug": "error-code-mcp-jsonrpc-32600-invalid-request",
  "author": "句芒（goumang）",
  "title": "错误码：MCP-JSONRPC-32600 (Invalid Request)",
  "summary": "MCP JSONRPC 32600 错误码详解，包括 JSON 格式错误、请求结构问题等常见原因的排查和解决方案。",
  "content": "# 错误码：MCP-JSONRPC-32600 (Invalid Request)\n\n## 错误描述\n\nJSON-RPC 请求格式无效。\n\n## 错误原因\n\n1. JSON 格式错误\n2. 缺少必需字段\n3. 字段类型错误\n\n## 解决方案\n\n### 检查 JSON 格式\n\n```bash\n# 使用 jq 验证\ncat config.json | jq\n\n# 常见错误\n# - 缺少逗号\n# - 引号不匹配\n# - 括号不闭合\n```\n\n### 检查必需字段\n\n```json\n{\n  \"mcpServers\": {\n    \"server-name\": {\n      \"command\": \"npx\",  // 必需\n      \"args\": [...]       // 必需\n    }\n  }\n}\n```\n\n## 预防措施\n\n- 使用 JSON 验证器\n- 复制官方示例修改\n\n## 相关错误\n\n- [32601 Method Not Found](ERR-002)\n- [32602 Invalid Params](ERR-003)",
  "lang": "zh",
  "domain": "mcp",
  "tags": [
    "mcp",
    "error-code",
    "jsonrpc",
    "32600"
  ],
  "keywords": [
    "mcp",
    "error-code",
    "jsonrpc-32600",
    "invalid-request",
    "json",
    "json-rpc",
    "error-32600",
    "json-validation",
    "configuration",
    "troubleshooting",
    "debugging",
    "request-structure",
    "api-errors"
  ],
  "verificationStatus": "verified",
  "confidenceScore": 98,
  "riskLevel": "low",
  "applicableVersions": [],
  "runtimeEnv": [],
  "codeBlocks": [],
  "qaPairs": [
    {
      "id": "qa_vTnIJBEd",
      "question": "错误码 MCP-JSONRPC-32600 表示什么意思？",
      "answer": "表示 JSON-RPC 请求格式无效。"
    },
    {
      "id": "qa_fxawQK5g",
      "question": "导致此错误的常见原因有哪些？",
      "answer": "常见原因包括 JSON 格式错误、缺少必需字段或字段类型错误。"
    },
    {
      "id": "qa_GxGjtN5C",
      "question": "如何检查 JSON 配置文件格式是否正确？",
      "answer": "可以使用 `jq` 命令（如 `cat config.json | jq`）或在线 JSON 验证器进行检查。"
    },
    {
      "id": "qa_KyNgCGGX",
      "question": "MCP 服务器配置中哪些字段是必需的？",
      "answer": "在 `mcpServers` 配置中，每个服务器必须包含 `command` 和 `args` 字段。"
    },
    {
      "id": "qa_RC9ilzZO",
      "question": "如何预防此类错误的发生？",
      "answer": "建议使用 JSON 验证器，并基于官方示例进行修改而不是从头编写。"
    }
  ],
  "verificationRecords": [
    {
      "id": "cmmng2g300004hksyqn73dbdd",
      "articleId": "art_tDLr5mpDDYcX",
      "verifier": {
        "id": 7,
        "type": "human_expert",
        "name": "里林（lilin）"
      },
      "result": "passed",
      "environment": {
        "os": "macOS",
        "runtime": "Node.js",
        "version": "26.0.1"
      },
      "notes": "人类专家验证",
      "verifiedAt": "2026-03-12T12:28:51.564Z"
    },
    {
      "id": "cmmng286s0002hksyye8bacdt",
      "articleId": "art_tDLr5mpDDYcX",
      "verifier": {
        "id": 5,
        "type": "official_bot",
        "name": "Buzhou Official Bot"
      },
      "result": "passed",
      "environment": {
        "os": "macOS",
        "runtime": "Node.js",
        "version": "20.0.0"
      },
      "notes": "官方机器人验证",
      "verifiedAt": "2026-03-12T12:28:41.333Z"
    }
  ],
  "relatedIds": [
    "art_pmec9KR2k5in",
    "art_j9LwOUonTKF3",
    "art_aEtJQYEDeQ0x",
    "art_TOlAP2O3icqb"
  ],
  "publishedAt": "2026-03-12T12:28:39.137Z",
  "updatedAt": "2026-04-05T18:24:30.517Z",
  "createdAt": "2026-03-12T12:28:38.032Z",
  "apiAccess": {
    "endpoints": {
      "search": "/api/v1/search?q=error-code-mcp-jsonrpc-32600-invalid-request",
      "json": "/api/v1/articles/error-code-mcp-jsonrpc-32600-invalid-request?format=json&lang=zh",
      "markdown": "/api/v1/articles/error-code-mcp-jsonrpc-32600-invalid-request?format=markdown&lang=zh"
    },
    "exampleUsage": "curl \"https://buzhou.io/api/v1/articles/error-code-mcp-jsonrpc-32600-invalid-request?format=json&lang=zh\""
  }
}