{
  "servers": [
    {
      "id": "demo",
      "name": "示例服务端（stdio）",
      "command": ["python3", "scripts/mcp_demo_server.py"]
    },
    {
      "id": "demo-rust",
      "name": "示例服务端（Rust）",
      "command": ["target/release/examples/demo_server"]
    },
    {
      "id": "demo-go",
      "name": "示例服务端（Go）",
      "command": ["target/mcp-demo/demo-go"]
    },
    {
      "id": "demo-zig",
      "name": "示例服务端（Zig）",
      "command": ["target/mcp-demo/demo-zig"]
    },
    {
      "id": "tools",
      "name": "命令行工具示例",
      "cli": [
        {
          "name": "wc",
          "description": "统计文本的行数、词数和字节数",
          "command": ["wc"],
          "stdin": "text",
          "input_schema": {"type": "object", "properties": {"text": {"type": "string", "description": "要统计的文本"}}, "required": ["text"]}
        },
        {
          "name": "json_format",
          "description": "格式化并校验一段 JSON",
          "command": ["python3", "-m", "json.tool", "--indent", "{indent}"],
          "stdin": "json",
          "input_schema": {"type": "object", "properties": {"json": {"type": "string"}, "indent": {"type": "integer", "minimum": 0, "maximum": 8, "default": 2}}, "required": ["json"]}
        },
        {
          "name": "uname",
          "description": "系统信息",
          "command": ["uname", "-a"],
          "timeout_s": 5
        }
      ]
    }
  ],
  "_examples": [
    {"id": "my-go", "name": "自己的 Go MCP（stdio）", "command": ["/path/to/go-mcp-server"], "cwd": ".", "env": {"LOG_LEVEL": "debug"}, "timeout_s": 60},
    {"id": "my-rust", "name": "自己的 Rust MCP", "command": ["cargo", "run", "--quiet", "--manifest-path", "/path/to/Cargo.toml"]},
    {"id": "my-zig-cli", "name": "Zig 命令行工具", "cli": [{"name": "convert", "command": ["/path/to/zig-out/bin/convert", "--from={from}", "{input}"], "input_schema": {"type": "object", "properties": {"from": {"type": "string", "enum": ["csv", "tsv"]}, "input": {"type": "string"}}, "required": ["input"]}}]},
    {"id": "remote", "name": "远程 MCP（Streamable HTTP）", "url": "https://example.com/mcp", "headers": {"Authorization": "Bearer <token>"}},
    {"id": "shell", "name": "受限 shell（免确认，只读命令）", "shell": {"allow": ["ls", "cat", "head", "tail", "wc", "grep"], "cwd": ".", "timeout_s": 30, "confirm": false}},
    {"id": "shell-git", "name": "受限 shell（git，每条在终端确认）", "shell": {"allow": ["git"], "cwd": ".", "timeout_s": 60, "confirm": true}}
  ]
}
