mcp-server-test

i-icc/mcp-server-test

3.1

If you are the rightful owner of mcp-server-test and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The MCP server test involves setting up a Model Context Protocol server using Python, specifically with pyenv for environment management.

The Model Context Protocol (MCP) server test is a process of setting up and running an MCP server using Python. The official setup guide suggests using 'uv' for environment setup, but this test uses 'pyenv' to manage Python versions. The server requires Python 3.10 or higher, and in this case, Python 3.11.5 is used. The server configuration involves specifying the command and arguments to run the server script. An error related to the 'python' command not being found (ENOENT) can occur if the path to the Python executable is not correctly specified. This can be resolved by using the full path to the Python executable provided by pyenv.

Features

  • Python Version Management: Uses pyenv to manage and switch between different Python versions.
  • MCP Server Configuration: Allows configuration of MCP servers with specific commands and arguments.
  • Error Handling: Provides detailed error logs for troubleshooting server initialization issues.

Usages

usage with pyenv

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