?

协议契约

Rousseau 的 MCP 服务器(internal/mcp/server.go)通过 stdio 说 JSON-RPC 2.0,并声明 internal/mcp/tools.go 中定义的工具。它处理如下方法:

  • initialize —— 返回 ServerCapabilities.Tools。
  • initialized —— 通知,无回复。
  • ping —— 返回 {}。
  • tools/list —— 按插入顺序返回四个工具。
  • tools/call —— 调用工具处理器,返回带 content 与 isError 的 ToolsCallResult。
  • resources/list、prompts/list —— 返回空数组(见下方路线图注释)。
  • shutdown —— 返回 {}。

任何通过 stdio 说 JSON-RPC 并调用上述四个方法的 MCP 宿主都兼容。

已测试客户端

客户端 状态 如何注册
Claude Desktop(macOS / Windows) 可用。 ~/Library/Application Support/Claude/claude_desktop_config.json(macOS)或 %APPDATA%\Claude\claude_desktop_config.json(Windows)。
Claude CLI(claude) 可用。 --mcp-config <file> 或 ~/.claude/config.json 中的 [mcp] 块。
Continue.dev(VS Code / JetBrains) 可用。 ~/.continue/config.json 的 mcpServers 块。
Codeium(IDE 扩展) 当 Codeium 暴露 MCP 宿主模式(近期版本)时可用。安装因 IDE 而异。
Cursor(近期版本) 可用。在 Cursor 自身的 MCP 设置 UI 下注册。
任意 Go / TypeScript / Python MCP 宿主 SDK 可用。以 command: "rousseau", args: ["mcp"] 实例化。

未知 / 未测试但可能兼容:zed、windsurf、aider。若您的宿主支持 MCP stdio 规范,rousseau 就能工作。

Claude Desktop

编辑 claude_desktop_config.json(路径见上)并添加:

{
  "mcpServers": {
    "rousseau": {
      "command": "/usr/local/bin/rousseau",
      "args": ["mcp"]
    }
  }
}

Restart Claude Desktop. The four rousseau_* tools show up in the tool picker on the next chat session.

For per-workspace state, add an env override:

{
  "mcpServers": {
    "rousseau-work": {
      "command": "/usr/local/bin/rousseau",
      "args": ["--config", "/home/seb/.config/rousseau/work.yaml", "mcp"]
    }
  }
}

Claude CLI

Point the CLI at a config:

claude --mcp-config <(cat <<'JSON'
{
  "mcpServers": {
    "rousseau": {
      "command": "rousseau",
      "args": ["mcp"]
    }
  }
}
JSON
)

Or bake it into ~/.claude/config.json under an mcpServers block using the same shape.

Continue.dev

Add to ~/.continue/config.json:

{
  "mcpServers": [
    {
      "name": "rousseau",
      "command": "rousseau",
      "args": ["mcp"]
    }
  ]
}

Continue picks up the tools on the next model call.

Cursor

Cursor exposes MCP registration in its Settings > MCP UI. Register a new server named rousseau with command rousseau and args mcp. No config file editing required.

Codeium

Codeium's MCP support ships behind a feature flag in recent versions of the IDE extension. Consult the extension's docs — the registration is again a command / args pair.

Environment variables and secrets

Because rousseau's MCP surface is read-only over the session store, it does not need provider credentials. ANTHROPIC_API_KEY and similar are unused by rousseau mcp — only by the transport / chat daemons that generate sessions.

Common issues

  • "Server exited immediately." Rousseau's mcp command opens state.path. If the file isn't writable, the process exits non-zero. Run rousseau mcp from a shell to see the exact error.
  • "Unknown tool: rousseau_search_sessions." The host cached an older tool list. Restart the host.
  • Duplicate registration. If two rousseau servers are registered with the same name, only the last one wins.

Resources and prompts

resources/list and prompts/list currently return empty. The Exposed resources page tracks the roadmap for exposing sessions as MCP resources.

Related

Type to search 150+ pages. Ranking: BM25 with title/description boost.