From 9a3ccce5743b977932a1cf9223607958ce69c34a Mon Sep 17 00:00:00 2001 From: Jacob Magar Date: Mon, 16 Feb 2026 17:27:04 -0500 Subject: [PATCH] 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. --- .mcp.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mcp.json b/.mcp.json index e00108e..4188e99 100644 --- a/.mcp.json +++ b/.mcp.json @@ -3,7 +3,7 @@ "unraid": { "type": "stdio", "command": "uv", - "args": ["run", "unraid-mcp-server"], + "args": ["run", "--directory", "${CLAUDE_PLUGIN_ROOT}", "unraid-mcp-server"], "env": { "UNRAID_MCP_TRANSPORT": "stdio" }