Skip to main content
Glama
TuanLdv

ai-testcase-designer-mcp

by TuanLdv

🤖 AI Testcase Generator MCP

エンドポイントのメタデータから包括的なAPIテスト計画(正常系、異常系、境界値/エッジケース)を直接生成するModel Context Protocol(MCP)サーバーです。LLMを搭載しています。

これはQAエンジニア向けのTypeScriptベースのModel Context Protocol(MCP)サーバーです。以下のModel Context Protocolの主要コンセプトを実演します:

  • APIエンドポイントとペイロードから網羅的なテストケース計画を生成するAI搭載ツール

  • 品質とカバレッジを高めるプロンプト駆動のLLM統合

  • 将来の自動化ツールのための拡張可能な構造

✨ 特徴

  • 🔌 MCP準拠サーバーstdioトランスポート)。

  • 📝 ツール: generate_tests_excel

    • 入力: エンドポイント、HTTPメソッド、ペイロード、追加コンテキスト。

    • 入力オプション:

      • エンドポイントの直接指定: エンドポイント、HTTPメソッド、ペイロード

      • extraContextを使用して、追加のテストメモや制約を提供

    • 出力: 📊 Excelテスト計画。列: 番号、テスト名、前提条件、手順、期待結果

  • 🧠 プロンプト駆動のテスト生成。設定可能なLLM(Groq、OpenAI、Anthropic)に対応。

  • 📜 Winstonによる詳細なロギング。

Related MCP server: ai-testcase-generator-mcp

🏗️ アーキテクチャ

flowchart TD
    A[Claude / MCP Client] -->|Run Tool| B[MCP Server]
    B -->|Prompt| C[LLM API]
    C -->|Test Cases JSON| B
    B -->|Excel Export| D[(Test Plan .xlsx)]
    B -->|Logs| E[Server Log File]

📂 プロジェクト構造

ai-testcase-designer-mcp/
├── build/                         # Compiled JavaScript output
├── assets/                        # Demo gifs, images, and sample files
│    ├── demo.gif
│    ├── excel_preview.png
│    └── sample_chat_message.txt
├── configs/
│    └── config.json               # Server/tool config
├── src/
│    ├── index.ts                  # Main server entry point (MCP interface & routing)
│    ├── excel.ts                  # Excel file creation & writing logic (modular)
│    ├── logger.ts                 # Winston logger configuration & log writing (modular)
│    └── prompts/
│         └── testcase_prompt.txt  # Prompt template for LLM-based test generation
├── package.json
├── tsconfig.json
├── README.md
└── .gitignore
  • src/excel.ts: すべてのExcel(.xlsx)ファイル作成とテスト計画のエクスポートを処理(モジュール化)。

  • src/logger.ts: Winstonを使用してMCPサーバー全体にモジュール式のロギング機能を提供。

  • src/prompts/: LLM駆動のテスト生成用のプロンプトテンプレートを含む。

  • assets/: デモGIF、Excelサンプルプレビュー、チャットプロンプトの例。


🎥 デモ

MCPがテストケースを生成してExcelにエクスポートする様子:

AI Testcase Designer Demo

🔍 Excelプレビュー

生成されたテストケースのクイックプレビュー:

Excel Preview

開発

依存関係をインストール:

npm install

サーバーをビルド:

npm run build

自動リビルドでの開発用:

npm run watch

⚙️ インストール

AI Testcase Designer MCPサーバーをローカルにセットアップする手順:

  1. リポジトリをクローン

    git clone 
    cd ai-testcase-designer-mcp
  2. 依存関係をインストール

    npm install
  3. サーバーをビルド

    npm run build
  4. MCPクライアントでサーバーを設定

    a. Claude DesktopまたはMCP互換クライアント

    • 以下のサーバー設定を追加:

      • MacOSの場合:
        ~/Library/Application Support/Claude/claude_desktop_config.json

      • Windowsの場合:
        %APPDATA%/Claude/claude_desktop_config.json

    {
      "mcpServers": {
        "ai-testcase-designer-mcp": {
          "disabled": false,
          "timeout": 60,
          "command": "node",
          "args": [
            "c:/Auto_WS/ai-testcase-designer-mcp/build/index.js"
          ],
          "transportType": "stdio"
        }
      }
    }

    b. Cline(VS Code拡張機能)

    クイックスタート:

    1. VS Code MarketplaceからClineをインストール

    2. Clineサイドバーを開く(VS Codeのアクティビティバーから)。

    3. 「MCP Servers」セクションに移動し、「Add New MCP Server」をクリック。

    4. サーバー詳細を入力:

      {
        "mcpServers": {
          "ai-testcase-designer-mcp": {
            "disabled": false,
            "timeout": 60,
            "command": "node",
            "args": [
              "c:/Auto_WS/ai-testcase-designer-mcp/build/index.js"
            ],
            "transportType": "stdio"
          }
        }
      }
    5. 接続をテストして保存。

    視覚的なステップバイステップガイドは以下を参照:

    Cline MCP Server Add Steps

    Cline MCP Server Connection Success

    Clineの詳細なガイダンスは公式ドキュメントを参照:
    cline.bot/getting-started/installing-cline#vs-code-marketplace%3A-step-by-step-setup

c. Hermes Agent

  • ~/.hermes/config.yamlmcp_serversの下に以下のサーバー設定を追加:

mcp_servers:
  ai-testcase-designer-mcp:
    command: "node"
    args: ["/absolute/path/to/ai-testcase-designer-mcp/build/index.js"]

🔑 APIキーと作業ディレクトリの設定

AI Testcase Designer MCPを使用するには:

  1. 無料のGroq APIキーをここから取得:https://console.groq.com/keys

  2. 生成されたExcelテスト計画とサーバーログが保存される作業ディレクトリ(WORK_DIR)。

config.jsonファイルを次のように更新:

{
  "MODEL_API_KEY": "gsk_7Ma3Fabcd <your-api-key-here>",
  "WORK_DIR": "C:/Auto_WS/ai-testcase-designer-mcp"
}

使用方法

  1. 🖥️ Claude Desktop(またはMCP互換クライアント)を開く。

  2. 📂 サンプルチャットメッセージをダウンロード: sample_chat_message.txt の内容をコピー。

  3. ✉️ 内容をチャットに貼り付けてメッセージを送信:AIがExcel形式で詳細なテストケースを生成します。

  4. 💾 生成されたExcelファイルとサーバーログはWORK_DIRフォルダに保存されます。

▶️ リクエスト例

{
  "name": "generate_tests_excel",
  "arguments": {
    "endpoint": "https://api.example.com/v1/users",
    "method": "POST",
    "payload": {
      "name": "John Doe",
      "email": "john@example.com"
    },
    "extraContext": "Focus on invalid email and empty payload scenarios."
  }
}

📊 Excel出力例

番号

テスト名

前提条件

手順

期待結果

1

有効なユーザー作成

DBは空

有効なペイロードでPOSTを送信

ユーザーが正常に作成される

2

メールアドレス欠落

DBは空

名前のみでPOSTを送信

400バリデーションエラー

3

無効なメールアドレス

DBは空

無効なメール形式でPOSTを送信

422エラーメッセージ

📂 出力ファイル

ファイルは ./workdir/generated/ に書き込まれます。


ログ出力例

2025-09-13T10:22:11 [info]: [Step1] Incoming request: endpoint=/v1/users, method=POST
2025-09-13T10:22:11 [info]: [Step2] Building LLM prompt...
2025-09-13T10:22:13 [info]: [Step5] Converting LLM JSON to Excel rows (15 test cases)

デバッグ

npm run inspector

InspectorはブラウザでデバッグツールにアクセスするためのURLを提供します。

ライセンス

このプロジェクトはMITライセンスの下でライセンスされています。
詳細はLICENSEファイルを参照してください。

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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
    A
    quality
    F
    maintenance
    MCP server for API test case generation from Swagger/OpenAPI specs. Parses Swagger 2.0 and OpenAPI 3.x, generates test cases across 8 categories (positive, negative, boundary, auth, security, idempotency, pagination, business logic), and exports to Postman, TestRail, Allure, k6, pytest, Gherkin, and CSV. Supports internal corporate APIs with auth headers. Auto-saves export files to your working di
    10
    11
    2
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Enables QA/SDET engineers to test APIs by ingesting Swagger/OpenAPI specs and Postman collections, generating and executing tests in multiple languages and frameworks with real-time progress tracking.
    11
    81
    6
    MIT

View all related MCP servers

Related MCP Connectors

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/TuanLdv/testcase-generator-mcp-starter-qc'

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