Skip to content

[DOCS] CLI Kubernetes workspaces give their pods MCP servers with mcp_servers #1146

Closed

Description

@edenreich

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_servers is accepted on a kind: kubernetes workspace, also one placed on a cluster through compute, and refused on any other kind, like secrets.
  • 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 its secrets. 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 name mcp.yaml lacks 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:
      - example

Affected pages

  • cli.md, Workspace kinds: the keys a workspace on compute keeps gain mcp_servers, and the sentence that mode, gateway_env and secrets apply to Kubernetes workspaces only gains mcp_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 version mcp_servers needs.
  • cli.md, The session-teleport example: its k8s-mcp workspace 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.md documents mcp_servers on 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.yaml lacks, 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.

Activity

  1. added
    documentation
    on Nov 8, 2026
  2. added theissue type on Nov 8, 2026
  3. moved this to Todo in 2026on Nov 8, 2026
  4. edenreich commented on Nov 8, 2026

    @edenreich
    ContributorAuthor

    @claude can you document this? use /ponytail:ponytail check for all the relevant code first before documenting.

  5. inference-gateway-maintainer commented on Nov 8, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 3m 34s —— View job • docs/issue-1146-20261108-2052


    Documented mcp_servers on Kubernetes workspaces

    • Check the CLI implementation (config/daemon.go, internal/agent/infrastructure/kubernetes/workspace.go on the open feat/workspace-mcp-servers branch)
    • Check the operator's spec.mcp.hostedServers rendering (open operator PR)
    • Read the relevant cli.md sections
    • Write the docs
    • bun run lint:md, bun run format:check, bun run build - all pass
    • Commit and open the PR

    What I wrote

    cli.md, Workspace kinds:

    • mcp_servers added to the keys a workspace on compute keeps, and to the sentence that mode, gateway_env and secrets apply to Kubernetes workspaces only.
    • New subsection MCP servers for the pod (mcp_servers) after Credentials the cluster already holds (secrets): the mcp.yaml + daemon.yaml example on a placeholder server, headers forwarded as written so a ${VAR} stays a reference the pod expands from its secrets, that a server's own enabled is separate from mcp_servers, a table of the refusals (a header holding a value, a container server with run: true, a name mcp.yaml lacks, the key on another kind - all before the Orchestrator is created), the Bearer ${TOKEN} prefix form, and that the servers are read at Orchestrator creation so running sessions keep theirs.
    • Kubernetes prerequisites: operator v0.33.0 or newer for spec.mcp.hostedServers, pod image v0.248.0 or newer, and the older-operator error.
    • The session-teleport example: its k8s-mcp workspace.

    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.0 constant the CLI branch asserts, so it is accurate but should merge with or after the releases.

    Skipped: the k8s-mcp example 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 on main. I did not verify rendered anchors in a browser - only that bun run build resolves every link.

    Create a PR - already opened as #1148
    | Branch

  6. moved this from Todo to In progress in 2026on Nov 8, 2026
  7. moved this from In progress to QA in 2026on Nov 8, 2026
  8. moved this from QA to Done in 2026on Nov 8, 2026
  9. inference-gateway-releaser commented on Nov 10, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.25 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions