ai-testcase-designer-mcp
🤖 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
└── .gitignoresrc/excel.ts: すべてのExcel(.xlsx)ファイル作成とテスト計画のエクスポートを処理(モジュール化)。
src/logger.ts: Winstonを使用してMCPサーバー全体にモジュール式のロギング機能を提供。
src/prompts/: LLM駆動のテスト生成用のプロンプトテンプレートを含む。
assets/: デモGIF、Excelサンプルプレビュー、チャットプロンプトの例。
🎥 デモ
MCPがテストケースを生成してExcelにエクスポートする様子:

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

開発
依存関係をインストール:
npm installサーバーをビルド:
npm run build自動リビルドでの開発用:
npm run watch⚙️ インストール
AI Testcase Designer MCPサーバーをローカルにセットアップする手順:
リポジトリをクローン
git clone cd ai-testcase-designer-mcp依存関係をインストール
npm installサーバーをビルド
npm run buildMCPクライアントでサーバーを設定
a. Claude DesktopまたはMCP互換クライアント
以下のサーバー設定を追加:
MacOSの場合:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindowsの場合:
%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拡張機能)
クイックスタート:
Clineサイドバーを開く(VS Codeのアクティビティバーから)。
「MCP Servers」セクションに移動し、「Add New MCP Server」をクリック。
サーバー詳細を入力:
{ "mcpServers": { "ai-testcase-designer-mcp": { "disabled": false, "timeout": 60, "command": "node", "args": [ "c:/Auto_WS/ai-testcase-designer-mcp/build/index.js" ], "transportType": "stdio" } } }接続をテストして保存。
視覚的なステップバイステップガイドは以下を参照:


Clineの詳細なガイダンスは公式ドキュメントを参照:
cline.bot/getting-started/installing-cline#vs-code-marketplace%3A-step-by-step-setup
c. Hermes Agent
~/.hermes/config.yamlのmcp_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を使用するには:
無料のGroq APIキーをここから取得:https://console.groq.com/keys
生成されたExcelテスト計画とサーバーログが保存される作業ディレクトリ(WORK_DIR)。
config.jsonファイルを次のように更新:
{
"MODEL_API_KEY": "gsk_7Ma3Fabcd <your-api-key-here>",
"WORK_DIR": "C:/Auto_WS/ai-testcase-designer-mcp"
}使用方法
🖥️ Claude Desktop(またはMCP互換クライアント)を開く。
📂 サンプルチャットメッセージをダウンロード: sample_chat_message.txt の内容をコピー。
✉️ 内容をチャットに貼り付けてメッセージを送信:AIがExcel形式で詳細なテストケースを生成します。
💾 生成された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 inspectorInspectorはブラウザでデバッグツールにアクセスするためのURLを提供します。
ライセンス
このプロジェクトはMITライセンスの下でライセンスされています。
詳細はLICENSEファイルを参照してください。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseAqualityFmaintenanceMCP 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 di10112MIT
- AlicenseAqualityCmaintenanceGenerates comprehensive API test plans (positive, negative, and boundary/edge cases) from endpoint metadata using LLMs, and exports them as Excel files.115MIT
- AlicenseBqualityCmaintenanceEnables 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.11816MIT
- FlicenseAqualityDmaintenanceGenerates structured, comprehensive test cases from user stories, API specs, or raw text, with automatic Excel export and Playwright automation code generation.61
Related MCP Connectors
Generate AGENTS.md, AP2 compliance docs, checkout rules, debug playbook & MCP configs from any repo.
Search, document and execute authenticated API calls across 700+ apps via one MCP server
Compiles structured specs into SCORM 1.2/2004 e-learning packages. 30 tools, quality gate, no LLM.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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