petal-components-mcp

v0.1.0
io.github.petalframework/petal-components-mcp Checked 1 hour ago Published 6 months ago

Phoenix LiveView component schemas from petal_components, exposed to AI coding assistants.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add petal-components-mcp -- npx -y petal-components-mcp@0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "petal-components-mcp": {
      "args": [
        "-y",
        "petal-components-mcp@0.1.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "petal-components-mcp": {
      "args": [
        "-y",
        "petal-components-mcp@0.1.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "petal-components-mcp": {
      "args": [
        "-y",
        "petal-components-mcp@0.1.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.petal-components-mcp]
command = "npx"
args = ["-y", "petal-components-mcp@0.1.0"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http petal-components-mcp https://mcp.petal.build/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "petal-components-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.petal.build/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "petal-components-mcp": {
      "url": "https://mcp.petal.build/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "petal-components-mcp": {
      "type": "http",
      "url": "https://mcp.petal.build/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.petal-components-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.petal.build/mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: list_components, get_component.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json