Deploying your first MCP server

Host any Model Context Protocol server as a Krypton Agent.

Krypton hosts Model Context Protocol servers as first-class Agents. Whatever your server’s transport, you end up with one CRD, one HTTP endpoint, and tool introspection in the operator UI.

Two transports are supported:

  • HTTP — your server speaks MCP’s streamable-HTTP transport natively. Recommended for new code.
  • STDIO — wrap an off-the-shelf stdio MCP binary (most npm packages) with the bundled bridge.

Once it’s running

For any Agent with spec.protocol: mcp, the operator UI surfaces an MCP Tools card with the server’s tools/list output. Each tool shows its name, description, and inputSchema, with a JSON editor + Call button to invoke it.

The control plane exposes two typed endpoints used by that UI and available to any HTTP client:

GET  /v1/agents/{namespace}/{name}/mcp/tools
POST /v1/agents/{namespace}/{name}/mcp/tools/{toolName}    body = arguments JSON

Both handle the MCP initialize + notifications/initialized handshake internally and unwrap the content envelope on the way out.

What’s implemented

MCP methodSupported
initialize
notifications/initialized
tools/list
tools/call
resources/list + readfuture
prompts/list + getfuture
Sampling, completionsfuture

The Go client lives at internal/mcp/. Resources, prompts, sampling, completions land when a real consumer asks for them.


HTTP server

Deploy an MCP server that speaks the streamable-HTTP transport.

STDIO server

Wrap a stdio MCP binary with the bundled HTTP↔stdio bridge.

Last modified May 27, 2026: Refine docs structure and README (bbcd2cf)