Jelajahi Sumber

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 bulan lalu
induk
melakukan
dccda14a30
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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"]
     }
   }
 }