fix: use CLAUDE_PLUGIN_ROOT for portable MCP server configuration

Update .mcp.json to use  environment variable
for the --directory argument, ensuring the MCP server works correctly
regardless of where the plugin is installed.

This follows Claude Code plugin best practices for MCP server bundling.
This commit is contained in:
Jacob Magar
2026-02-16 17:27:04 -05:00
parent 216afcbe48
commit 9a3ccce574

View File

@@ -3,7 +3,7 @@
"unraid": { "unraid": {
"type": "stdio", "type": "stdio",
"command": "uv", "command": "uv",
"args": ["run", "unraid-mcp-server"], "args": ["run", "--directory", "${CLAUDE_PLUGIN_ROOT}", "unraid-mcp-server"],
"env": { "env": {
"UNRAID_MCP_TRANSPORT": "stdio" "UNRAID_MCP_TRANSPORT": "stdio"
} }