Skip to content
← All install options

Install Better Design MCP in Deep Agents CLI

Setup

  1. 1

    Install Deep Agents CLI

    Skip this if you have it. Otherwise run curl -LsSf https://raw.githubusercontent.com/langchain-ai/deepagents/refs/heads/main/libs/code/scripts/install.sh | bash.
  2. 2

    Open the config file

    Use ~/.deepagents/.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.
  4. 4

    Check the connection

    Start a session. It prints the number of MCP tools it loaded, and /mcp shows each server.

Need more detail? Read the official Deep Agents CLI 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": "deepagents"
      }
    }
  }
}

Add the rule

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