<!-- AUTO-GENERATED by scripts/generate-cli-docs.ts — do not edit. Regenerate: yarn docs:gen -->

# pop mcp

Serve the CLI as an MCP server for AI integrations

## pop mcp serve

Serve the CLI as an MCP (Model Context Protocol) stdio server

```text
pop mcp serve [flags]
```

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--allow-destructive` | boolean | no | `false` | Also expose destructive writes — implies --allow-writes (or POP_MCP_ALLOW_DESTRUCTIVE=1) |
| `--allow-writes` | boolean | no | `false` | Expose non-destructive write commands as tools (or POP_MCP_ALLOW_WRITES=1) |

_Global flags: --org, --chain, --rpc, --json, --address, --private-key, --dry-run, --yes, --verbose, --quiet, --preflight (see [index.md](index.md))_
