Skip to main content
Glama
bun913

TestRail MCP Server

by bun913

TestRail MCP-Server

Dieser Model Context Protocol (MCP)-Server bietet Tools für die Interaktion mit TestRail direkt aus Claude AI und anderen MCP-unterstützten Clients wie Cursor heraus. Er ermöglicht es Ihnen, Testfälle, Projekte, Suiten, Läufe und mehr zu verwalten, ohne Ihr Gespräch mit der KI zu verlassen.

Verfügbare Tools

Der TestRail MCP-Server bietet die folgenden Tools:

Kategorie

Tools

Projekte

getProjects, getProject

Suiten

getSuites, getSuite, addSuite, updateSuite

Fälle

getCase, getCases, addCase, updateCase, deleteCase, getCaseTypes, getCaseFields, copyToSection, moveToSection, getCaseHistory, updateCases, addBdd, getBdd

Abschnitte

getSection, getSections, addSection, moveSection, updateSection, deleteSection

Läufe

getRuns, getRun, addRun, updateRun

Tests

getTests, getTest

Ergebnisse

getResults, getResultsForCase, getResultsForRun, addResultForCase, addResultsForCases

Pläne

getPlans

Meilensteine

getMilestones

Geteilte Schritte

getSharedSteps

Related MCP server: TestRail MCP Server

Verwendung

Sie können diesen MCP-Server verbinden, indem Sie die folgende Einstellung vornehmen. Diese Methode verwendet npx, um automatisch die neueste Version des Pakets herunterzuladen und auszuführen, wodurch eine lokale Installation nicht erforderlich ist.

// Example configuration using npx
{
  "mcpServers": {
    "testrail": {
      "command": "npx",
      "args": ["@bun913/mcp-testrail@latest"],
      "env": {
        "TESTRAIL_URL": "https://your-instance.testrail.io", // Replace with your TestRail URL
        "TESTRAIL_USERNAME": "your-email@example.com", // Replace with your TestRail username
        "TESTRAIL_API_KEY": "YOUR_API_KEY" // Replace with your TestRail API key
      }
    }
  }
}

Fehlerbehebung

  • spawn node ENOENT-Fehler: Stellen Sie sicher, dass Node.js korrekt installiert ist und sich in Ihrem PATH befindet.

  • Authentifizierungsprobleme: Überprüfen Sie Ihre TestRail-API-Anmeldedaten.

  • Ihr Gespräch ist zu lang: Verwenden Sie die Parameter limit und offset für Testfälle und Abschnitte, um Ergebnisse zu paginieren.

  • HTTP 400-Fehler beim Erstellen/Aktualisieren von Testfällen: TestRail-Projekte haben unterschiedliche Vorlagen, benutzerdefinierte Felder und Pflichtfelder. Dieser MCP-Server übergibt Ihre Parameter direkt an die TestRail-API – er validiert oder transformiert sie nicht. Wenn Sie auf 400-Fehler stoßen, definieren Sie die Regeln Ihres Projekts in CLAUDE.md oder AGENTS.md, damit das LLM die korrekten Parameter sendet. Zum Beispiel:

    # TestRail Rules for This Project
    - Project ID: 1
    - Always use template 2 (Separated Steps) when creating test cases
      - Use `customStepsSeparated` (array of step objects)
      - Do NOT send `customSteps` or `customExpected` with template 2
    - Required custom fields: custom_automation_type (default: 0)
    - Call `getCaseFields` at the start of a session to check available fields

Mitwirken

Beiträge sind willkommen! Bitte zögern Sie nicht, einen Pull Request einzureichen.

Danksagungen

Install Server
A
license - permissive license
A
quality
F
maintenance

Maintenance

Maintainers
1dResponse time
2wRelease cycle
20Releases (12mo)
Commit activity
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Enables AI assistants to interact with TestRail test management systems through comprehensive API integration. Supports retrieving and updating test cases, projects, suites, runs, and results, plus adding attachments and managing test data through natural language commands.
    18
    43
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Enables AI assistants to interact directly with TestRail instances for managing test projects, suites, cases, runs, results, plans, milestones, and attachments through the TestRail API with secure authentication.
    77
    93
    1
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Enables AI assistants to interact with TestRail test management system, supporting full CRUD operations on projects, suites, sections, test cases, runs, results, plans, and milestones.
    35
    1,334
    MIT

View all related MCP servers

Related MCP Connectors

  • Official MCP server for Qase — manage test cases, runs, suites, defects via AI tools.

  • MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.

  • Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bun913/mcp-testrail'

If you have feedback or need assistance with the MCP directory API, please join our Discord server