You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The Claude Code MCP header helper takes its code scope from the plugin root, not the session's checkout #337
The Claude Code plugin's MCP header helper (integrations/claude-code-plugin/bin/loom-mcp-headers.mjs) derives X-Loom-Code-Scope from the git checkout of its working directory (checkoutScope(process.cwd())). Claude Code starts a plugin's headersHelper from the plugin root, not from the project directory (MCP docs, "Where the helper runs"). So the header names:
no checkout, when the plugin is installed from a git marketplace into ~/.claude/plugins/cache/... (the code scope then comes only from LOOM_CODE_REPO / code_repo);
the wrong checkout, when the plugin root sits inside one: a local-path marketplace (claude plugin marketplace add <path to a Loom clone>), or a home directory under a dotfiles repository.
Expected
The header names the namespace of the checkout the session works in, as the hooks do (they read payload.cwd).
Reproduce
Install the plugin from a local clone (claude plugin marketplace add /path/to/loom && claude plugin install loom@loom), start a session in another indexed checkout, and look at the X-Loom-Code-Scope the server receives on /mcp: it is the Loom clone's.
Activity