Skip to content

feat: Add project's root as an environment variable to support dev containers #288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
leoneparise opened this issue Apr 21, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@leoneparise
Copy link

Motivation

  • MCPs in Cursor only runs on host machine and doesn't have access to dev container paths.
  • All terminal commands from AI agent runs in dev container.
  • All MCP commands requires a project root parameter. The AI agent try to infer from a pwd command and gives the wrong path.

Proposed Solution

Create an environment variable in MCP config to map the project root path in the host machine and make projectRoot parameter optional. As a workaround I created a root_path.mcp with the following content:

# Root path for task master MCP

Use root path as `<root_path>` for task master rcp calls.

If the change is too complex please update the documentation and include the workaround for dev containers environments.

@leoneparise leoneparise added the enhancement New feature or request label Apr 21, 2025
@eyaltoledano
Copy link
Owner

we could add a path to the config, shouldn’t be too hardcore to do.

@eyaltoledano eyaltoledano moved this from Triage to Ready in Taskmaster Core Apr 22, 2025
@eyaltoledano
Copy link
Owner

I'm going to table this for a little bit because i'm about to introduce a breaking change with .taskmasterconfig -- will revisit this after that's out or see if i can weasel it into the PR at the same time if it's not too much trouble

I will say project roots have been a lynchpin so far so lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Ready
Development

No branches or pull requests

2 participants