Connect Pie to Your AI Workspace

Connect Pie to Your AI Workspace

Access Pie’s testing data directly from Claude, ChatGPT, or any MCP-compatible platform. Analyze test results, import test cases from CSV, find duplicates, manage issues, and generate reports - all through natural conversation.


Fix Bugs Automatically with AI

The most powerful use case for Pie’s MCP integration: let your AI coding agent fix bugs that Pie finds - automatically.

When Pie detects an issue, it captures the full context - reproduction steps, screenshots, expected vs. observed behavior, and DOM snapshots. Connect Pie to an AI coding agent like Claude Code, and the agent can pull the issue, understand exactly what broke, surgically fix the code, and open a PR - all from a single prompt.

Fix a Single Bug

Get issue ISS-142 from Pie and fix it in my codebase

Your AI agent will:

  1. Call Pie’s MCP to fetch the issue - repro steps, expected behavior, observed behavior, screenshots
  2. Locate the relevant code in your project
  3. Apply a targeted fix
  4. Commit and create a PR

Batch-Fix All Issues

Get all approved issues from Pie. For each one, fix it and create a separate PR.

Pie provides enough context per issue - steps to reproduce, assertions, severity, visual evidence - that an AI agent can fix them independently without asking follow-up questions.

Why This Works

Unlike generic bug reports that say “the button is broken,” Pie issues include:

  • Exact reproduction steps the AI agent executed to find the bug
  • Expected vs. observed behavior with specific assertions
  • Screenshots and DOM snapshots showing the actual state
  • Severity and classification so your agent can prioritize

This means AI coding agents don’t need to guess what went wrong - they have the same context a senior QA engineer would provide in a detailed bug report.

Works with any MCP-compatible tool. The examples below use Claude Code, but this works with Cursor, VS Code Copilot, Windsurf, or any agent that supports MCP.


Setup Guide

Step 1: Generate Your API Key

  1. Log in to app.pie.inc
  2. Go to Settings → API Keys
  3. Click + Create API Key
  4. Name your key (e.g., “Claude Integration”) and click Create
  5. Copy the key immediately - you won’t see it again
  6. Click Done to acknowledge you’ve copied the key

API Keys page with key generation dialog

Step 2: Configure Your Platform

Choose your platform and follow the configuration steps:

Claude Desktop

  1. Open Claude Desktop → Settings → Developer → Edit Config
  2. Add Pie to your configuration file:
{
  "mcpServers": {
    "pie": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.pie.inc",
        "--header",
        "X-API-Key: YOUR_API_KEY_HERE"
      ]
    }
  }
}

Note: Windows users should replace “npx” with “npx.cmd”

For multiple Pie apps:

{
  "mcpServers": {
    "pie-staging": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.pie.inc",
        "--header",
        "X-API-Key: STAGING_API_KEY"
      ]
    },
    "pie-production": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.pie.inc",
        "--header",
        "X-API-Key: PRODUCTION_API_KEY"
      ]
    }
  }
}
  1. Save the file
  2. Quit Claude completely (not just close the window) and restart

Claude config file with Pie configuration

Cursor

  1. Open Cursor settings and navigate to the MCP configuration file
  2. Add Pie to your configuration:
{
  "mcpServers": {
    "pie": {
      "url": "https://mcp.pie.inc",
      "headers": {
        "X-API-Key": "YOUR_API_KEY_HERE"
      }
    }
  }
}
  1. Save the file and restart Cursor

VS Code

  1. Open VS Code settings and locate the MCP servers configuration
  2. Add Pie to your configuration:
{
  "servers": {
    "pie": {
      "url": "https://mcp.pie.inc?api_key=YOUR_API_KEY_HERE"
    }
  }
}

Note: The API key is passed as a URL parameter in VS Code configuration.

  1. Save the file and reload VS Code

Claude Code (CLI)

Run this command in your terminal:

claude mcp add --transport http pie https://mcp.pie.inc \
  --header "X-API-Key: YOUR_API_KEY_HERE"

Replace YOUR_API_KEY_HERE with the API key you copied from Pie.

Step 3: Test Your Connection

  1. Open your AI platform and type:

    Fetch Pie
  2. You should see an overview of your app including test runs, coverage, and active issues.

Successful connection response with app overview

What You Can Do

Key Workflows

AI-Powered Bug Fixing: Fetch issues with full context (repro steps, screenshots, expected/observed behavior) → AI agent fixes code → creates PRs. Single issues or batch operations.

Test Case Management: Create, run, update, archive test cases. Import from CSV, find duplicates, expand coverage.

Issue Management: Review, approve, reject, resolve issues. Cross-run analysis and duplicate detection.

Reporting: Weekly summaries, coverage analysis, trend analysis across runs.

For all 37 tools with natural language examples, see the Complete Function Reference.

Need Help?