Skip to content

fix(cli): reload MCP config after project selection - #966

Closed
luantaraschi wants to merge 8216 commits into
CodebuffAI:mainfrom
luantaraschi:fix/reload-mcp-after-project-change
Closed

fix(cli): reload MCP config after project selection#966
luantaraschi wants to merge 8216 commits into
CodebuffAI:mainfrom
luantaraschi:fix/reload-mcp-after-project-change

Conversation

@luantaraschi

Copy link
Copy Markdown

Summary

  • Reload the local agent registry after the project picker changes the working directory, so the selected project's .agents/mcp.json is loaded before the client is recreated.
  • Preserve the existing --agent override behavior.
  • Add a regression test that verifies a project MCP server reaches the base agent definition after project selection.

Fixes #957

Testing

  • Project picker and local agent registry tests: 41 passed
  • CLI typecheck
  • SDK build
  • Freebuff Windows binary build
  • Freebuff version and help E2E tests: 5 passed

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:triaged Classified by the community triage bot pr:port-candidate Worth porting into the private source tree

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] MCP servers from .agents/mcp.json are not loaded when the project is selected via the project picker (CLI started from an ancestor directory)

6 participants