Sfoglia il codice sorgente

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 mese fa
parent
commit
dccda14a30
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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"]
     }
   }
 }