Along with the issue of not be able to purchase additional tokens on the 21st.dev platform (get an error code - previously reported), I am also having issues connecting to the MCP server. Here is the log of the problem for your review. Can you help out with both of these issues please?
Thank you,
Scott Simon
scott.simon@theastraway.com
Title: MCP server (@21st-dev/magic) returns malformed responses — schema validation failure on 21st_magic_component_inspiration
Body:
Description
Calls to the 21st_magic_component_inspiration tool via the MCP integration consistently fail with a malformed response error. The server appears to be returning a content object that doesn't conform to the MCP protocol's expected schema.
Error
MCP error -32602: Invalid tools/call result
The response is missing required fields — no text field for a text-content type, and no data/mimeType for an image/resource type. It fails validation against all recognized MCP content-type schemas.
Steps to reproduce
- Connect to the MCP server via
@21st-dev/magic
- Call
21st_magic_component_inspiration with any search query (tested with "testimonial card" and "pricing card" — both failed identically)
- Observe the malformed-response error instead of returned component data
Reproducibility
Consistent, not intermittent. Same failure signature across multiple sessions over several days, with different search queries each time.
Environment
Connecting via Claude (Claude Code), using the MCP integration as documented for AI coding assistants.
Impact
This blocks programmatic access to the component library via MCP entirely, which is the integration's core intended use case for AI-assisted development.
Along with the issue of not be able to purchase additional tokens on the 21st.dev platform (get an error code - previously reported), I am also having issues connecting to the MCP server. Here is the log of the problem for your review. Can you help out with both of these issues please?
Thank you,
Scott Simon
scott.simon@theastraway.com
Title: MCP server (
@21st-dev/magic) returns malformed responses — schema validation failure on21st_magic_component_inspirationBody:
Description
Calls to the
21st_magic_component_inspirationtool via the MCP integration consistently fail with a malformed response error. The server appears to be returning a content object that doesn't conform to the MCP protocol's expected schema.Error
The response is missing required fields — no
textfield for a text-content type, and nodata/mimeTypefor an image/resource type. It fails validation against all recognized MCP content-type schemas.Steps to reproduce
@21st-dev/magic21st_magic_component_inspirationwith any search query (tested with "testimonial card" and "pricing card" — both failed identically)Reproducibility
Consistent, not intermittent. Same failure signature across multiple sessions over several days, with different search queries each time.
Environment
Connecting via Claude (Claude Code), using the MCP integration as documented for AI coding assistants.
Impact
This blocks programmatic access to the component library via MCP entirely, which is the integration's core intended use case for AI-assisted development.