Skip to content

Prepare the plugin for Claude's directory, and add the Cursor manifest - #1

Open
danog wants to merge 3 commits into
mainfrom
directory-and-cursor
Open

danog wants to merge 3 commits into
mainfrom
directory-and-cursor

Conversation

@danog

@danog danog commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Claude's directory portal blocks variables other than ${CLAUDE_PLUGIN_ROOT} in server commands:

"args": ["${CLAUDE_PLUGIN_ROOT}/scripts/server.php", "mcp", "${CLAUDE_PROJECT_DIR}"]

After: the launcher reads CLAUDE_PROJECT_DIR from the environment, which Claude Code sets for MCP and LSP servers:

"args": ["${CLAUDE_PLUGIN_ROOT}/scripts/server.php", "mcp"]

Copilot CLI starts servers in the plugin's directory, which the launcher took for the project (Psalm is not installed in ~/.copilot/installed-plugins/…); it now uses COPILOT_SESSION_CWD.

Also declares psalm.dev and shepherd.dev under network.hosts, says in the README what the plugin runs and sends, and adds .cursor-plugin/plugin.json.

danog added 3 commits December 2, 2026 13:31
The directory only accepts ${CLAUDE_PLUGIN_ROOT} in server commands: the
launcher reads CLAUDE_PROJECT_DIR from the environment, which Claude Code
sets for MCP and LSP servers. Declare psalm.dev, and say in the README
what the plugin runs and sends.
Copilot CLI starts plugin servers in the plugin's directory, which has a
composer.json: the launcher took it for the project. Use the session
directory that Copilot sets (COPILOT_SESSION_CWD), then $PWD, and never
the plugin's own directory.
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