fix(cli): project list MCP column shows transport type instead of DB presence#661
fix(cli): project list MCP column shows transport type instead of DB presence#661
Conversation
|
Claude finished @groksrc's task in 1m 45s —— View job PR Review: Fix project list MCP column to show transport type
SummaryThis PR fixes a legitimate bug: the old code set Team ChecklistCode Quality & Standards
Testing & Documentation
Basic Memory Architecture
Security & Performance
Compatibility
Issues FoundMinor: Variable name inconsistency
Minor: Edge case not directly testedThe second branch in the transport logic: # project.py:193-194
elif cloud_project is not None and local_project is None:
mcp_stdio_target = "https"This handles a cloud-only project with no local config entry ( Observation:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 851015f8b2
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| elif cloud_project is not None and local_project is None: | ||
| mcp_stdio_target = "https" |
There was a problem hiding this comment.
Gate HTTPS fallback on missing project config
The elif cloud_project is not None and local_project is None branch marks MCP transport as https even when the project is explicitly configured as local (entry.mode == local). This happens when bm project list --cloud is used, because that path only fetches cloud projects and leaves local_project unset, so local-mode projects that also exist in cloud are mislabeled as HTTPS. The fallback should only apply when no local routing configuration exists for the project (for example, entry is None).
Useful? React with 👍 / 👎.
Rename "MCP (stdio)" column to "MCP" and show actual transport type (stdio/https) based on project routing mode instead of just checking whether a local DB entry exists. Clear local path display for cloud-mode projects since they route through the cloud API. Fixes #659 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
Follow-up from review: the variable now holds "https" or "stdio", so the old name was misleading. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
851015f to
f2fd83f
Compare
|
Claude finished @groksrc's task in 1m 44s —— View job PR Review: Fix project list MCP column to show transport type
SummaryThis PR was updated to address the variable rename from the previous review ( Team ChecklistCode Quality & Standards
Testing & Documentation
Basic Memory Architecture
Security & Performance
Compatibility
Issues Found✅ Previous review concern addressedThe Bug:
|
Only fall back to HTTPS transport for projects that have no local config entry at all. Previously a local-mode project that also existed in the cloud list could be mislabeled as HTTPS. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
|
Claude finished @groksrc's task in 1m 23s —— View job PR Review: Fix project list MCP column to show transport type
SummaryThis PR has been through two prior review cycles and the key issues have been addressed well. The core fix (showing actual transport type instead of DB presence) is correct, the variable rename from Team ChecklistCode Quality & Standards
Testing & Documentation
Basic Memory Architecture
Security & Performance
Compatibility
Issues Found✅ Previous bug fix verified:
|
bm-clawd
left a comment
There was a problem hiding this comment.
Clean fix. The old column was misleading — showing DB presence when what matters is the transport. Logic looks correct: cloud-mode → https, everything else → stdio. Cloud projects also correctly clear local_path now.
One minor note: the JSON key stays mcp_stdio which is technically a misnomer now (could be https), but changing it would break consumers so leaving it is the right call.
Ship it. 🚢
Summary
bm project liststdio(local) orhttps(cloud) based on project routing modePreviously the column only checked whether a project existed in the local DB, ignoring the configured routing mode entirely.
Test plan
test_project_list_and_ls.pyfor new column name and valuestest_json_output.pystill passes (key namemcp_stdiounchanged)Fixes #659
🤖 Generated with Claude Code