From 189d9288c1c9f74cfe9af6069d4133dbf56b3915 Mon Sep 17 00:00:00 2001 From: Eyal Toledano Date: Wed, 2 Apr 2025 22:04:00 -0400 Subject: [PATCH] fix: Improve MCP server robustness and debugging - Refactor for more reliable project root detection, particularly when running within integrated environments like Cursor IDE. Includes deriving root from script path and avoiding fallback to '/'. - Enhance error handling in : - Add detailed debug information (paths searched, CWD, etc.) to the error message when is not found in the provided project root. - Improve clarity of error messages and potential solutions. - Add verbose logging in to trace session object content and the finally resolved project root path, aiding in debugging path-related issues. - Add default values for and to the example environment configuration. --- .cursor/mcp.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.cursor/mcp.json b/.cursor/mcp.json index e69de29b..6dd8186d 100644 --- a/.cursor/mcp.json +++ b/.cursor/mcp.json @@ -0,0 +1,20 @@ +{ + "mcpServers": { + "taskmaster-ai": { + "command": "node", + "args": [ + "./mcp-server/server.js" + ], + "env": { + "ANTHROPIC_API_KEY": "%ANTHROPIC_API_KEY%", + "PERPLEXITY_API_KEY": "%PERPLEXITY_API_KEY%", + "MODEL": "%MODEL%", + "PERPLEXITY_MODEL": "%PERPLEXITY_MODEL%", + "MAX_TOKENS": "%MAX_TOKENS%", + "TEMPERATURE": "%TEMPERATURE%", + "DEFAULT_SUBTASKS": 5, + "DEFAULT_PRIORITY": "medium" + } + } + } +} \ No newline at end of file