Skip to content

[FEATURE] Orchestrator MCP servers carry tool filters and a timeout #331

Description

@edenreich

Summary

The pod daemon's mcp.yaml is rendered from spec.mcp.servers entries, each with a name, a url and headers. The CLI's mcp.yaml entry also takes include_tools and exclude_tools, which pick the tools of a server the agent gets, and timeout, the seconds one request to the server may take before it falls back to connection_timeout. The CLI applies all three on a machine.

A Kubernetes workspace passes servers of the machine's mcp.yaml to its pods through mcp_servers (inference-gateway/cli#1767). It sends only the name, URL and headers, because OrchestratorMCPServer has no fields for the rest. A server filtered to two tools on the laptop exposes every tool in the pod, and its timeout falls back to the default.

Proposed shape:

type OrchestratorMCPServer struct {
	Name    string            `json:"name"`
	URL     string            `json:"url"`
	Headers map[string]string `json:"headers,omitempty"`

	// IncludeTools limits the agent to these tools of the server. When set,
	// ExcludeTools is ignored.
	// +optional
	IncludeTools []string `json:"includeTools,omitempty"`

	// ExcludeTools hides these tools of the server.
	// +optional
	ExcludeTools []string `json:"excludeTools,omitempty"`

	// TimeoutSeconds bounds one request to the server.
	// +optional
	TimeoutSeconds int32 `json:"timeoutSeconds,omitempty"`
}

mcpYAMLServer in internal/controller/orchestrator_controller.go embeds OrchestratorMCPServer, so its JSON names become the mcp.yaml keys. The new fields need the CLI's keys (include_tools, exclude_tools, timeout), so the render maps them explicitly.

Cross-repo impact: once released, the CLI's Kubernetes workspace forwards the three settings from mcp.yaml and asks for that operator version.

Acceptance Criteria

  • spec.mcp.servers[] accepts includeTools, excludeTools and timeoutSeconds.
  • The pod's mcp.yaml renders them as include_tools, exclude_tools and timeout, and leaves out the unset ones.
  • Changing one rolls the pod like any other server change, through the mcps-config-hash annotation.
  • The orchestrator example shows a server with a tool filter.
  • A [DOCS] ticket is filed with the PR.

Activity

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

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.34.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  7. 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