bug: AI Service Credit Balance Error When Using Task-Master MCP Tools
Description
When using Task Master MCP tools (specifically mcp10_update_subtask and mcp10_add_task) I'm encountering credit balance errors with both the Claude and Gemini AI providers, despite having available credits. The command-line tool with manual parameters works fine, but any functions that use AI generation are failing.
Error Messages When using mcp10_update_subtask: [WARN] Attempt 1 failed for role main (generateText / anthropic): Anthropic API error during text generation: Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits. [ERROR] Something went wrong on the provider side. Max retries reached for role main (generateText / anthropic). [ERROR] Service call failed for role main (Provider: anthropic, Model: claude-3-7-sonnet-20250219): Anthropic API error during text generation: Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits.
When the system tried to fall back to Gemini: Error: Google API error during object generation: Failed after 3 attempts. Last error: Gemini 2.5 Pro Preview doesn't have a free quota tier.
Steps to Reproduce
- Initialize a Task Master project
- Run an MCP command that uses AI generation like: mcp10_update_subtask --id=1.8 --prompt="[detailed prompt]" or mcp10_add_task --prompt="[detailed prompt]"
Expected Behavior
AI-powered task generation should work when sufficient credits are available in the account.
Actual Behavior The system reports credit balance errors with both Claude and Gemini providers, despite showing 489.5 available credits in the dashboard.
Workaround Using direct command parameters instead of AI generation works.
task-master add-task --title="Task Title" --description="Task Description" --priority="high"
Could this be an issue with API key configuration, credit allocation between services, or incorrect balance checking?
Environment
- Task Master version: 0.16.2
- Operating System: macOS
- Available credits according to Claude dashboard: 489.5
- Project type: NX monorepo