Repository navigation
Closed
Labels
apiItems related to the APIenhancementNew feature or requestgoPull requests that update go codekubernetesItems related to KubernetesvmcpVirtual MCP Server related issues
Description
Summary
Add a /status HTTP endpoint to the vMCP server that exposes runtime status information for debugging and operator consumption.
Background
Part of the vMCP K8s-aware refactor (THV-2884). This endpoint provides operational visibility into vMCP server state and will be used by the StatusReporter for CRD status updates.
Proposed Design
Endpoint
GET /status (unauthenticated)
Response Types
type StatusResponse struct {
Backends []BackendStatus `json:"backends"`
Healthy bool `json:"healthy"`
Version string `json:"version"`
GroupRef string `json:"group_ref"`
}
type BackendStatus struct {
Name string `json:"name"`
Endpoint string `json:"endpoint"`
Health string `json:"health"` // "healthy", "degraded", "unhealthy", "unknown"
Transport string `json:"transport"`
AuthType string `json:"auth_type,omitempty"` // "unauthenticated", "header_injection", "token_exchange"
}All fields map directly to existing types: Backend.Name, Backend.BaseURL, Backend.HealthStatus, Backend.TransportType, and Backend.AuthConfig.Type.
Files to Modify
pkg/vmcp/server/status.go(new) - Status endpoint handler and typespkg/vmcp/server/server.go- Register/statusendpoint alongside existing/healthand/ping
Acceptance Criteria
-
GET /statusreturnsStatusResponseJSON - Includes: backends list, health, version, groupRef
- Unauthenticated (operational data only, consistent with /health and /metrics)
- Unit tests for handler
Notes
- Can be implemented independently of StatusReporter (Add StatusReporter abstraction for vMCP runtime status reporting #2854)
- Useful for debugging even without the full K8s-aware refactor
- No secrets or sensitive data exposed
Metadata
Metadata
Assignees
Labels
apiItems related to the APIenhancementNew feature or requestgoPull requests that update go codekubernetesItems related to KubernetesvmcpVirtual MCP Server related issues
Activity
Add /status HTTP endpoint to vMCP server (#2998)
Add /status HTTP endpoint to vMCP server (#2998) (#3066)