MCP.so
登录

MCP Client for Testing

@piebro

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

piebro

关于 MCP Client for Testing

A simple MCP (Model Context Protocol) client for testing MCP Server

MCP Client for Testing 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-client-for-testing": {
      "command": "uvx",
      "args": [
        "mcp-client-for-testing",
        "\\"
      ]
    }
  }
}

MCP Client for Testing 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is MCP Client for Testing?

MCP Client for Testing is a minimalistic client for testing tool calls in MCP (Model Context Protocol) servers. It is intended for developers who need to verify tool calls during MCP server development.

How to use MCP Client for Testing?

Install uv, then invoke from the command line using uvx mcp-client-for-testing with a JSON configuration and tool call definition. Alternatively, install the Python package and use the execute_tool function from mcp_client_for_testing.client in your own code. Command line flags allow setting client and server log levels.

Key features of MCP Client for Testing

  • Minimalistic design focused on testing tool calls
  • CLI invocation via uvx with JSON configuration
  • Python API for integration into test suites
  • Configurable client and server log levels
  • Works with any MCP server that can be launched as a subprocess
  • Supports passing environment variables to the server process

Use cases of MCP Client for Testing

  • Testing tool calls in a custom MCP server during development
  • Verifying tool call parameters, execution, and return values
  • Quick smoke tests using an echo MCP server
  • Debugging server configuration and environment settings
  • Automating tool call verification in CI pipelines

常见问题

1

What are the runtime requirements?

The client requires uv to be installed on the system. The server specified in the configuration must also be runnable from the command line.

2

How do I test a tool call?

Provide a JSON configuration with the server name, command, arguments, and environment, plus a `--tool_call` JSON specifying the tool name and its arguments.

3

Can I use it in my own Python code?

Yes. Install the package with `uv pip install mcp-client-for-testing` and import `execute_tool` from `mcp_client_for_testing.client` for async usage.

4

Is there an example server to test with?

Yes, the echo-mcp-server-for-testing server can be used with `uvx` to quickly verify the client works.

5

How do I configure logging?

Use the `--client_log_level` and `--server_log_level` flags with standard logging levels such as WARNING and INFO.

评论

其他 分类下的更多 MCP 服务器