---
title: "coding.sh mcp · coding.sh docs"
description: "Serve captured sessions to agents over MCP (stdio). Every option of coding.sh mcp, from its own --help."
canonical: https://coding.sh/docs/cli/mcp
human_url: https://coding.sh/docs/cli/mcp
markdown_url: https://coding.sh/docs/cli/mcp.md
agents_url: https://coding.sh/agents.md
llms_url: https://coding.sh/llms.txt
updated: 2026-11-11
---

# coding.sh mcp

Serve captured sessions to agents over MCP (stdio). Every option of coding.sh mcp, from its own --help.

coding.sh mcp --help

```
coding.sh mcp [action]

  Serve captured sessions to agents over MCP (stdio)

Arguments
  action        serve (default): run the server; config: print how to register it

Examples
  coding.sh mcp config
  coding.sh mcp

Notes
  Agents start this themselves once coding.sh init has registered it.
  stdout carries MCP frames only.
  Tool calls ingest pending captures for up to 1.5 s (CODING_SH_READ_BUDGET_MS), then answer from what is indexed with a pending: {files, indexing} field.
```

[All commands](https://coding.sh/docs/cli) · [Global options](https://coding.sh/docs/cli#global)

To set coding.sh up for a user, follow the agent workflow at [/agents.md](https://coding.sh/agents.md).
