
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
概览
一个本地 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 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Apidog Tests Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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/suitesSECURITY.md-- vulnerability reporting and secure usage guidelinesCONTRIBUTING.md-- contribution workflowCHANGELOG.md-- release notes
Installation
Or use directly with npx:
Configuration
The server requires these environment variables:
MCP Client Configuration
Add to your MCP client config (e.g. Claude Desktop claude_desktop_config.json):
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
Test Cases
Test Scenarios
Test Suites
Test Data
Folders
Development
Security
- Use a dedicated automation token with minimal required permissions.
- Never commit
APIDOG_ACCESS_TOKENor environment-specific IDs. - Keep local MCP client config files private.
- See
SECURITY.mdfor 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
pathandparameters.pathwhen creating route-parameterized test cases. - For update operations, prefer this server's merge-style tools over raw full-replace payloads.
- Use
customScriptpost-processors for assertions to avoid runner issues with declarative assertions. - See
docs/PRACTICAL-USAGE.mdfor complete examples.
Project Structure
License
来源:README.md,提交 f35de66
工具
0版本历史
1- v0.0.5最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分