Skip to content

[FEATURE] Markdown agents pick their MCP servers with mcpServers #1759

Description

@edenreich

Summary

A Markdown agent cannot choose which MCP servers it uses. The frontmatter key mcpServers, the name Claude Code uses, is accepted and ignored (internal/tools/mdagent.go, and the limitations in docs/subagents.md). Every thread gets every server of its computer. tools cannot narrow them either, because MCP tools register after the session starts, so MCP tool names in a tools list are dropped as unknown.

inference-gateway/desktop#476 lets the agent editor pick an agent's servers by name and save them as mcpServers.

Proposed shape: mcpServers is a list of server names from the mcp.yaml of the computer the thread runs on. It is resolved on the daemon with the rest of the agent, the way tools is.

---
name: code-reviewer
description: Reviews diffs and mails the verdict.
mcpServers:
  - agentmail
  - github
---

Acceptance Criteria

  • An agent's mcpServers names the servers its threads bring up. Without the key, a thread gets every server of its computer, as today. An empty list gives it none.
  • The worker connects only the named servers. Others are neither connected nor started, so an agent does not start containers it does not use.
  • A name its computer does not configure is skipped with a warning naming the agent and the server, and the thread still opens.
  • An inline server definition in mcpServers, which Claude Code also accepts, is ignored with a warning. Agent files travel, so they never carry a URL, a header or a secret.
  • The daemon resolves the list when a thread opens as the agent, and the resolved list follows a relay or a teleport like the tool lists do, never the agent name.
  • A named subagent the Agent tool starts gets the same servers as a thread opened as that agent.
  • docs/subagents.md documents the key and drops it from the ignored keys and the limitations.

Activity

  1. added
    enhancement
    on Nov 8, 2026
  2. added theissue type on Nov 8, 2026
  3. moved this from Todo to QA in 2026on Nov 8, 2026
  4. moved this from QA to Done in 2026on Nov 8, 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 📦🚀

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