Skip to content
← All install options

Install Better Design MCP in pi

Setup

  1. 1

    Install pi

    Skip this if you have it. Otherwise run npm install -g --ignore-scripts @earendil-works/pi-coding-agent.
  2. 2

    Open the config file

    Use ~/.pi/agent/mcp.json for every project. .pi/mcp.json covers one project, but it holds your key, so keep it out of git.
  3. 3

    Paste the block

    Merge the Config block below under mcpServers and save. Or run pi mcp add better-design --url https://better-design.com/api/mcp --header "Authorization=Bearer <YOUR_API_KEY>" with your key in place of <YOUR_API_KEY>.
  4. 4

    Check the connection

    Run pi mcp list. It exits with an error when a server is not connected.

Need more detail? Read the official pi MCP documentation.

Config
json
{
  "mcpServers": {
    "better-design": {
      "url": "https://better-design.com/api/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_API_KEY>",
        "X-Better-Design-Client": "pi"
      }
    }
  }
}

Add the rule

Optional: paste this into your agent's instructions so it uses Better Design on every edit.