Skip to content

bug: Issue while trying to use MCP server on Cursor #244

@gauravhp

Description

@gauravhp

Description

When I try to add mcp server to my cursor, I am not able to having working

Steps to Reproduce

  1. Added the following configuration to MCP file in cursor
    "taskmaster-ai": {
    "command": "npx",
    "args": ["-y", "task-master-mcp"],
    "env": {
    "ANTHROPIC_API_KEY": ,
    "PERPLEXITY_API_KEY": ,
    "MODEL": "claude-3-7-sonnet-20250219",
    "PERPLEXITY_MODEL": "sonar-pro",
    "MAX_TOKENS": 64000,
    "TEMPERATURE": 0.0,
    "DEFAULT_SUBTASKS": 5,
    "DEFAULT_PRIORITY": "medium"
    }
    }
  2. Ran the MCP server
  3. The MCP server went red
  4. Opened output -> Cursor MCP and saw logs provided under logs section

Expected Behavior

MCP server should start

Actual Behavior

MCP Server is not starting

Screenshots or Logs

2025-04-16 15:10:28.241 [info] r-ai: Handling ReloadClient action
2025-04-16 15:10:28.242 [info] r-ai: getOrCreateClient for stdio server. process.platform: darwin isElectron: true
2025-04-16 15:10:28.242 [info] r-ai: Starting new stdio process with command: npx -y task-master-mcp
2025-04-16 15:10:30.199 [info] r-ai: Client closed for command
2025-04-16 15:10:30.200 [error] r-ai: Error in MCP: Client closed
2025-04-16 15:10:30.200 [error] r-ai: Failed to reload client: MCP error -32000: Connection closed
2025-04-16 15:10:30.203 [info] base: Handling ListOfferings action
2025-04-16 15:10:30.203 [info] base: Listing offerings
2025-04-16 15:10:30.203 [info] base: getOrCreateClient for stdio server. process.platform: darwin isElectron: true
2025-04-16 15:10:30.203 [info] base: Reusing existing stdio client
2025-04-16 15:10:30.203 [info] base: Connected to stdio server, fetching offerings
2025-04-16 15:10:30.218 [info] listOfferings: Found 1 tools
2025-04-16 15:10:30.218 [info] base: Found 1 tools, 0 resources, and 0 resource templates
2025-04-16 15:10:30.227 [info] ools: Handling ListOfferings action
2025-04-16 15:10:30.227 [error] ools: No server info found
2025-04-16 15:10:30.265 [info] r-ai: Handling ListOfferings action
2025-04-16 15:10:30.265 [error] r-ai: No server info found

Environment

  • Task Master version:
Image
  • Node.js version: v20.3.1
  • Operating system: MAC OS 15.4 (24E248)
  • IDE (if applicable): Cursor

Additional Context

Any additional information or context that might help diagnose the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions