MCP.so
登录

mcp-api-tester Tools & Interfaces

@TinyMurky

关于 mcp-api-tester Tools & Interfaces

mcp server for llm to test api

基本信息

分类

开发工具

许可证

MIT

运行时

go

传输方式

stdio

发布者

TinyMurky

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is mcp-api-tester Tools & Interfaces?

mcp-api-tester Tools & Interfaces is a set of MCP tools that enable a Large Language Model (LLM) to perform automated API testing. It provides interfaces for reading API documentation, selecting endpoints, and sending real HTTP requests via the net/http package, targeting developers who want to quickly identify potential issues in their APIs.

How to use mcp-api-tester Tools & Interfaces?

The tools are invoked via MCP tool calls. For example, to use the ReadOpenAPIDocument tool, send a JSON-RPC request with method: "tools/call" and parameters including the tool name and arguments such as an absolute path to the OpenAPI file. Similarly, ListAllAPIFromDocument can be called without arguments. The README recommends first integrating the three minimal viable tools (listAllAPIFromDocument, getSingleAPIDetail, callNetHTTP), then connecting the LLM to use them, and optionally adding validation, logging, environment management, and fuzz testing tools.

Key features of mcp-api-tester Tools & Interfaces

  • Minimal viable tools: list endpoints, get API details, send HTTP requests
  • Supports reading OpenAPI documents via ReadOpenAPIDocument tool
  • Advanced tools for schema validation and JSON parsing
  • Test result logging and historical test querying
  • Authentication credential management and test data reset
  • Fuzz/edge case input generation for stress testing

Use cases of mcp-api-tester Tools & Interfaces

  • Listing all available APIs from documentation and browsing endpoints
  • Retrieving detailed parameter and response schemas for a specific API
  • Executing real HTTP test calls against development/sandbox environments
  • Validating response bodies against documented schemas for correctness
  • Conducting security and stress tests with automatically generated extreme inputs

FAQ from mcp-api-tester Tools & Interfaces

What are the minimal viable tools to get started?

The three essential tools are listAllAPIFromDocument (lists available APIs), getSingleAPIDetail (retrieves detailed documentation for an endpoint), and callNetHTTP (sends real HTTP requests and returns responses).

How does the server handle authentication?

An optional advanced tool getAuthToken(username, password) -> token is provided for APIs that require a token or cookie. The LLM can call this first to obtain credentials before making test calls.

Can these tools completely replace traditional testing?

No. The README explicitly notes that while the LLM can quickly produce boundary and abnormal test cases, traditional unit tests remain essential for thorough coverage and cannot be replaced.

What security considerations are mentioned?

All API tests should be run in a safe environment (development or sandbox) to avoid compromising sensitive data. The README also warns that the LLM may produce invalid or incorrect parameters, so additional validation or error handling may be needed.

How are test results tracked?

Advanced tools include storeTestResult to log execution details and outcomes, and getTestHistory to query past results for a given endpoint, helping to identify regressions over time.

评论

开发工具 分类下的更多 MCP 服务器