Repository navigation
Labels
Description
Summary
Markdown agents in the CLI now pick the MCP servers they use with mcpServers in their frontmatter, the key Claude Code uses. Source: inference-gateway/cli#1759, implemented in inference-gateway/cli#1766. Document it once that PR is merged and released.
What changed for users:
mcpServersis a list of server names from themcp.yamlof the computer the agent runs on. Its sessions connect only those servers, and of those only the ones withrun: trueare started.- Without the key an agent gets every enabled server, as before. An empty list (
mcpServers: []) gives it none. - A named server comes up even when
mcp.yamlsetsenabled: falsefor it, so a server can stay off for every chat and serve one agent. The top-levelenabled: falseofmcp.yamlstill turns MCP off for every agent. - A name the computer's
mcp.yamllacks is skipped with a warning, and the agent still runs. - An inline server definition, which Claude Code also accepts, is ignored with a warning. Agent files never carry a URL, a header or a secret.
- It applies to a subagent the Agent tool starts and to a session opened as the agent on
infer daemon, as the desktop does. A session moved to another workspace keeps the list and brings those servers up from that workspace'smcp.yaml. - A
toolslist hides every MCP tool it does not name. For a subagent the Agent tool starts, MCP tool names intoolsare still dropped as unknown.
Example to add:
# ~/.infer/mcp.yaml
enabled: true
servers:
- name: demo-server
enabled: false
url: http://localhost:3000/mcp---
name: timekeeper
description: Tells the current time in any timezone.
mcpServers:
- demo-server
---
You answer questions about the current time with the get_time tool.Affected pages
cli.md, Markdown subagent presets: the frontmatter list gainsmcpServers, the key leaves the list of ignored keys, and the v1 limits drop it. The limit about MCP tool names in atoolslist stays, scoped to subagents the Agent tool starts.cli.md, MCP Integration: a short note that a Markdown agent picks its servers withmcpServers, and that a server withenabled: falsestill comes up for an agent that names it.desktop.md, Your own agents:mcpServersin the frontmatter table takes effect with this CLI version. Coordinate with [DOCS] Desktop MCPs tab: MCP servers with secret headers, picked per agent #1134, which documents the editor side.
Acceptance Criteria
-
cli.mddocumentsmcpServers: names frommcp.yaml, absent means every enabled server, an empty list means none. -
cli.mdstates that a named server comes up even withenabled: false, and that the top-level switch still wins. -
cli.mdcovers the warning for an unknown name and that inline definitions are ignored. - The v1 limits no longer list
mcpServers. - The examples use a placeholder server, not a real third-party one.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(agents): Markdown agents pick their MCP servers with mcpServers (#…
edenreich commentedon Nov 8, 2026
@claude can you document this? use /ponytail:ponytail check for all the relevant code first before documenting.
inference-gateway-maintainer commentedon Nov 8, 2026
Claude finished @edenreich's task in 3m 10s —— View job •
docs/issue-1136-20261108-2024• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-1136-20261108-2024?quick_pull=1&title=Issue%20%231136%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%231136%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Documented
mcpServersfor CLI Markdown agentscli.md(subagent presets + MCP Integration)desktop.md(Your own agents)PR: #1143
What I verified in the CLI before writing
Cloned
inference-gateway/cliand read the implementation rather than trusting the issue text:internal/tools/mdagent.go-mcpServersfrontmatter key,resolveMarkdownAgentMCPServers: nil keeps the enabled servers, a non-string item warns "markdown agent defines an MCP server inline, ignoring it".internal/protocols/mcp/supervisor.goSelectServers- keeps only named servers and forcesserver.Enabled = true, then warns once per name the computer does not configure. That is theenabled: falseoverride, confirmed at the source.internal/container/container.go- the selection happens only whenc.config.MCP.Enabled, so the top-level switch still wins.internal/scheduler/domain/subagent.go-INFER_AGENT_MCP_SERVERS; set by bothinternal/tools/agent.go(Agent-tool subagent) andinternal/sessions/infrastructure/worker.go(daemon thread), which is why the docs say it covers both.Changes
cli.md, Markdown subagent presetsmcpServersadded to the frontmatter table and removed from the accepted-and-ignored key list.demo-serverplaceholder example: names from the computer'smcp.yaml, absent means every enabled server,mcpServers: []means none, only named servers withrun: truestart, a named server comes up even withenabled: falsewhile the top-level switch still wins, an unknown name warns and the agent still runs, an inline definition warns and is ignored. Plus the subagent/daemon-thread scope,INFER_AGENT_MCP_SERVERS, and the workspace move.mcpServers; the MCP-tool-names-in-toolslimit stays, scoped to Agent-tool subagents.cli.md, MCP Integration - a short servers-per-agent note linking back to the preset section.desktop.md, Your own agents - the editor's MCP servers list note now says what the CLI does with the pick, instead of only that it needs a CLI understanding the key.One thing worth knowing
The feature is merged on the CLI's
mainbut not in a tagged release yet - latest isv0.249.0(today) and its changelog does not include it. So I deliberately did not name a minimuminferversion indesktop.md, unlike thev0.247.0note just above it. Worth adding the real number once the release lands.Validation
bun run format:check,bun run lint:md,bun run build- all pass.Skipped:
bun run previewand local visual inspection (no content/nav/SEO change that needs it, and this is a headless runner), andbun test(no generator or fixture touched). Risk: the only real one is the missing version number above - everything else is a direct read of the merged CLI code.| Branch
inference-gateway-releaser commentedon Nov 8, 2026
🎉 This issue has been resolved in version 0.9.24 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀