Skip to content

feat(mcp)!: split bm_project into one tool per operation - #2068

Open
phernandez wants to merge 2 commits into
semantic-freshness-latest-embeddedfrom
split-bm-project
Open

phernandez wants to merge 2 commits into
semantic-freshness-latest-embeddedfrom
split-bm-project

Conversation

@phernandez

Copy link
Copy Markdown
Member

Why

#2030 moved to option 2: one MCP tool per operation instead of a command argument. 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's bm_agent split is basic-memory-cloud#3011.

What

bm_project becomes three tools, each with its own required parameters and hints:

1.0 1.1 required readOnly
bm_project(command="list") bm_project_list none yes
bm_project(command="create", ...) bm_project_create name, path no
bm_project(command="recent", ...) bm_recent project yes
  • The old name is removed with no alias. The required-argument refusals for create and recent are gone; the schema enforces them now.
  • bm tool keeps mirroring the tools one to one: bm tool project-list, project-create, recent.
  • Man pages: bm-project(3) replaced by bm-project-list(3), bm-project-create(3), bm-recent(3). tools-migration(7) gets a 1.1 CHANGES table.
  • Callers updated: server instructions, prompts, skills, Claude Code and Codex plugins, Hermes, OpenClaw, Tau, Pi references, benchmarks.
  • bm_edit keeps its command (decided: every command is an edit of one note). bm_schema is split in the next PR in this stack.

Cloud follow-up (needed before Cloud re-pins)

The hosted server replaces bm_project with a version that adds info and usage. When Cloud pins this, it must register bm_project_list/bm_project_create/bm_recent from core and split info/usage into 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-check clean
  • just fast-test on tests/mcp, tests/cli, man page and consumer tests, test-int/mcp, test-int/bughunt_fixes
  • just package-check-hermes, package-check-skills, package-check-claude-code; OpenClaw bun test, typecheck, lint; Tau just check; benchmarks just test

🤖 Generated with Claude Code

https://claude.ai/code/session_01CMYVL4TcbWdXhdvAzxfqjo

…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>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T18:35:34.890229Z 14eb8fa New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +646 to +647
@tool_app.command("recent")
def recent(

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant