Scale Intelligence■ Docs
Docs / Start here / The stdio shim for Claude Code and other hosts

The stdio shim for Claude Code and other hosts.

A host such as Claude Code starts the stdio shim as a child process. The shim exchanges MCP messages over standard input and output and forwards every message to the local server's socket.

Figure 1Stdio shimspecified
HOSTClaude Code orany MCP hostSTDIO SHIMone message a linein and outLOCAL SOCKETon your machineLOCAL SERVERthe MCP serverThe shim implements the protocol only. A host that connects over a socket does not need it.flows forwardthe result
A host starts the stdio shim as a child process, and the shim forwards each message to the local server's socket.The shim adds no behaviour of its own.

Many hosts start an MCP server as a child process and exchange messages with it over standard input and output. The stdio shim is that process. The shim implements the protocol only, and it forwards each message to the local server over the local socket.

Claude Code setup#

claude mcp add scale-intelligence -- scale-local stdio
{ "mcpServers": { "scale-intelligence": { "command": "scale-local", "args": ["stdio"] } } }

The desktop app installs the shim. A host that connects over a socket or a WebSocket uses the local server’s listeners directly and does not need the shim.

Host capabilities#

The host reaches every tool of the platform and the app’s own tools. The host also gets four protocol extensions:

A host that declares none of the extensions receives the text form of every card.

The first call is si.session.whoami. It returns the person or service that the host acts for, and the scope.

Claims#

claimstateroute or tool
Through the shim a host reaches every tool that the manifest declares, starting with si.session.whoami.targetsi.session.whoami