Skip to content

[DOCS] Hosted MCP servers in mcp.yaml and Kubernetes workspace secrets #1128

Closed

Description

@edenreich

Summary

Two CLI features change how an agent reaches a hosted MCP server with its own credentials. They replace the per-thread frame fields that inference-gateway/cli#1754 asked for, which the CLI will not apply.

Document these once both PRs are merged and released.

Example to add:

# ~/.infer/mcp.yaml
servers:
  - name: agentmail
    enabled: true
    url: https://mcp.agentmail.to/mcp
    headers:
      x-api-key: ${AGENTMAIL_API_KEY}
# ~/.infer/daemon.yaml
workspaces:
  - name: code-reviewer
    kind: kubernetes
    namespace: agents
    image: ghcr.io/inference-gateway/cli:latest
    secrets:
      - code-reviewer-credentials

Affected pages

  • cli.md, MCP Integration section: the mcp.yaml example comment says "there is no url key". Replace it with a hosted-server entry using url and headers, and state the empty-header skip rule.
  • cli.md, Workspace kinds section: add secrets to the example and to the sentence that mode and gateway_env apply to kind: kubernetes only. Say how it differs from env (plain text in the Orchestrator), gateway_env (provider keys for the gateway) and forward_env (sealed from this machine on each teleport).
  • desktop.md, Agent computers section: one sentence that an agent's credentials come from the computer it runs on, the secrets of its workspace, linking to the Workspace kinds section.

Not affected: mcp.md documents the gateway's own MCP middleware (MCP_SERVERS), not the CLI's mcp.yaml. The Markdown agents section of cli.md needs no change, because agents gained no new frontmatter key.

Acceptance Criteria

  • The cli.md MCP Integration section documents url and headers with the hosted-server example and the empty-header skip rule, and no longer says there is no url key.
  • The cli.md Workspace kinds section documents secrets for Kubernetes workspaces, with an example of one agent per workspace each with its own Secret.
  • The desktop.md Agent computers section says where an agent's credentials come from.
  • No tracker numbers or links in the doc content, per the repo's AGENTS.md.

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 adjust the docs? use /ponytail:ponytail

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

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 1m 59s —— View job • docs/issue-1128-20261108-1500


    Done - PR #1129

    • Read the affected sections
    • cli.md MCP Integration: hosted-server entry with url + headers, ${VAR} expansion from the loading process, empty-header skip rule, and the "there is no url key" comment removed
    • cli.md Workspace kinds: secrets in the example and in the Kubernetes-only sentence, plus a new Credentials the cluster already holds (secrets) section - secretKeyRef wiring, keys read at Orchestrator creation, missing Secret fails the teleport, an example of one agent per workspace each with its own Secret, and a table contrasting env / gateway_env / forward_env / secrets by who can read the value
    • desktop.md Agent computers: one sentence that an agent's credentials come from the computer it runs on, linking to that section
    • bun run format, bun run lint:md, bun run build - all pass
    • Committed and PR opened

    No tracker numbers or links in the content, per AGENTS.md.

    Create a PR - already opened as #1129.

    I wrote the behavior straight from the issue description - I did not read the CLI source to confirm the merged PRs match it, so if the field names or the skip semantics shifted during review, those paragraphs need a second look.
    | 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 8, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.24 🎉

    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