Skip to content

MCP connectivity issue #287

Description

@scottsimon-commits

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

  1. Connect to the MCP server via @21st-dev/magic
  2. Call 21st_magic_component_inspiration with any search query (tested with "testimonial card" and "pricing card" — both failed identically)
  3. 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.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions