API Documentation#
This page documents the runtime endpoints exposed by Cloud Native MCP Server.
Base Address#
| |
Transport Modes and Endpoints#
Cloud Native MCP Server supports two runtime modes:
| Mode | Typical Usage | Aggregate Endpoint |
|---|---|---|
sse | Broad MCP client compatibility | /api/aggregate/sse |
streamable-http | Modern MCP transport | /api/aggregate/streamable-http |
Service-specific endpoint pattern:
- SSE:
/api/<service>/sse - Streamable HTTP:
/api/<service>/streamable-http
Common service names include kubernetes, helm, grafana, prometheus, kibana, elasticsearch, alertmanager, jaeger, opentelemetry, utilities, and aggregate.
Note: This server does not expose legacy
/v1/mcp/*REST-style endpoints.
Authentication#
Enable auth in runtime configuration:
| |
Supported auth modes:
apikeybearerbasic
API Key#
Use X-Api-Key header (recommended) or api_key query parameter.
| |
Bearer Token#
| |
Basic Auth#
| |
SSE Workflow#
In sse mode, integration typically follows this flow:
- Open SSE stream on
/api/aggregate/sse. - Receive endpoint event containing message endpoint.
- POST JSON-RPC requests (for example
initialize) to the message endpoint.
Recommended validation command:
| |
If you are outside repository root:
| |
Streamable HTTP Example#
In streamable-http mode, use the aggregate streamable endpoint directly:
| |
For production integration, prefer MCP SDK/client implementations over manual curl payload construction.
Runtime Endpoints#
| Endpoint | Description |
|---|---|
GET /health | Server health check |
GET /metrics | Prometheus metrics endpoint (may require auth if enabled) |
GET /api/openapi.json | OpenAPI schema for HTTP endpoints |
GET /api/docs | Swagger UI for API exploration |
GET /api/audit/logs | Audit query endpoint (when audit is enabled) |
GET /api/audit/stats | Audit stats endpoint (when audit is enabled) |
Key Environment Variables#
Server and Transport#
MCP_MODE(sse,streamable-http)MCP_ADDRMCP_READ_TIMEOUTMCP_WRITE_TIMEOUTMCP_IDLE_TIMEOUT
Authentication#
MCP_AUTH_ENABLEDMCP_AUTH_MODEMCP_AUTH_API_KEYMCP_AUTH_BEARER_TOKENMCP_AUTH_USERNAMEMCP_AUTH_PASSWORD
Rate Limiting#
MCP_RATELIMIT_ENABLEDMCP_RATELIMIT_REQUESTS_PER_SECONDMCP_RATELIMIT_BURST
Service Selection#
MCP_ENABLED_SERVICESMCP_DISABLED_SERVICES
Integration Examples#
MCP_PROM_ADDRESSMCP_GRAFANA_URLMCP_KIBANA_URLMCP_ELASTICSEARCH_ADDRESSMCP_ALERTMANAGER_ADDRESS
Troubleshooting API Access#
401 unauthorized: verifyMCP_AUTH_*settings and credential transmission method.- stream opens but requests fail: test with
make sse-smokeand inspect logs. - missing services/tools: check
MCP_ENABLED_SERVICES/MCP_DISABLED_SERVICES. - slow calls: narrow query scope and review upstream service connectivity.