Describe the Bug
Yesterday i was using taskmaster-ai MCP with Openrouter API key. Today i upgraded cursor to the latest version and now i get error.
Cursor agent generated this for debugging
Taskmaster AI: “AI service call failed for all configured roles” — All Models/Keys/Configs Fail in Cursor MCP
Description:
I am unable to use Taskmaster AI in my project due to persistent errors:
“AI service call failed for all configured roles”
This occurs regardless of model, API key, or configuration. Here’s a detailed summary of what I’ve tried:
Steps Taken:
API Keys & Config:
Tried multiple OpenRouter API keys (including newly generated ones).
Ensured correct key placement in both local .cursor/mcp.json and global /Users/naoba/.cursor/mcp.json.
Used the correct key name: “OPENROUTER_API_KEY”.
Model Selection:
Attempted to set various OpenRouter models, including:
openrouter/openai/o4-mini
openrouter/google/gemini-2.5-flash-preview-05-20
openrouter/deepseek/deepseek-chat-v3-0324:free
Others from the available models list.
All attempts to set these models result in:
“Model ID … not found in the live OpenRouter model list.”
These same models work in another project using Cursor’s Project Settings UI (with no .cursor/mcp.json).
Project & Environment:
Tested in both my main project and a brand new, minimal project.
Removed and recreated .cursor/mcp.json multiple times.
Tried using only global config, only local config, and the Cursor UI.
Restarted Cursor and the MCP server after every change.
OpenRouter Presets:
Deleted all OpenRouter presets and tried again with new keys.
Taskmaster AI Version:
Using Taskmaster AI version 0.19.0.
Parsing PRD:
Every attempt to run parse_prd results in:
“AI service call failed for all configured roles.”
Why I Believe This Is a Cursor/MCP/Taskmaster AI Integration Issue:
The same OpenRouter API key and model work in another project using only the Cursor Project Settings UI (no .cursor/mcp.json).
The error persists across all combinations of local/global config, new API keys, and new projects.
The models I try to set are listed as available by Taskmaster AI, but cannot be set via the MCP tool.
All user-side troubleshooting steps have been exhausted, including restarts, config resets, and using new keys.
This suggests a bug or a breaking change in how Taskmaster AI (or MCP in Cursor) resolves and sets models, or how it reads environment variables.
Request:
Please investigate this integration issue between Taskmaster AI, Cursor MCP, and OpenRouter.
Let me know if there are any workarounds or if a fix is planned.
Additional Info:
I can provide my .cursor/mcp.json (with the key redacted) and any logs if needed.
Let me know if you need this in a different format or want to add any more details!
Steps to Reproduce
Steps to Reproduce:
Create/Open a Project in Cursor
Open Cursor and either create a new project or use an existing one.
Configure OpenRouter API Key
Add your OpenRouter API key to either:
The project’s .cursor/mcp.json file:
Apply to mcp.json
}
Or, set the key in Cursor’s Project Settings UI.
Restart Cursor (or MCP Server)
Fully quit and reopen Cursor to ensure the new config is loaded.
Initialize Taskmaster AI
Run Taskmaster AI initialization (if not already done).
Attempt to Set a Model
Use the MCP tool or Cursor UI to set the main model to any of the following (all are listed as available in the model list):
openrouter/openai/o4-mini
openrouter/google/gemini-2.5-flash-preview-05-20
openrouter/deepseek/deepseek-chat-v3-0324:free
Observe that all attempts to set these models result in:
Apply to mcp.json
.
Attempt to Parse a PRD
Place a valid PRD file at .taskmaster/docs/prd.txt.
Run the parse_prd command/tool.
Observe the error:
Apply to mcp.json
.
Repeat in a Clean Project
Create a brand new project and repeat steps 2–6.
The same errors occur, regardless of project or config.
Expected:
Taskmaster AI should accept the model and parse the PRD using the OpenRouter API key and selected model.
Actual:
All attempts to set a model or use Taskmaster AI result in errors, even though the models are listed as available and the key is valid.
Let me know if you want to add or clarify any step!
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.2.1 (Universal)
VSCode Version: 1.99.3
Commit: 031e7e0ff1e2eda9c1a0f5df67d44053b059c5d0
Date: 2025-07-03T06:08:06.355Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0
Does this stop you from using Cursor
No - Cursor works, but with this issue