Why does the MCP server keep returning React code?
The MCP server works with any language or framework. Its job is to give your agent design context, not production-ready code.
When your agent uses get_design_context, the MCP server describes the design in a format that looks like React and Tailwind. AI models are trained on a lot of web code, so this format is easy for them to understand and translate into your language, framework, and patterns.
To get code that fits your project, tell your agent what you want, such as "Generate this in SwiftUI" or "Use components from src/components/ui." Learn more about writing effective prompts.
If you've connected components to more than one framework with Code Connect, you can also choose which framework your agent gets.
On Professional plans, only one framework can be active at a time, so the MCP server returns code for that framework only. If you're getting web code and expected another framework, a team admin can change the active framework in Admin → Settings → Resources → Code Connect.