Apidog Tests Mcp

io.github.acabala由 GitHub 帳號 acabala 發布v0.0.5更新於 Oct 24, 2026

MCP server for managing Apidog test cases, scenarios, suites, and test data

已驗證STDIO僅桌面效率與工作流開發者工具

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓 AI 助理讀寫 Apidog 中的測試案例、測試情境、測試套件、測試資料與資料夾。

可以做什麼
列出環境、API 端點、分類、標籤、執行器與端點覆蓋率統計(唯讀)。建立、讀取、批次建立、更新與刪除 API 端點的測試案例。建立、檢視、更新與刪除多步驟測試情境及其步驟。建立、檢視、更新與刪除測試套件及其項目。管理以 CSV 為基礎的測試資料記錄,並建立或刪除情境與套件資料夾。
適用情境
適合在 Apidog 中維護 API 測試,並希望助理代為草擬、批次建立、整理或清理測試案例、情境、套件與資料驅動測試資料,而不必切換到 Apidog 介面的情況。
執行需求
透過 stdio 在本機執行,通常使用 npx 或全域 npm 安裝,因此需要 Node.js。需要環境變數 APIDOG_ACCESS_TOKEN、APIDOG_PROJECT_ID 與 APIDOG_BRANCH_ID;APIDOG_BASE_URL 為選用,預設指向 Apidog 雲端 API。需要能連線至 Apidog 的網路。
安裝前請注意
此伺服器具有寫入權限:工具可在所設定的 Apidog 專案與分支中建立、更新與刪除測試案例、情境、套件、測試資料與資料夾。它需要 Apidog 存取權杖(APIDOG_ACCESS_TOKEN);請使用專用的自動化權杖並限定在最小專案範圍,定期輪換,並妥善保管用戶端設定檔。它並非 Apidog 官方整合。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Apidog Tests Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

apidog-tests-mcp

MCP (Model Context Protocol) server for managing Apidog test cases, scenarios, suites, and test data. Gives AI assistants full read/write access to Apidog's test management features.

This project is not an official Apidog integration.

Features

  • Test Cases -- Create, read, update, delete, and bulk-create test cases for API endpoints
  • Test Scenarios -- Build multi-step test flows chaining multiple API calls
  • Test Suites -- Organize tests into runnable suites for CI/CD
  • Test Data -- Manage data-driven test iterations with CSV-formatted data
  • Folders -- Organize scenarios and suites into nested folder structures
  • Read-only tools -- List environments, endpoints, categories, tags, runners, and coverage statistics

Documentation

  • docs/PRACTICAL-USAGE.md -- proven patterns for creating stable test cases/scenarios/suites
  • SECURITY.md -- vulnerability reporting and secure usage guidelines
  • CONTRIBUTING.md -- contribution workflow
  • CHANGELOG.md -- release notes

Installation

bash
npm install -g @acabala/apidog-tests-mcp

Or use directly with npx:

bash
npx @acabala/apidog-tests-mcp

Configuration

The server requires these environment variables:

VariableRequiredDescription
APIDOG_ACCESS_TOKENYesYour Apidog access token
APIDOG_PROJECT_IDYesThe Apidog project ID
APIDOG_BRANCH_IDYesThe branch ID to work with
APIDOG_BASE_URLNoOverride the API base URL (default: https://api.apidog.com/api/v1)

MCP Client Configuration

Add to your MCP client config (e.g. Claude Desktop claude_desktop_config.json):

json
{	"mcpServers": {		"apidog-tests": {			"command": "npx",			"args": ["@acabala/apidog-tests-mcp"],			"env": {				"APIDOG_ACCESS_TOKEN": "your-token",				"APIDOG_PROJECT_ID": "your-project-id",				"APIDOG_BRANCH_ID": "your-branch-id"			}		}	}}

Recommended Token Practices

  • Use a dedicated token for automation.
  • Scope access to the minimum required Apidog project(s).
  • Rotate tokens regularly.
  • Keep MCP client config files local/private.

Available Tools

Read-only

ToolDescription
list_environmentsList all environments with base URLs
list_api_endpointsList API endpoint tree (filterable by module and name)
list_test_case_categoriesList test case categories
list_test_case_tagsList available tags
list_runnersList self-hosted test runners
get_endpoint_statisticsGet test coverage statistics

Test Cases

ToolDescription
list_test_casesList all test cases (filterable by endpoint)
get_test_caseGet full test case details
create_test_caseCreate a test case for an endpoint
create_test_cases_bulkCreate multiple test cases at once
update_test_caseUpdate a test case (GET-then-merge)
delete_test_caseDelete a test case

Test Scenarios

ToolDescription
list_test_scenariosList scenarios with folder structure
get_test_scenario_stepsGet steps for a scenario
create_test_scenarioCreate a multi-step test scenario
update_test_scenario_stepsSet/replace scenario steps
delete_test_scenarioDelete a scenario

Test Suites

ToolDescription
list_test_suitesList suites with folder structure
get_test_suiteGet full suite details
create_test_suiteCreate a test suite
update_test_suite_itemsSet suite items (static/dynamic groups)
delete_test_suiteDelete a suite

Test Data

ToolDescription
list_test_dataList test data records for a test case
get_test_dataGet test data with CSV rows and columns
create_test_dataCreate test data for a test case
update_test_dataUpdate test data (GET-then-merge)
delete_test_dataDelete a test data record

Folders

ToolDescription
create_scenario_folderCreate a scenario folder
delete_scenario_folderDelete a scenario folder
create_suite_folderCreate a suite folder

Development

bash
# Install dependenciesnpm install
# Run in development modenpm run start:dev
# Type checknpm run typecheck
# Formatnpm run format
# Run testsnpm test
# Run tests with coveragenpm run test:coverage
# Build for productionnpm run build

Security

  • Use a dedicated automation token with minimal required permissions.
  • Never commit APIDOG_ACCESS_TOKEN or environment-specific IDs.
  • Keep local MCP client config files private.
  • See SECURITY.md for reporting and response policy.

Release and Versioning

This repository uses Changesets and a GitHub Actions release workflow:

  • Add a changeset for user-visible changes: npm run changeset
  • Release automation creates/updates a version PR on main
  • Merged release PR publishes to npm with provenance

Open Source Guidelines

  • Contribution guide: CONTRIBUTING.md
  • Code of conduct: CODE_OF_CONDUCT.md
  • Changelog: CHANGELOG.md

Practical Tips

  • Always include path and parameters.path when creating route-parameterized test cases.
  • For update operations, prefer this server's merge-style tools over raw full-replace payloads.
  • Use customScript post-processors for assertions to avoid runner issues with declarative assertions.
  • See docs/PRACTICAL-USAGE.md for complete examples.

Project Structure

src/  index.ts          Entry point, registers tools and starts MCP server  client.ts         ApidogClient HTTP wrapper with auth headers  types.ts          Shared TypeScript interfaces and MCP result helpers  errors.ts         Custom error classes (ApidogApiError, ApidogConfigError)  schemas.ts        Shared Zod schemas for request parameters  tools/    read.ts         Read-only tools (environments, endpoints, categories, etc.)    test-cases.ts   Test case CRUD tools    test-scenarios.ts  Test scenario CRUD tools    test-suites.ts  Test suite CRUD tools    test-data.ts    Test data CRUD tools    folders.ts      Folder management tools

License

MIT License

來源:README.md,提交 f35de66

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.0.5最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分