Skip to content

feat(workspaces): forward a server's tool filters and timeout to the pods - #1774

Merged
edenreich merged 1 commit into
mainfrom
feat/workspace-mcp-tool-filters
Nov 9, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/workspace-mcp-tool-filters

Conversation

@edenreich

@edenreich edenreich commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A Kubernetes workspace wrote each of its mcp_servers into the session's Orchestrator with only its name, URL and headers. A server's include_tools, exclude_tools and timeout applied on this machine but not in the pod, so a server narrowed to two tools exposed every tool once a session moved to the cluster. Operator v0.34.0 takes them (inference-gateway/operator#332), and the workspace now forwards them:

  • include_tools and exclude_tools go into the Orchestrator as includeTools and excludeTools, as written.
  • timeout goes in as timeoutSeconds when it is above 0. The CLI treats 0 or less as unset, and the operator refuses anything below 1, so those stay unset.
  • A server with none of them is written exactly as before.

Each entry is built from the operator's OrchestratorMCPServer type and converted with DefaultUnstructuredConverter, so its field names come from the operator's API instead of copied strings. go.mod moves the operator module from v0.33.0 to v0.34.0 for the new fields.

The "may predate ..., upgrade it" error of a workspace with mcp_servers names v0.34.0, and binding_service alone still names v0.33.0. This is simpler than the issue's split by whether a server sets a filter: a workspace whose servers set none still runs on v0.33.0, since its Orchestrator carries no new field, and the version only shows in the error of a create the operator already refused.

  • docs/daemon.md says the pods get a server's tool filters and timeout and that they need operator v0.34.0, with v0.33.0 still enough for a server without them.
  • examples/session-teleport gives the k8s-mcp workspace's demo server include_tools: [get_time, calculate], so the pod gets none of its file and environment tools, and its walkthrough installs operator v0.34.0.

Closes #1773

Verification

  • task test passes, with a case that forwards a server's tool filters and a 10s timeout and drops a negative timeout.
  • The Orchestrators the workspace builds, one with a filtered server and one with headers only, were dumped and dry-run with strict field validation on a k3d cluster:
    • against operator v0.34.0's CRDs, both are accepted.
    • against operator v0.33.0's CRDs, the one without filters is accepted and the filtered one is refused with BadRequest, which create reports as the upgrade error.
  • task precommit:run passes.
  • task test:e2e passes.

Cross-repo impact

…pods

A Kubernetes workspace wrote each of its mcp_servers into the Orchestrator
with only its name, URL and headers, so a server's include_tools,
exclude_tools and timeout applied on this machine but not in the pod.
Operator v0.34.0 takes them, and the workspace now forwards them as
includeTools, excludeTools and timeoutSeconds. A timeout of 0 or less stays
unset, and a server without any of them is written as before.

Each entry is built from the operator's OrchestratorMCPServer type, so its
field names come from the operator. The upgrade error of a workspace with
mcp_servers names v0.34.0.
@edenreich
edenreich requested a review from a team as a code owner November 9, 2026 00:14
@github-project-automation github-project-automation Bot moved this to Todo in 2026 Nov 9, 2026
@edenreich
edenreich merged commit b66e3b2 into main Nov 9, 2026
1 check passed
@edenreich
edenreich deleted the feat/workspace-mcp-tool-filters branch November 9, 2026 11:46
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.250.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 9, 2026
@edenreich edenreich moved this from Todo to Done in 2026 Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

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

1 participant