Prechádzať zdrojové kódy

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 mesiac pred
rodič
commit
dccda14a30
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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"]
     }
   }
 }