|
This version is still in development and is not considered stable yet. For the latest stable version, please use Korvet 0.19! |
MCP Server
Korvet can expose a Model Context Protocol (MCP) server so AI agents such as Claude Code can inspect a running broker: list and describe topics, peek at messages, diagnose consumer-group lag, and check segment, offload and health state. All tools are read-only; nothing on this endpoint can create, alter or delete broker state.
Enabling
The MCP server is disabled by default. Enable it with:
korvet.mcp.enabled=true
This serves a streamable-HTTP MCP endpoint at /mcp on the Admin API port.
Authentication
When korvet.admin.security-enabled=true (the default), MCP clients must present a static bearer token:
korvet.mcp.token=<random-secret>
Clients send it as Authorization: Bearer <random-secret>. If no token is configured while admin security is enabled, every MCP request is rejected with 401. When admin security is disabled, the endpoint is open like the rest of the Admin API.
Connecting a client
With Claude Code:
claude mcp add --transport http korvet http://localhost:8080/mcp \
--header "Authorization: Bearer <random-secret>"
Tools
| Tool | Description |
|---|---|
|
List all topics with their configuration. |
|
Partition count, retention, segment and storage configuration of one topic. |
|
Produced messages/bytes, current message count, request counts. |
|
Per-partition statistics for one topic or all topics. |
|
Read messages without committing offsets; payloads base64-encoded unless |
|
Active and durable consumer groups. |
|
Group state, members and assignments. |
|
Committed offsets and lag per topic partition. |
|
Segment counts and sizes per tier across all topics. |
|
Per-partition segment summaries of a topic. |
|
Full segment list of one topic partition. |
|
Remote-storage offload job status. |
|
Overall health plus individual checks (Redis, remote storage). |
|
Broker metrics summary. |
|
Registered brokers, listeners and connections. |
|
Remote (tiered) storage statistics. |