Operator¶
The Operator is the Kubernetes controller for MCPServer resources.
Responsibilities¶
- Validate each
MCPServer(the API server enforces the same core rules at admission). - Set
AcceptedandReadyconditions andobservedGeneration. A server in a namespace outsideglobal.watchNamespacesis notReady(NamespaceNotWatched), because the Gateway does not route it. - Check endpoint scope: a server whose
endpoint reaches another namespace is not
Ready(EndpointNotAllowed), and neither is one whose token exchange audience is not allowed for its namespace (AudienceNotAllowed). - Discover the tools of
Readyservers with MCPtools/listand record them instatus.tools, with their MCP behavior hints. It also records the name and version each server reports instatus.serverInfo.- Discovery sets the
ToolsDiscoveredcondition and never changesReady. A failed discovery shows in theDiscoverycolumn ofkubectl get mcpserversand inkavryctl list, with a message that names the cause. - A server that needs a stored credential is discovered with it.
- A server that needs the caller's token (
spec.tokenExchange) is not discovered (CallerTokenRequired). - A server with
spec.sessionAffinity: MCPSessionis discovered from one of its pods.
- Discovery sets the
- Export
kavrynt_operator_mcpserver_readyandkavrynt_operator_mcpserver_tools_discoveredper server on its metrics Service. - With
operator.replicaCountabove 1, run a standby that takes over through leader election.
It does not deploy MCP server workloads or manage their secrets: you run your
MCP servers as normal Kubernetes workloads and describe them with an
MCPServer.
See the MCPServer reference.