Skip to content

bug: openrouter compatibility issue #1279

@codenameraz

Description

@codenameraz

Description

Detailed description of the problem, including steps to reproduce the issue.
Upon any attempt to run any command, I am met with the following errors:

{"method":"notifications/message","params":{"data":{"message":"MCP Server connected: undefined"},"level":"info"},"jsonrpc":"2.0"}
{"method":"notifications/message","params":{"data":{"message":"MCP session missing required sampling capabilities, providers not registered"},"level":"info"},"jsonrpc":"2.0"}
[FastMCP warning] could not infer client capabilities after 10 attempts. Connection may be unstable.

However, initializing the project via cursor chat works:

{
"data": {
"message": "Project initialized successfully.",
"next_step": "Now that the project is initialized, the next step is to create the tasks by parsing a PRD. This will create the tasks folder and the initial task files (tasks folder will be created when parse-prd is run). The parse-prd tool will require a prd.txt file as input (typically found in .taskmaster/docs/ directory). You can create a prd.txt file by asking the user about their idea, and then using the .taskmaster/templates/example_prd.txt file as a template to generate a prd.txt file in .taskmaster/docs/. You may skip all of this if the user already has a prd.txt file. You can THEN use the parse-prd tool to create the tasks. So: step 1 after initialization is to create a prd.txt file in .taskmaster/docs/prd.txt or confirm the user already has one. Step 2 is to use the parse-prd tool to create the tasks. Do not bother looking for tasks after initialization, just use the parse-prd tool to create the tasks after creating a prd.txt from which to parse the tasks. You do NOT need to reinitialize the project to parse-prd."
},

But then it begins failing after parsing a prd:

Error: AI service call failed for all configured roles.
Version: 0.27.3
Name: task-master-ai
Current Tag: master

Steps to Reproduce

  1. Step-by-step instructions to reproduce the issue
  2. Include command examples or UI interactions

mcp settings (redacted openrouter key)

{
	"mcpServers": {
		"task-master-ai": {
			"command": "npx",
			"args": ["-y", "task-master-ai"],
			"env": {
				"OPENROUTER_API_KEY": "YOUR_OPENROUTER_KEY_HERE",
			}
		}
	}
}

Expected Behavior

Describe clearly what the expected outcome or behavior should be.

Actual Behavior

Describe clearly what the actual outcome or behavior is.

Screenshots or Logs

Provide screenshots, logs, or error messages if applicable.

Environment

  • Task Master version: 0.27.3
  • Node.js version: v20.19.4
  • Operating system: ubuntu
  • IDE (if applicable): cursor

Additional Context

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ai-modelsAI model integration and configurationarea:mcpMCP server and integrationbugSomething isn't workingmedium-priorityImportant but not urgentprovider:claude-codeClaude Code integrated models

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions