Skip to content

fix(mcp): stop claiming a qualified path addresses another project (#2218) - #2232

Closed
anhnt256 wants to merge 5 commits into
basicmachines-co:mainfrom
anhnt256:fix/bm-path-project-contradiction
Closed

anhnt256 wants to merge 5 commits into
basicmachines-co:mainfrom
anhnt256:fix/bm-path-project-contradiction

Conversation

@anhnt256

@anhnt256 anhnt256 commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #2218

DirectoryPath (used by bm_list and bm_find, both with required project) claimed '<project>/path' addresses another project, but a cross-project prefix is always rejected with ProjectPrefixConflictError. The description now says the prefix must agree with the project parameter.

The conflict error's recovery hint told callers to use '<detected>/<path>' alone, which is impossible because project is required in the input schema. It now advises project='<detected>' with a project-relative path, or project='<explicit>' with a project-relative path.

Also updated the exact-message assertion in test_conflicting_prefix_raises_naming_both, and the path line in the bm-list/bm-find man pages (what just man-regen would emit for the new description).

Verification: the new error string was checked against the updated test expectation for equality; the full pytest suite and just man-regen were not run locally, so CI is the arbiter for test_man_pages.py and the routing tests.

Signed-off-by: Nguyễn Tuấn Anh <anhnt256@gmail.com>

Signed-off-by: Nguyễn Tuấn Anh <anhnt256@gmail.com>
Signed-off-by: Nguyễn Tuấn Anh <anhnt256@gmail.com>
Signed-off-by: Nguyễn Tuấn Anh <anhnt256@gmail.com>
Signed-off-by: Nguyễn Tuấn Anh <anhnt256@gmail.com>
Signed-off-by: Nguyễn Tuấn Anh <anhnt256@gmail.com>
@CLAassistant

CLAassistant commented Dec 6, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-06T02:17:21.924366Z 452e714 PR opened
ℹ️ 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.

@phernandez

Copy link
Copy Markdown
Member

Thanks @anhnt256. CI does not run on fork PRs here, so I moved your commits to #2235 with authorship kept, plus a reworded hint and a changelog entry.

@phernandez

Copy link
Copy Markdown
Member

Merged as #2235 with your commits and authorship kept. Thanks!

@phernandez phernandez closed this Dec 6, 2026
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.

[BUG] bm_list / bm_find / bm_read: path description contradicts required project parameter, and conflict error advises omitting required project

3 participants