Skip to content

feat(mcp): server instructions + CODEMAP_MCP_TOOLS allowlist#126

Merged
SutuSebastian merged 1 commit into
mainfrom
feat/mcp-instructions-allowlist
May 25, 2026
Merged

feat(mcp): server instructions + CODEMAP_MCP_TOOLS allowlist#126
SutuSebastian merged 1 commit into
mainfrom
feat/mcp-instructions-allowlist

Conversation

@SutuSebastian
Copy link
Copy Markdown
Contributor

Summary

  • Inject MCP initialize instructions with a tool-selection playbook (templates/agent-content/mcp-instructions.md)
  • Expose the same content as codemap://mcp-instructions resource
  • Add CODEMAP_MCP_TOOLS env for subset tool registration (eval ablation / minimal installs)

Test plan

  • bun test src/application/mcp-server.test.ts src/application/mcp-tool-allowlist.test.ts
  • bun run typecheck
  • CI green

Depends on #124 (merged).

Inject a tool-selection playbook via MCP initialize instructions and
expose it as codemap://mcp-instructions. Add CODEMAP_MCP_TOOLS for
subset tool registration (eval ablation / minimal installs).
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 25, 2026

🦋 Changeset detected

Latest commit: c1bd277

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 25, 2026

Warning

Review limit reached

@SutuSebastian, we couldn't start this review because you've used your available PR reviews for now.

Your plan includes 1 review of capacity. Refill in 44 minutes and 41 seconds.

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

⌛ How to resolve this issue?

After more review capacity refills, 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 have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6e804ffb-0da6-4b19-a579-8adffc11a776

📥 Commits

Reviewing files that changed from the base of the PR and between 04c4aa7 and c1bd277.

📒 Files selected for processing (12)
  • .changeset/mcp-instructions-allowlist.md
  • README.md
  • docs/agents.md
  • docs/packaging.md
  • src/application/agent-content.ts
  • src/application/mcp-server.test.ts
  • src/application/mcp-server.ts
  • src/application/mcp-tool-allowlist.test.ts
  • src/application/mcp-tool-allowlist.ts
  • src/application/resource-handlers.ts
  • templates/agent-content/mcp-instructions.md
  • templates/agent-content/skill/10-recipes-context.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/mcp-instructions-allowlist

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.

@SutuSebastian SutuSebastian merged commit ed4ca6b into main May 25, 2026
12 checks passed
@SutuSebastian SutuSebastian deleted the feat/mcp-instructions-allowlist branch May 25, 2026 08:37
SutuSebastian added a commit that referenced this pull request May 25, 2026
Combine WSL watch / git-hooks docs with CODEMAP_MCP_TOOLS allowlist.
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