GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — feat(mcpx): live add/remove for adapter declarations (#2118) by dezren39 · Pull Request #2565 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 33 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 40939aae18
Your 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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…2118) - P1: adapter add looks the name up across every configured file before writing; a duplicate is refused, a replacement edits the file that defines it (was: duplicate persisted into the first file, breaking reload and daemon start). - P2: both adapter handlers hold reloadMu over lookup+write+reload, so concurrent live adds/removes cannot overwrite each other. - P2: replacing a declaration restarts the adapter: augmentAdapters now carries MCPX_ADAPTER_DECLARATION_SHA256 in the generated server env (PoolID hashes env), the shape augmentAPIs uses. - P2: --tool is a valued flag for hoisting, so --tool status stays paired after the adapter name. - P2: generated tools carry their subcommand as fixed Args, so a tool runs git status, not bare git. Also fixes the PR's two pre-existing parity failures: adapter is no longer declared Local now that add/remove reach /v1 operations, adapters_add description truthed up, docs/parity.md regenerated. Tests (laptop): new daemon handler tests (cross-file refuse, replace edits defining file, 8 concurrent adds all land), new cli tests (hoist pairing, tool entries, fingerprint moves). go test ./internal/cli ./internal/daemon ./internal/config ./internal/adapter pass. Pre-existing unrelated failure left alone: internal/api route-coverage for GET /v1/dashboard/ fails on the clean PR head too.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 3d8c6ec01b
Your 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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
- handleAdaptersAdd refuses a name a non-adapter server namespace
already owns (409) before persisting: augmentAdapters rejects such
an adapter at load, so the write would 500 on reload and strand a
declaration that breaks later reloads and daemon starts
- adapter file edits preserve sibling sections of combined documents:
AddAdapterEntry/RemoveAdapterEntry now keep the parsed document and
replace only its adapters field instead of rewriting the file as
{adapters: [...]} and deleting mcpServers/paths/apis sections
Regression tests: TestAdapterAddRefusesServerNamespaceCollision
(daemon), TestAdapterEditsPreserveSiblingSections (config). Laptop:
go test ./internal/config/ ./internal/daemon/ pass.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 056726f38b
Your 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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
The server-collision check compared map keys, so a configured foo-bar did not stop an adapter named foo_bar even though both resolve to namespace foo_bar through config.SanitizeNamespace and the reload rejects the pair -- after the declaration was persisted. The check now scans configured servers by sanitized namespace; the adapter-generated exemption applies only to the adapters own exact name, which a replace legitimately redefines. Regression test: TestAdapterAddRefusesResolvedNamespaceCollision.
There was an error while loading. Please reload this page.
…m a)
Add apis_add (POST /v1/apis) and apis_remove (DELETE /v1/apis/{name})
following the adapters_add pattern from PR #2565: persist the
declaration into the first paths.apis file that names API files and
reload, so the API is callable immediately and survives restart;
refuse with a remedy when no API file is configured, on cross-file
duplicates, and on server-namespace collisions.
CLI: mcpx api add <name> --spec <doc> [...] and mcpx api remove
<name> go through the daemon like adapter add/remove. Regenerated
ops.gen.ts and docs/parity.md; the api manual entry now lists
add/remove and drops the stale local-only note.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.