Repository navigation
feat(mcp)!: split bm_project into one tool per operation - #2068
Conversation
…and bm_recent One tool per operation instead of a `command` argument (#2030), so each tool declares its own required parameters and read-only hint. The old name is removed with no alias. bm tool mirrors the tools as project-list, project-create and recent. Man pages, skills, plugins, Hermes, OpenClaw, Tau and benchmarks follow the new names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CMYVL4TcbWdXhdvAzxfqjo Signed-off-by: phernandez <paul@basicmachines.co>
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: ebd93688f8
ℹ️ 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".
| @tool_app.command("recent") | ||
| def recent( |
There was a problem hiding this comment.
Migrate the CLI integration test to the new recent command
Removing bm tool project leaves test-int/cli/test_tool_commands_integration.py::test_project_recent_uses_the_default_project invoking ["tool", "project", "recent", "--json"]. Running that test confirms it now fails with exit code 2 and No such command 'project', breaking the integration suite. Update the test to invoke bm tool recent so it continues verifying default-project routing through the renamed command.
Useful? React with 👍 / 👎.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CMYVL4TcbWdXhdvAzxfqjo Signed-off-by: phernandez <paul@basicmachines.co>
## Why Second core piece of #2030 (one MCP tool per operation). Stacked on #2068. ## What `bm_schema` becomes three read-only tools: | 1.0 | 1.1 | required | | --- | --- | --- | | `bm_schema(command="validate", ...)` | `bm_schema_validate` | `project` (`note_type` or `identifier` optional) | | `bm_schema(command="infer", note_type=...)` | `bm_schema_infer` | `note_type`, `project` | | `bm_schema(command="diff", note_type=...)` | `bm_schema_diff` | `note_type`, `project` | - The old name is removed with no alias. `infer`/`diff` no longer take `identifier`, and their "needs `note_type`" refusals are gone; the schema requires it. `bm_schema_validate` still refuses `note_type` and `identifier` together. - NOT_FOUND guidance names the new tools (`bm_schema_infer(note_type=...)`). - `bm tool schema-validate|schema-infer|schema-diff`; `bm schema validate|infer|diff` (the human CLI) keeps its shape and calls the matching tool. - Man pages: `bm-schema(3)` replaced by `bm-schema-validate(3)`, `bm-schema-infer(3)`, `bm-schema-diff(3)`; `tools-migration(7)` 1.1 table extended. - OpenClaw client calls the three tools; `REQUIRED_TOOLS` updated. - `docs/ai-assistant-guide-extended.md`: dropped a stale line saying `recent` without `project` falls back to the default project. ## Cloud follow-up Cloud re-exports core tools; when it pins this stack it picks up the new names. Cloud's own docs, skills and agent prompts that say `bm_schema` need the same rename. ## Verification - `just fast-check` clean, `just man-regen` reports no drift - `just fast-test` on tests/mcp, tests/cli, man page and consumer tests, test-int/mcp, test-int/cli, test-int/bughunt_fixes - OpenClaw `bun test`, typecheck, lint; `package-check-skills`, `package-check-claude-code`; benchmarks `just test` 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01CMYVL4TcbWdXhdvAzxfqjo --------- Signed-off-by: phernandez <paul@basicmachines.co> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
tools-migration(7) told agents to replace `cloud_info` with `bm_project(command="info")`, which no longer exists after #2068. It now names `bm_cloud_setup_status` (setup status) and `bm_project_usage` (workspace usage), the Cloud tools that replace it. The page has no other stale spellings. The `bm_project(command=...)` and `bm_schema(command=...)` rows in the 1.1 CHANGES table map those calls to their replacements on purpose. The page is hand-written; `just man-regen` reports every page matches its source. Manual and migration tests pass: 1023 passed. Found by Codex in a development smoke test. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01CMYVL1rjJwNnrvxniz1dDD --------- Signed-off-by: phernandez <paul@basicmachines.co> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Why
#2030 moved to option 2: one MCP tool per operation instead of a
commandargument. Chat clients pick and fill grouped tools poorly, and Google's Connected Apps policy treats them as generic dispatchers. This is the first core piece; Cloud'sbm_agentsplit is basic-memory-cloud#3011.What
bm_projectbecomes three tools, each with its own required parameters and hints:bm_project(command="list")bm_project_listbm_project(command="create", ...)bm_project_createname,pathbm_project(command="recent", ...)bm_recentprojectcreateandrecentare gone; the schema enforces them now.bm toolkeeps mirroring the tools one to one:bm tool project-list,project-create,recent.bm-project(3)replaced bybm-project-list(3),bm-project-create(3),bm-recent(3).tools-migration(7)gets a 1.1 CHANGES table.bm_editkeeps itscommand(decided: every command is an edit of one note).bm_schemais split in the next PR in this stack.Cloud follow-up (needed before Cloud re-pins)
The hosted server replaces
bm_projectwith a version that addsinfoandusage. When Cloud pins this, it must registerbm_project_list/bm_project_create/bm_recentfrom core and splitinfo/usageinto their own tools (e.g.bm_cloud_info,bm_usage), with pages.Release
Renaming tools breaks clients that hard-code
bm_project, so this goes out as 1.1.0, not a patch.Verification
just fast-checkcleanjust fast-teston tests/mcp, tests/cli, man page and consumer tests, test-int/mcp, test-int/bughunt_fixesjust package-check-hermes,package-check-skills,package-check-claude-code; OpenClawbun test, typecheck, lint; Taujust check; benchmarksjust test🤖 Generated with Claude Code
https://claude.ai/code/session_01CMYVL4TcbWdXhdvAzxfqjo