ST

sker65/testrail-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

20 stars 35 forks 品質 66 トレンド 10MIT

sker65/testrail-mcp は [https://github.com/sker65/testrail-mcp.] からインポートされた MCP サーバー候補です

概要

sker65/testrail-mcp は [https://github.com/sker65/testrail-mcp.] からインポートされた MCP サーバー候補です

概要(AI 翻訳)

TestRail のモデルコンテキストプロトコル (MCP) サーバーで、標準化されたプロトコルで TestRail のコア・エンティティティティとのやり取りができます。

##特徴

  • TestRail API の認証
  • TestRail の実体へのアクセス:
  • プロジェクト
  • ケース
  • 実行
  • 結果
  • データセット
  • モデルコンテキストプロトコルの完全なサポート
  • MCP クライアント(デスクトップ、カーソル、ウィンドサーフィンなど)と互換性があります。

Octomind MCP と一緒にアクションで参照

インストール

##Smitheryでインストールする

スミサリーを介して自動的にクロードデスクトップ用のtestrail-mcpをインストールするには:

手動インストール

  1. このリポジトリをクローンする:

  2. 仮想環境の作成と活性化:

  3. 依存関係を取付けて下さい:

設定

TestRail MCP サーバーでは、特定の環境変数を TestRail インスタンスで認証する必要があります。 サーバを実行する前に設定する必要があります。

  1. プロジェクトのルートディレクトリにある[.envファイルを作成します。

重要事項:

  • [[TESTRAIL_URL] は TestRail インスタンス (https://example.testrail.io など) の URL にフル URL を指定する必要があります。
  • [[TESTRAIL_USERNAME]は、ログインに使用するTestRailメールアドレスです
  • [TESTRAIL_API_KEY は TestRail API キー (パスワードではなく)

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

TestRail MCP Server

A Model Context Protocol (MCP) server for TestRail that allows interaction with TestRail’s core entities through a standardized protocol.

Features

  • Authentication with TestRail API
  • Access to TestRail entities:
    • Projects
    • Cases
    • Runs
    • Results
    • Datasets
  • Full support for the Model Context Protocol
  • Compatible with any MCP client (Claude Desktop, Cursor, Windsurf, etc.)

See it in action together with Octomind MCP

Installation

Installing via Smithery

To install testrail-mcp for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @sker65/testrail-mcp --client claude

Manual Installation

  1. Clone this repository:

    git clone https://github.com/yourusername/testrail-mcp.git
    cd testrail-mcp
    
  2. Create and activate a virtual environment:

    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    
  3. Install dependencies:

    pip install -e .
    

Configuration

The TestRail MCP server requires specific environment variables to authenticate with your TestRail instance. These must be set before running the server.

  1. Create a .env file in the root directory of the project:

    TESTRAIL_URL=https://your-instance.testrail.io
    [email protected]
    TESTRAIL_API_KEY=your-api-key
    

    Important Notes:

    • TESTRAIL_URL should be the full URL to your TestRail instance (e.g., https://example.testrail.io)
    • TESTRAIL_USERNAME is your TestRail email address used for login
    • TESTRAIL_API_KEY is your TestRail API key (not your password)
      • To generate an API key, log in to TestRail, go to “My Settings” > “API Keys” and create a new key
  2. Verify that the configuration is loaded correctly:

    uvx testrail-mcp --config
    

    This will display your TestRail configuration information, including your URL, username, and the first few characters of your API key for verification.

If you’re using this server with a client like Claude Desktop or Cursor, make sure the environment variables are accessible to the process running the server. You may need to set these variables in your system environment or ensure they’re loaded from the .env file.

Usage

Running the Server

The server can be run directly using the installed script:

uvx testrail-mcp

This will start the MCP server in stdio mode, which can be used with MCP clients that support stdio communication.

Using with MCP Clients

Claude Desktop

In Claude Desktop, add a new server with the following configuration:

{
  "mcpServers": {
GitHub で README 全文を見る

インストール

uvx testrail-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "testrail": { "command": "uvx", "args": [ "testrail-mcp" ], "env": { "TESTRAIL_URL": "https://your-instance.testrail.io", "TESTRAIL_USERNAME": "[email protected]", "TESTRAIL_API_KEY": "your-api-key" } } } }