MCP beta · read-only registry

Connect DUKU Labs to your coding agent

Connect DUKU Labs once, then ask your coding agent to discover and implement components inside your product. MCP gives the agent structured context and callable tools — the agent still needs access to your project and your permission to edit files, install dependencies and run commands.

Claude Code

claude mcp add duku-labs --transport http https://labs.duku.design/mcp

Codex

codex mcp add duku-labs --url https://labs.duku.design/mcp

The Codex CLI and IDE extension share MCP configuration, so adding the server once covers both.

Claude Desktop, Cursor, VS Code and other clients

Add the server to your client's MCP configuration file:

{
  "mcpServers": {
    "duku-labs": {
      "type": "http",
      "url": "https://labs.duku.design/mcp"
    }
  }
}

Test the connection

The endpoint answers plain JSON-RPC, so you can verify it from a terminal before wiring up a client:

curl -s https://labs.duku.design/mcp -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

What the server exposes

Tools

  • search_components

    Search the registry by natural-language requirement. Returns matches with confidence scores, category, tier and docs links.

  • get_component

    Full agent-readable schema for one component: props, interaction and motion behavior, dependencies, install command, quality guarantees and source.

  • get_install_command

    The shadcn CLI command that installs a component's source (plus registry dependencies) into the current project.

Resources

  • duku://componentsIndex of every component in the catalog
  • duku://components/{name}Per-component schema and source
  • duku://tokens/defaultFoundation, semantic, domain and motion tokens
  • duku://docs/quality-standardWhat every published component guarantees

Prompts

  • adapt_component_to_brandInstall a component and remap tokens to your brand
  • build_auth_flowCompose signup, login and OTP into a full auth flow
  • audit_duku_implementationAudit installed components for token and a11y compliance

Authentication

Anonymous connections can search the full catalog, read every component's metadata and fetch source for free-tier components. A Pro or Team license unlocks Pro component source: send your license key as an Authorization: Bearer header. Treat the key like a password — keep it out of screenshots, logs and committed config files (use an environment variable reference instead).