<!-- @generated by usage-cli from usage spec -->

# `usage mcp`

- **Usage**: `usage mcp [-f --file <FILE>] [-s --spec <SPEC>]`
- **Aliases**: `mcp-server`
- **Effect**: read-only
- **Source code**: [`cli/src/cli/mcp.rs`](https://github.com/jdx/usage/blob/main/cli/src/cli/mcp.rs)

Serve a usage spec over the Model Context Protocol

Reads JSON-RPC over stdin and writes responses to stdout, which is how MCP
clients launch a local server. Point one at `usage mcp -f mycli.usage.kdl`.

## Flags

### `-f --file <FILE>`

Usage spec file (not "-": stdin is the MCP transport)

### `-s --spec <SPEC>`

Raw string spec input
