Repository navigation
feat(setup): register OMP during setup - #1301
Conversation
Add OMP (oh-my-pi) as a setup, doctor and uninstall client. Setup writes a type: stdio entry to the user-level agent mcp.json that OMP reads, following PI_CONFIG_DIR, an absolute PI_CODING_AGENT_DIR and the OMP_PROFILE/PI_PROFILE named profile. It removes rea from OMP's disabledServers denylist, which would otherwise hide the registration, and doctor reports a listed registration as stale. Closes #1257 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 30560b1f74
ℹ️ 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".
| PRODUCT_IDENTITY.mcpServerKey, | ||
| ) | ||
| ) | ||
| !clientServerListedDisabled(parsed, PRODUCT_IDENTITY.mcpServerKey) |
There was a problem hiding this comment.
Honor OMP's enabledServers override
When an OMP user file has mcpServers.rea.enabled: false together with enabledServers: ["rea"], OMP's active-profile allowlist forces that server on, but the shared registrationAligned check returns false before this new condition runs. doctor --client omp therefore reports a working registration as stale and prompts unnecessary setup; account for OMP's allowlist when evaluating enabled: false.
AGENTS.md reference: AGENTS.md:L57-L61
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Addressed in 0d564da. clientServerForcedEnabled reads OMP's enabledServers, and registrationAligned no longer treats enabled: false as disabled when the allowlist names rea. disabledServers still wins, matching OMP's docs. The new cases cover enabled: false alone (stale), allowlisted (aligned), and allowlisted plus denylisted (stale). The same commit fixes the format:check failure on the FAQ line.
OMP's user enabledServers allowlist forces an entry with enabled: false on, unless disabledServers also lists it. Doctor reported such a working registration as stale. Also format the FAQ client list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0d564da3a4
ℹ️ 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".
| client, | ||
| currentCommandPath, | ||
| options.platform ?? process.platform, | ||
| clientServerForcedEnabled(parsed, PRODUCT_IDENTITY.mcpServerKey), |
There was a problem hiding this comment.
Honor OMP enabledServers during update maintenance
When an owned OMP entry has enabled: false but enabledServers includes rea, this new call marks it aligned, yet existingMaintenanceScope rereads the entry and rejects enabled: false at src/application/UpdateMaintenance.ts:73-80. rea update therefore omits --client omp and will not refresh an integration OMP actually runs; apply the same forced-enable check there.
AGENTS.md reference: AGENTS.md:L57-L61
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Addressed in 348445a: existingMaintenanceScope keeps an owned entry with enabled: false when clientServerForcedEnabled reports that OMP's allowlist names rea. tests/process-global/updateMaintenance.test.ts covers both cases: excluded without the allowlist, included with it. The same commit moves the repeated client-location env reset into tests/fixtures/clientEnvironment.ts, which brings jscpd back under its threshold.
rea update skipped an owned OMP entry with enabled: false even when OMP's enabledServers allowlist runs it. Apply the same forced-enable rule as doctor. Share the client-location environment reset across the client tests instead of repeating it in each file. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
…#1317) After #1301 merged, main's duplicated-line share rose to 2.503%, over jscpd's 2.5% threshold, so Static checks fail on every PR. The new OMP test repeated the dialect test's imports and npx registration command. Export that command from the shared client test fixture instead. Co-authored-by: Claude Opus 5.5 <[email protected]>
* feat(setup): register OMP during setup Add OMP (oh-my-pi) as a setup, doctor and uninstall client. Setup writes a type: stdio entry to the user-level agent mcp.json that OMP reads, following PI_CONFIG_DIR, an absolute PI_CODING_AGENT_DIR and the OMP_PROFILE/PI_PROFILE named profile. It removes rea from OMP's disabledServers denylist, which would otherwise hide the registration, and doctor reports a listed registration as stale. Closes morluto#1257 * fix(setup): honor OMP's enabledServers allowlist in doctor OMP's user enabledServers allowlist forces an entry with enabled: false on, unless disabledServers also lists it. Doctor reported such a working registration as stale. Also format the FAQ client list. * fix(setup): keep OMP's allowlisted entry in update maintenance rea update skipped an owned OMP entry with enabled: false even when OMP's enabledServers allowlist runs it. Apply the same forced-enable rule as doctor. Share the client-location environment reset across the client tests instead of repeating it in each file. ---------
…morluto#1317) After morluto#1301 merged, main's duplicated-line share rose to 2.503%, over jscpd's 2.5% threshold, so Static checks fail on every PR. The new OMP test repeated the dialect test's imports and npx registration command. Export that command from the shared client test fixture instead.
Summary
Adds OMP (oh-my-pi) as a
rea setup/doctor/uninstallclient (--client omp), as requested in #1257.Closes #1257
Behavior
Taken from OMP's own source and docs (
packages/utils/src/dirs.ts,docs/mcp-config.md,packages/coding-agent/src/config/mcp-schema.json), not only from the issue:<agent dir>/mcp.json, with servers undermcpServers. The agent directory is resolved the way OMP does it:~/<PI_CONFIG_DIR or .omp>/agentby default; OMP joinsPI_CONFIG_DIRto the home directory;PI_CODING_AGENT_DIRreplaces it. OMP resolves a relative value against each process's working directory, so setup ignores a relative one, like Grok Bot'sSAND_DATA_ROOT;OMP_PROFILE, else legacyPI_PROFILE; an emptyOMP_PROFILEordefaultmeans the default profile) uses<root>/profiles/<name>/agentand ignoresPI_CODING_AGENT_DIR, matching OMP. Invalid profile names (which OMP refuses to start with) keep the default location.{ "type": "stdio", "command", "args", "env"? }. OMP recommends the explicittypefor schema-valid config. Doctor also accepts an entry withouttype, which OMP infers as stdio, and reports a non-stdio entry as invalid.disabledServers: OMP's user denylist hides a server by name regardless of its entry. Like Grok Build'sdisabled_mcp_servers, setup removes onlyreafrom it (other names and JSONC comments are kept), and doctor reports a listed registration asstale.disabled/enabled: falsehandling shared by all clients applies unchanged.Env isolation lists in the client tests and the package verifiers now also clear
OMP_PROFILE,PI_PROFILE,PI_CONFIG_DIRandPI_CODING_AGENT_DIR, so a developer's OMP settings cannot redirect them. Docs updated: the installation table plus an OMP note, the roadmap, the skill's client list, and the website FAQ. The README translations link to the installation table and need no change.Verification
tests/boundary/filesystem/ompClientConfiguration.test.ts:PI_CONFIG_DIR, absolute vs relativePI_CODING_AGENT_DIR, andOMP_PROFILE/PI_PROFILEprecedence, including empty,defaultand invalid names;unchanged, then uninstall;stalewhen listed,alignedwithouttype,invalidfortype: "http".ompadded to the shared register → read back → doctoraligned→ uninstall dialect test, and to the detection-order test.npm run test:focused --on alltests/boundary/filesystem/client*.test.ts, the new file,windowsNpxRegistrationandtests/process-global/updateMaintenance.test.ts(131 passed);npm run check:changed;npm run docs:check;tsc --noEmit.HOMEon macOS.setup --client omp --dry-runplans the update of~/.omp/agent/mcp.json.setup --client omp --yesreturnsready/configured, keeps a JSONC comment and theotherserver, and turnsdisabledServers: ["rea","other"]into["other"].doctor --client ompthen reportsaligned.env, plusdisabledServers) validate against OMP's publishedmcp-schema.jsonwith Ajv 2020.Not verified: a live OMP session loading the server. OMP isn't installed here; the issue author confirmed this entry shape mounts all REA tools on Windows and offered to test a build.
🤖 Generated with Claude Code