Skip to content

[bug]: CLAUDE CODE MCP CONFIG IS WRONG AND BREAKS #9181

@dtsoden

Description

@dtsoden

Describe the bug

According to Claude Code's MCP configuration spec, every server needs to specify its transport type. Your current configuration:

  {
    "mcpServers": {
      "shadcn": {
        "command": "npx",
        "args": ["shadcn@latest", "mcp"]
      }
    }
  }

Should be:

  {
    "mcpServers": {
      "shadcn": {
        "type": "stdio",
        "command": "npx",
        "args": ["shadcn@latest", "mcp"]
      }
    }
  }

The "type": "stdio" tells Claude Code that this is a local process-based MCP server (as opposed to HTTP or SSE servers).

Affected component/components

installation co Claude code mcp

How to reproduce

Follow your instructions https://ui.shadcn.com/docs/mcp cor claude Code & NPM

npx shadcn@latest mcp init --client claude

Codesandbox/StackBlitz link

No response

Logs

System Info

windows 11 25H2

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions