Path

How a request reaches a tool

One protocol, three stages: a client frame, a confined server, a registered tool.

Clients

Local stdio subprocess
Remote HTTP client
Desktop chat app
IDE extension
Terminal coding agent
Script or CI job
JSON-RPC 2.0 · initialize → tools/list → tools/call

raven-mcp

Protocol handler
Tool registry
Workspace confinement
Auth: X-Raven-Key or Bearer
Tool execution, inside the allowed path

Tools (66)

File read / write / edit
Shell + sandbox policy
Web search / fetch
Browser automation
Git, tests, LSP
Sub-agents, todos, memory
Cron, artifacts, TTS

Numbers from the repository

Counted in the code on this branch, not estimated.

Registered tools
66
Channel adapters
15
Transports
stdio · HTTP
Protocol version
2025-03-26
Runtime
Python 3.11+
License
MIT

Each tool carries its own JSON Schema, so tools/list returns the parameter names and types a client needs before it calls anything. The two stdio servers answer the same registry and differ only in the name they report at initialize: raven-mcp and ravencode.

Where the server answers
Surface Detail
stdio, Raven server raven-mcp --workspace /path/to/project
stdio, RavenCode server ravencode-mcp --workspace /path/to/project
module entry points python -m raven.core.mcp / python -m ravencode.mcp
JSON-RPC over HTTP POST /mcp/rpc
plain tool list GET /mcp/tools
direct tool call POST /mcp/tools/{name}
events and liveness GET /mcp/events, GET /mcp/health
auth X-Raven-Key or Authorization: Bearer
path confinement --workspace, rejects outside paths and symlink escapes

Both transports end in the same handler: a frame that arrives over stdio and one that arrives at POST /mcp/rpc are parsed, dispatched and confined by the same code. That is why the console can show one recording for both.