Skip to content
← All install options

Install Better Design MCP in CodeBuddy Code

Setup

  1. 1

    Install CodeBuddy Code

    Skip this if you have it. Otherwise run npm install -g @tencent-ai/codebuddy-code.
  2. 2

    Open the config file

    Use ~/.codebuddy/.mcp.json for every project. .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 codebuddy mcp add --scope user --transport http --header "Authorization: Bearer <YOUR_API_KEY>" better-design https://better-design.com/api/mcp with your key in place of <YOUR_API_KEY>.
  4. 4

    Check the connection

    Run codebuddy mcp get better-design.

Need more detail? Read the official CodeBuddy Code MCP documentation.

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

Add the rule

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