Repository navigation
Closed
Copy link
Labels
Description
Summary
A Kubernetes workspace in the CLI's daemon.yaml names hosted MCP servers of the machine's ~/.infer/mcp.yaml its pods get, through mcp_servers. Source: inference-gateway/cli#1760, implemented in inference-gateway/cli#1767, which needs the operator release that gives spec.mcp.servers names and headers (inference-gateway/operator#324). Document it once both are merged and released.
What changed for users:
mcp_serversis accepted on akind: kubernetesworkspace, also one placed on a cluster throughcompute, and refused on any other kind, likesecrets.- When a session's Orchestrator is created, each named server goes into it with its name, URL and headers, and the operator writes them into the pod's
mcp.yaml. - Headers are forwarded exactly as written in
mcp.yaml, never expanded on the machine, so a${VAR}stays a reference the pod expands from itssecrets. A header that holds a value rather than a${VAR}reference is refused with an error naming the server and the header, so no secret is written into the cluster. - A container server (
run: true) and a namemcp.yamllacks fail the teleport before the Orchestrator is created. - The servers are read when a session's Orchestrator is created, so running sessions keep theirs.
- It needs operator v0.33.0 or newer and an infer image of v0.248.0 or newer. An older operator fails the create with an error naming the version it needs.
Example to add:
# ~/.infer/mcp.yaml
servers:
- name: example
enabled: true
url: https://mcp.example.com/mcp
headers:
x-api-key: ${MCP_EXAMPLE_API_KEY}# ~/.infer/daemon.yaml
workspaces:
- name: code-reviewer
compute: k3d-agents
image: ghcr.io/inference-gateway/cli:latest
secrets:
- code-reviewer-credentials # holds MCP_EXAMPLE_API_KEY
mcp_servers:
- exampleAffected pages
cli.md, Workspace kinds: the keys a workspace on compute keeps gainmcp_servers, and the sentence thatmode,gateway_envandsecretsapply to Kubernetes workspaces only gainsmcp_servers.cli.md, a new subsection after Credentials the cluster already holds (secrets): MCP servers for the pod (mcp_servers), with the example above, the as-written headers, the refusals and the operator and image versions.cli.md, Kubernetes prerequisites: the operator versionmcp_serversneeds.cli.md, The session-teleport example: itsk8s-mcpworkspace gives the pods the demo MCP server.desktop.md: coordinate with [DOCS] Desktop MCPs tab: MCP servers with secret headers, picked per agent #1134, which documents giving a server to a workspace from the desktop's MCPs tab.
Acceptance Criteria
-
cli.mddocumentsmcp_serverson Kubernetes workspaces and that other kinds refuse it. - It states that headers are forwarded as written, that a header holding a value is refused, and that the pod fills the variable from its
secrets. - It covers the refusal of a container server and of a name
mcp.yamllacks, before the Orchestrator is created. - It names the operator and infer image versions needed.
- The examples use a placeholder server, not a real third-party one.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Nov 8, 2026
@claude can you document this? use /ponytail:ponytail check for all the relevant code first before documenting.
inference-gateway-maintainer commentedon Nov 8, 2026
Claude finished @edenreich's task in 3m 34s —— View job •
docs/issue-1146-20261108-2052Documented
mcp_serverson Kubernetes workspacesconfig/daemon.go,internal/agent/infrastructure/kubernetes/workspace.goon the openfeat/workspace-mcp-serversbranch)spec.mcp.hostedServersrendering (open operator PR)cli.mdsectionsbun run lint:md,bun run format:check,bun run build- all passWhat I wrote
cli.md, Workspace kinds:mcp_serversadded to the keys a workspace on compute keeps, and to the sentence thatmode,gateway_envandsecretsapply to Kubernetes workspaces only.mcp_servers) after Credentials the cluster already holds (secrets): themcp.yaml+daemon.yamlexample on a placeholder server, headers forwarded as written so a${VAR}stays a reference the pod expands from itssecrets, that a server's ownenabledis separate frommcp_servers, a table of the refusals (a header holding a value, a container server withrun: true, a namemcp.yamllacks, the key on another kind - all before the Orchestrator is created), theBearer ${TOKEN}prefix form, and that the servers are read at Orchestrator creation so running sessions keep theirs.spec.mcp.hostedServers, pod image v0.248.0 or newer, and the older-operator error.k8s-mcpworkspace.desktop.md: the MCPs tab's "once the CLI and the operator pass MCP servers to them" now states the pods get them and links to the new CLI section.One thing to know
The upstream work is not released yet - the CLI PR and the operator PR are both still open (latest releases: cli v0.249.0, operator v0.32.0). The content is written against those branches and matches them, including the
v0.33.0constant the CLI branch asserts, so it is accurate but should merge with or after the releases.Skipped: the
k8s-mcpexample section was summarised in one paragraph rather than copying its task commands, since the CLI repo's own README carries those and they are not yet onmain. I did not verify rendered anchors in a browser - only thatbun run buildresolves every link.Create a PR - already opened as #1148
| Branch
feat(workspaces): Kubernetes workspaces give their pods MCP servers (#…
inference-gateway-releaser commentedon Nov 10, 2026
🎉 This issue has been resolved in version 0.9.25 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀