Skip to content

BACK-391 - Add CWD override support for MCP start and CLI root resolution#536

Merged
MrLesk merged 3 commits intomainfrom
tasks/back-391-mcp-cwd-override
Feb 20, 2026
Merged

BACK-391 - Add CWD override support for MCP start and CLI root resolution#536
MrLesk merged 3 commits intomainfrom
tasks/back-391-mcp-cwd-override

Conversation

@MrLesk
Copy link
Owner

@MrLesk MrLesk commented Feb 20, 2026

Summary

  • add shared runtime CWD resolver (BACKLOG_CWD) for CLI command root detection
  • add --cwd to backlog mcp start with precedence over BACKLOG_CWD
  • resolve MCP startup root from override/env/process cwd, then keep fallback mode when no Backlog project is found
  • update MCP manual config docs with BACKLOG_CWD and --cwd guidance for IDEs that do not pass workspace cwd
  • add focused unit tests for override precedence, relative paths, and invalid path failures

Testing

  • not run (not requested)

Copy link

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

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: 3fd33a8662

ℹ️ 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".

@MrLesk MrLesk merged commit b847d89 into main Feb 20, 2026
10 checks passed
@MrLesk MrLesk deleted the tasks/back-391-mcp-cwd-override branch February 20, 2026 23:21
agentroadmap pushed a commit to agentroadmap/agentRoadmap.md that referenced this pull request Mar 13, 2026
…tion (MrLesk#536)

## Summary
- add shared runtime CWD resolver (BACKLOG_CWD) for CLI command root
detection
- add --cwd <path> to backlog mcp start with precedence over BACKLOG_CWD
- resolve MCP startup root from override/env/process cwd, then keep
fallback mode when no Backlog project is found
- update MCP manual config docs with BACKLOG_CWD and --cwd guidance for
IDEs that do not pass workspace cwd
- add focused unit tests for override precedence, relative paths, and
invalid path failures

## Testing
- not run (not requested)
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