---
# Generated by kapten-docs from the CLI's command tree. DO NOT EDIT.
title: "kapten mcp"
description: "Serve Kapten operations as MCP tools to a coding agent, over stdio."
sidebar:
  label: "mcp"
---

See [Coding agents](/cli/mcp) to configure an MCP client. Every command takes the [global flags](/cli/reference#global-flags).

## kapten mcp serve

Serve CLI-exposed Kapten resource operations, including writes, over stdio. Authenticate with `kapten login` first. The selected context stays fixed until restart. DELETE tools are annotated as destructive. No remote listener or interactive login is available.

```bash
kapten mcp serve [flags]
```

| Flag | Description |
| --- | --- |
| `--max-result-bytes int` | Maximum tool result payload in bytes (1024–8388608) (default: 1048576) |
| `--operations string` | Comma-separated operationId subset of the exposed resource tools |
| `--request-timeout int` | Per-tool HTTP timeout in seconds (1–300) (default: 30) |
