Repository navigation
feat: start the MCP servers plugin packs declare - #230
Conversation
|
@codex review
|
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
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dfa81651fd
ℹ️ 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. 🎉 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
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3099286965
ℹ️ 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
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ccab23a930
ℹ️ 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".
Merged after fork-ci passed on head ccab23a (run 43162634532; the agent-sdk job tested |
Plugin packs can declare MCP servers (
mcpServersin the manifest, or a root.mcp.json), but the workspace agent only started the servers in the workspace.mcp.json. This PR lets the MCP manager start pack servers too. The follow-up PR tells it which ones to start.Manager.SetPackSourcesstores the packs' server declarations, in load order. It reloads in the background, and only when the declarations changed.SetPackSourcesbumps a pack generation, andReloadskips only after it has loaded the current one. So a change that lands during an in-flight reload (agent startup, or a pack update that wakes the config watcher first) still loads..mcp.jsonpriority on a name collision, and an earlier pack wins over a later one..mcp.json.${CLAUDE_PLUGIN_ROOT}expands to the pack root incommand,args,env,urlandheaders, and stdio servers getCLAUDE_PLUGIN_ROOTin their environment. This matches Claude Code. Expansion runs before${VAR}env expansion, which would otherwise turn the placeholder into an empty string.ParseConfigand pack parsing now shareparseServerEntries, so both paths run the same validation.Nothing calls
SetPackSourcesyet.Until now fork-ci never tested
./agent/x/agentmcp. This PR adds the package to fork-ci's agent test job.Validation on ccab23a, run in a container:
gofmt -l,go build ./agent/...,go vet ./agent/x/agentmcp/andgo test ./agent/x/agentmcp/pass. Negative controls: dropping the revision from the server origin, or the generation bump inSetPackSources, makesTestSetPackSourcesReloadsfail. GatingSetPackSourceson config paths again makesTestSetPackSourcesAfterEmptyReloadfail, and dropping the pack generation check makesTestReloadAfterStalePackInstallfail.