Skip to content

feat(agents): inject workspace root for VS Code MCP init#156

Merged
SutuSebastian merged 5 commits into
mainfrom
feat/vscode-mcp-workspace-root
May 27, 2026
Merged

feat(agents): inject workspace root for VS Code MCP init#156
SutuSebastian merged 5 commits into
mainfrom
feat/vscode-mcp-workspace-root

Conversation

@SutuSebastian
Copy link
Copy Markdown
Contributor

Summary

  • Set workspaceRootArg: true on the VS Code registry entry so codemap agents init --mcp writes --root ${workspaceFolder} in .vscode/mcp.json (parity with Cursor and this repo's dogfood config).
  • Assert VS Code args in agents-init-mcp integration test; document behavior in docs/agents.md.
  • Patch changeset for npm release notes.

Test plan

  • bun test src/agents-init-mcp.test.ts (33 pass; pre-commit hook)
  • Re-run codemap agents init --mcp in a consumer repo with .vscode/mcp.json and confirm servers.codemap.args includes --root + ${workspaceFolder}

VS Code / Copilot now get `--root ${workspaceFolder}` via agents init --mcp,
matching Cursor so Copilot indexes the open workspace when spawn cwd differs.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 27, 2026

🦋 Changeset detected

Latest commit: 5333c2b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stainless-code/codemap Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 27, 2026

Warning

Review limit reached

@SutuSebastian, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 53 minutes and 25 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3bf50d65-09ed-4b1f-9f58-201eb8062cc8

📥 Commits

Reviewing files that changed from the base of the PR and between 946816d and 5333c2b.

📒 Files selected for processing (7)
  • .changeset/vscode-mcp-workspace-root.md
  • docs/agents.md
  • src/agents-init-mcp-registry.test.ts
  • src/agents-init-mcp-registry.ts
  • src/agents-init-mcp.test.ts
  • src/agents-init-mcp.ts
  • src/cli.test.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/vscode-mcp-workspace-root

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Address PR review: registry assertion, vscode-only/merge/upgrade tests,
stale plan doc refresh, changeset migration note, CLI subprocess check.
Resolve plan doc contradiction post-implementation; rename CLI test title.
Copilot-only MCP wiring uses --interactive, not a --target flag.
Lift migration + --root rationale into agents.md; delete shipped plan per
docs-governance (delete + lift, no slim-and-keep in plans/).
@SutuSebastian SutuSebastian merged commit ae4a143 into main May 27, 2026
11 checks passed
@SutuSebastian SutuSebastian deleted the feat/vscode-mcp-workspace-root branch May 27, 2026 16:26
@github-actions github-actions Bot mentioned this pull request May 27, 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.

1 participant