Skip to content

Add /status HTTP endpoint to vMCP server #2998

Closed

Description

@jhrozek

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 types
  • pkg/vmcp/server/server.go - Register /status endpoint alongside existing /health and /ping

Acceptance Criteria

  • GET /status returns StatusResponse JSON
  • Includes: backends list, health, version, groupRef
  • Unauthenticated (operational data only, consistent with /health and /metrics)
  • Unit tests for handler

Notes

Activity

  1. added
    enhancement
    go
    vmcp
    on Dec 11, 2025
  2. added
    kubernetes
    api
    on Dec 11, 2025
  3. self-assigned this
    on Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

apienhancementgokubernetesvmcp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions