Skip to content

feat: run plugin MCP servers discovered by agentcontext - #32274

Draft
f0ssel wants to merge 9 commits into
garrett/agent-plugins/10-plugin-mcp-reload-testsfrom
garrett/agent-plugins/11-plugin-mcp-wiring
Draft

f0ssel wants to merge 9 commits into
garrett/agent-plugins/10-plugin-mcp-reload-testsfrom
garrett/agent-plugins/11-plugin-mcp-wiring

Conversation

@f0ssel

@f0ssel f0ssel commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

The agent runs the MCP servers of plugins discovered at the workspace working directory (the directory itself, plugins/*, .agents/plugins/*) while CODER_AGENT_EXP_MCP_CONFIG_FILES is unset: mcpConfigSources appends one plugin source per such plugin, and a context snapshot change reloads the MCP engine. Plugin server resources carry the plugin name and a <plugin>/<server> source. The docs gain a Plugin MCP servers section.

Same change as #29326, minus the agentmcp package changes, which moved down to #32272 and #32273.

Stack (base main, replaces #29321–#30577):

PR Title Size
#32264 feat: carry Agent Plugin fields through context snapshots +542/-213
#32265 feat(agent/agentcontext): discover and validate Agent Plugins manifests +1951/-74
#32296 feat(agent/agentcontext): load skills bundled in Agent Plugins +653/-19
#32266 feat(agent): enable Agent Plugins discovery from the manifest +988/-79
#32267 feat(coderd/x): add plugin skill source and alias grammar +138/-32
#32268 feat: add plugin skill and plugin context resource types +295/-161
#32269 feat(coderd): serve plugin skills in chatd +1338/-386
#32270 feat(agent/x/agentmcp): accept streamable-http MCP type, add plugin data dir helper +92/-0
#32271 feat(agent/x/agentmcp): add a same-origin header HTTP client +547/-4
#32272 feat(agent): load plugin mcp.json and reload registered MCP sources +1262/-228
#32273 test(agent/x/agentmcp): cover plugin mcp.json parsing, reloads, isolation, and env +2044/-2
👉 #32274 feat: run plugin MCP servers discovered by agentcontext +851/-26
#32275 feat(site/src): render Agent Plugin context +1349/-240

Generated by Claude Code

The agent runs the MCP servers of plugins discovered at the workspace
working directory (the directory itself, plugins/*, and
.agents/plugins/*), and starts and stops them as plugins appear and
disappear. Plugin servers start only while
CODER_AGENT_EXP_MCP_CONFIG_FILES is unset.

The MCP source list is the env-configured .mcp.json files followed by
one plugin-scoped mcp.json source per such plugin, computed in one
place for the startup reload, snapshot updates, the config watcher, and
reconnects on a context resync. Plugin MCP server resources carry the
plugin name and a <plugin>/<server> source, so a server that lost a
name collision still appears with its error.

The extending-agents docs describe plugin MCP servers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VpiVZBgFqiSdRKrH8dPSPT
@f0ssel f0ssel self-assigned this Nov 16, 2026
@f0ssel
f0ssel added this pull request to stack #32278 November 16, 2026 18:37
@f0ssel
f0ssel force-pushed the garrett/agent-plugins/11-plugin-mcp-wiring branch from 0c6280c to 97ccd0e Compare November 16, 2026 23:25
f0ssel and others added 2 commits November 16, 2026 22:12
@f0ssel f0ssel assigned garrettatcoder and unassigned f0ssel Nov 20, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants