Can Mastra Code use Cursor's API as a model provider?
Tools
I'm already paying for Claude access through my Cursor subscription, and I'd like to use those same models with Mastra Code instead of paying for separate API access.
What I mean:
Mastra Code → Cursor API → Claude (via Cursor subscription)
Mastra Code → Cursor API → Claude (via Cursor subscription)
Instead of:
Mastra Code → Anthropic API → Claude (separate billing)
Mastra Code → Anthropic API → Claude (separate billing)
Questions:
1. Does Mastra Code support configuring custom model providers or API endpoints? 2. Does Cursor expose an API (OpenAI-compatible or otherwise) that could be used for this? 3. Has anyone successfully configured Mastra Code to use their Cursor subscription for model access?
I know Cursor has an SDK for extensions - it seems like there should be a way to reuse the model access I'm already paying for across different tools rather than maintaining separate subscriptions for the same underlying models.
Is this possible? If so, how would I configure it?