MCP.so
登录

MCP Server Test

@i-icc

基本信息

分类

开发工具

传输方式

stdio

作者

i-icc

关于 MCP Server Test

MCP サーバーのテスト

MCP Server Test 配置

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

{
  "mcpServers": {
    "weather": {
      "command": "python",
      "args": [
        "MY-PATH/mcp-server-test/src/main.py"
      ]
    }
  }
}

MCP Server Test 工具

工具列表暂未提供

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

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

概览

What is mcp-server-test?

mcp-server-test is a sample MCP server built from the official MCP quickstart. It is configured as a weather server and is intended for testing MCP server setup with Python and pyenv.

How to use mcp-server-test?

Install Python 3.10 or higher using pyenv, then configure your MCP client with the full path to the Python interpreter and the server script (src/main.py) in the command and args fields. Example configuration is provided in the README.

Key features of mcp-server-test

  • Requires Python 3.10 or higher.
  • Uses pyenv for Python version management.
  • Based on the official MCP Python quickstart.
  • Includes troubleshooting for common path errors.
  • Simple JSON configuration for MCP clients.

Use cases of mcp-server-test

  • Testing MCP server setup locally.
  • Learning how to configure an MCP server with custom Python paths.
  • Debugging Python environment issues in MCP integrations.

常见问题

1

What Python version is required for mcp-server-test?

Python 3.10 or higher is required. The README uses Python 3.11.5 as an example.

2

Why does the error "spawn python ENOENT" occur?

The error means the `python` command is not found in the system PATH. The solution is to use the full path to the Python interpreter (e.g., from `pyenv which python`) in the MCP configuration.

3

How do I configure mcp-server-test in my MCP client?

Add an entry under `mcpServers` in your client settings, setting `command` to the full path of the Python interpreter and `args` to the full path of the server script (`src/main.py`).

4

What does mcp-server-test do?

Based on the official MCP quickstart it references, mcp-server-test serves weather alerts. The configuration key `"weather"` confirms it is a weather server.

5

Where does the server code come from?

The code is taken directly from the official MCP quickstart at https://modelcontextprotocol.io/quickstart/server.

评论

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