Skip to content

[FEATURE] Kubernetes workspaces forward a server's tool filters and timeout to their pods #1773

Description

@edenreich

Summary

A Kubernetes workspace gives its pods servers of the machine's ~/.infer/mcp.yaml through mcp_servers. Workspace.mcpServers in internal/agent/infrastructure/kubernetes/workspace.go writes each one into the Orchestrator with only its name, url and headers. So a server's include_tools, exclude_tools and timeout apply on the machine but not in the pod: a server narrowed to two tools exposes every tool once the session moves to the cluster, and its timeout falls back to the pod's default.

inference-gateway/operator#332 (for inference-gateway/operator#331) gives Orchestrator MCP servers includeTools, excludeTools and timeoutSeconds, and writes them into the pod's mcp.yaml under the CLI's keys. Once an operator release ships it, the workspace can forward them:

  • include_tools becomes includeTools, and exclude_tools becomes excludeTools, both as written.
  • timeout becomes timeoutSeconds when it is above 0. The operator refuses anything below 1, and the CLI treats 0 or less as unset.
  • A server that sets none of them is written as today.

An older operator refuses the new fields under strict field validation, which create already turns into the "may predate ..., upgrade it" error. requiredOperatorVersion returns newFieldsOperatorVersion (v0.33.0) for any workspace with mcp_servers. It has to name the release that ships the new fields when a named server sets one of them, and keep v0.33.0 otherwise, so a workspace whose servers set no filter keeps working on v0.33.0.

Acceptance Criteria

  • A workspace server's include_tools, exclude_tools and a timeout above 0 reach its Orchestrator as includeTools, excludeTools and timeoutSeconds.
  • A server with none of them is written exactly as before, and runs on operator v0.33.0.
  • A server with any of them asks for the operator release that ships them, and an older operator fails the create with the upgrade error naming that release.
  • docs/daemon.md says the pods get a server's tool filters and timeout, and the operator version they need.
  • The examples/session-teleport k8s-mcp workspace's server shows a tool filter.
  • A [DOCS] ticket is filed with the PR.

Activity

  1. added
    enhancement
    on Nov 9, 2026
  2. added theissue type on Nov 9, 2026
  3. moved this from Todo to In progress in 2026on Nov 9, 2026
  4. moved this from In progress to QA in 2026on Nov 9, 2026
  5. inference-gateway-releaser commented on Nov 9, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.250.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  6. moved this from QA to Done in 2026on Nov 9, 2026
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

    enhancementreleased

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions