Repository navigation
feat: load the MCP servers a plugin pack manifest declares - #231
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review
|
|
@codex review
|
…-packs-16-manifest-mcp
|
@codex review
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c406253eff
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…-packs-16-manifest-mcp
…-packs-16-manifest-mcp
|
@codex review
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2367d95eb1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review
|
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review
|
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review
|
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Merged after fork-ci passed on head 7fe84e6 (run 43164043188), Codex reviewed that head with no major issues (receipt comment 6815912141), 0 unresolved threads, local Go validation with negative controls, and a live end-to-end UAT on the 7fe84e6 server and agent with the |
This connects the MCP servers that installed plugin packs declare to the agent's MCP manager (#230), and gates them per chat in coderd.
Agent (
agent/agentcontext,agent/)mcpServersas a path, an inline map, or an array of either. A Claude pack loads its root.mcp.jsonfirst, then each declared entry. For any other manifest, a declaration replaces the default.mcp.json, the same way itsskillsdeclaration does..mcpb,.dxt) and URLs are skipped.mcpServersfield rejects a Claude pack, the same as its other path fields.SourcePathset to the manifest andSourceset to<declaring file>#<server name>. A bare file would not be unique: the database keys rows on (agent, source), and one file can declare several servers. While coderd does not advertise pack rows, the agent drops pack server rows.coderd (
coderd/x/chatd)pinnedWorkspaceMCPToolsnow runsfilterPackResources, so a chat sees a pack's MCP tools only when that pack is enabled for the chat.packRowSourceFilestrips the trailing#namefrom MCP server rows before matching the declaring file against the pack's files.ARCHITECTURE.mdgets a TODO for the author only.Known gaps:
mcpServers, bundles and URLs are not supported.CLAUDE_PLUGIN_DATAandCLAUDE_PROJECT_DIRare not expanded.$in the pack path gets mangled by env expansion.Validation on 1d986df, run in a container (7fe84e6, the merge of main after #230, has the same tree):
gofmt -lon the changed files passes.go build ./agent/... ./coderd/... ./enterprise/...passes.go veton./agent/,./agent/agentcontext/,./agent/x/agentmcp/and./coderd/x/chatd/passes.go test ./agent/agentcontext/ ./agent/x/agentmcp/passes.go test -run 'Plugin|Pack|PinnedWorkspaceMCP' ./coderd/x/chatd/passes.TestResolverPackMCPSourcesfail.