Переглянути джерело

fix: resolve build/index.js via ${CLAUDE_PLUGIN_ROOT} so plugin works from any cwd

Claude Code resolves the .mcp.json args path against the user's cwd, not
the plugin's install directory. Without this fix, the MCP server only
starts when Claude is launched from inside a clone of this repo.

Co-authored-by: Nathan Kettles <natekettles@users.noreply.github.com>
Robert Sweet 1 місяць тому
батько
коміт
dccda14a30
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      .mcp.json

+ 1 - 1
.mcp.json

@@ -2,7 +2,7 @@
   "mcpServers": {
     "apple-mail": {
       "command": "node",
-      "args": ["build/index.js"]
+      "args": ["${CLAUDE_PLUGIN_ROOT}/build/index.js"]
     }
   }
 }