# kosa8 mcp

Run kosa8 as an MCP server so AI agents can drive it

kosa8 speaks the Model Context Protocol, exposing containers, images,
sandboxes, snapshots and fork as typed tools.

Point an MCP client at `kosa8 mcp serve` (stdio) or `kosa8 mcp serve --http 127.0.0.1:7433`
(bearer-token authenticated; the token is printed once at startup, or set KOSA8_MCP_TOKEN).

`kosa8 mcp install` registers kosa8 with Claude, Cursor, Windsurf and Codex in one step.

## Example

```
  kosa8 mcp install
  kosa8 mcp search github
  kosa8 mcp ls
```

## Subcommands

- [`kosa8 mcp add`](https://docs.kosa8.com/reference/mcp-add.md): Add an MCP server from the catalog, or any server by its command, to run behind the gateway
- [`kosa8 mcp approve`](https://docs.kosa8.com/reference/mcp-approve.md): Approve one held tool call
- [`kosa8 mcp asks`](https://docs.kosa8.com/reference/mcp-asks.md): List tool calls waiting for a person's approval
- [`kosa8 mcp info`](https://docs.kosa8.com/reference/mcp-info.md): Show a catalog server: what it runs, the secrets and hosts it needs, and its risk
- [`kosa8 mcp install`](https://docs.kosa8.com/reference/mcp-install.md): Register kosa8 as an MCP server with Claude, Cursor, VS Code, Gemini CLI, Zed and more
- [`kosa8 mcp ls`](https://docs.kosa8.com/reference/mcp-ls.md): List registered third-party MCP servers
- [`kosa8 mcp pins`](https://docs.kosa8.com/reference/mcp-pins.md): Review the tool definitions each MCP server is pinned to
- [`kosa8 mcp refuse`](https://docs.kosa8.com/reference/mcp-refuse.md): Refuse one held tool call
- [`kosa8 mcp rm`](https://docs.kosa8.com/reference/mcp-rm.md): Unregister a third-party MCP server
- [`kosa8 mcp search`](https://docs.kosa8.com/reference/mcp-search.md): Search the MCP server catalog and the official MCP Registry
- [`kosa8 mcp secret`](https://docs.kosa8.com/reference/mcp-secret.md): Set or list the secrets a gateway MCP server is given
- [`kosa8 mcp serve`](https://docs.kosa8.com/reference/mcp-serve.md): Serve the MCP endpoint over stdio, or HTTP with --http
- [`kosa8 mcp tools`](https://docs.kosa8.com/reference/mcp-tools.md): List the tools kosa8 exposes to agents

---
Source: https://docs.kosa8.com/reference/mcp/
