Skip to main content

Connect TestCollab MCP Server to AI Coding Assistants

Connect AI assistants to TestCollab using MCP

Updated over 3 weeks ago

Why use TestCollab MCP Server?

The MCP server lets your AI coding assistant interact directly with TestCollab:

  • Create test cases using natural language

  • Query existing test cases

  • Update test cases when code changes


Supported AI Assistants

  • Claude Code / Claude Desktop - Anthropic

  • Cursor - AI-first code editor

  • Windsurf - Codeium AI IDE

  • Codex CLI - OpenAI


Step 1: Get Your API Token

  1. Log in to TestCollab

  2. Click profile avatar in the top-right

  3. Select My Profile Settings

  4. Go to API Token tab

  5. Click Generate new API token

  6. Copy and store securely


Step 2: Find Your Project ID

The Project ID is the number in your URL: testcollab.io/project/16/manage


Step 3: Configure Your AI Assistant

Claude Code / Claude Desktop

Add to your config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "testcollab": {
      "url": "https://mcp.testcollab.io/mcp",
      "headers": {
        "X-TC-API-Token": "your-api-token",
        "X-TC-API-URL": "https://api.testcollab.io",
        "X-TC-Default-Project": "16"
      }
    }
  }
}

Cursor

Open Cursor Settings → MCP Servers → Add new server:

{
  "testcollab": {
    "url": "https://mcp.testcollab.io/mcp",
    "headers": {
      "X-TC-API-Token": "your-api-token",
      "X-TC-API-URL": "https://api.testcollab.io",
      "X-TC-Default-Project": "16"
    }
  }
}

Codex CLI

Add to your config.toml:

[mcp_servers.testcollab]
url = "https://mcp.testcollab.io/mcp"
http_headers = { "X-TC-Default-Project" = "16", "X-TC-API-Token" = "your-api-token", "X-TC-API-URL" = "https://api.testcollab.io" }

Windsurf

Add to your MCP configuration in Windsurf settings:

{
  "testcollab": {
    "url": "https://mcp.testcollab.io/mcp",
    "headers": {
      "X-TC-API-Token": "your-api-token",
      "X-TC-API-URL": "https://api.testcollab.io",
      "X-TC-Default-Project": "16"
    }
  }
}

Self-Host Option

Clone from GitHub, run npm install, npm run build, then node dist/http-server.js (runs on port 3100)


Configuration Reference

Header

Required

Description

X-TC-API-Token

Yes

Your TestCollab API token

X-TC-API-URL

Yes

X-TC-Default-Project

Yes

Your Project ID


Available Tools

Tool

Description

list_test_cases

Query test cases with filtering, sorting, pagination

create_test_case

Create new test cases with title, steps, priority

update_test_case

Update existing test cases


Example Prompts

  • "Create a test case for user login with valid credentials"

  • "Show me all high priority test cases"

  • "Update test case 1502 with new expected results"


Troubleshooting

Connection refused: Verify MCP server URL

401 Unauthorized: Check API token

Project not found: Verify Project ID


Resources

Did this answer your question?