Skip to main content
Glama
Echo MCP Server

Echo MCP Server

by piebro

用于测试的 echo-mcp 服务器

一个简单的 echo MCP(模型上下文协议)服务器,带有一个简单的echo_tool ,用于测试 MCP 客户端。它也可以作为新建 MCP 服务器的模板。

用法

安装uv并使用uvx将服务器添加到 MCP 配置:

{
    "name": "echo-mcp-server-for-testing",
    "command": "uvx",
    "args": [
        "echo-mcp-server-for-testing"
    ],
    "env": {
        "SECRET_KEY": "123456789"
    }
}

或者克隆 repo 并使用带有目录的uv :

{
    "name": "echo-mcp-server-for-testing",
    "command": "uv",
    "args": [
        "--directory",
        "path/to/root/dir/",
        "run",
        "main.py"
    ],
    "env": {
        "SECRET_KEY": "123456789"
    }
}

Related MCP server: @profullstack/mcp-server

发展

测试

克隆 repo 并使用mcp-client-for-testing测试服务器的工具。

uvx mcp-client-for-testing \
    --config '
    [
        {
            "name": "echo-mcp-server-for-testing",
            "command": "uv",
            "args": [
                "--directory", 
                "path/to/root/dir/", 
                "run", 
                "main.py"
            ],
            "env": {
                "SECRET_KEY": "123456789"
            }
        }
    ]
    ' \
    --tool_call '{"name": "echo_tool", "arguments": {"message": "Hello, world!"}}'

格式化和 Linting

代码已使用 ruff 格式化并进行了 lint:

uv run ruff format
uv run ruff check --fix

用紫外线建造

使用 uv 构建包:

uv build

发布新版本

要将软件包的新版本发布到 PyPI,请创建并推送新的 Git 标签:

  1. 检出主分支并获取当前版本:

    git checkout main
    git pull origin main
    git describe --tags
  2. 创建并推送新的 Git 标签:

    git tag v0.2.0
    git push origin v0.2.0

推送新标签时,GitHub Actions 工作流程将自动构建包并将其发布到 PyPI。Python 包版本号将直接从 Git 标签获取。

执照

本项目遵循 MIT 许可证。详情请参阅许可证文件。

Available Tools

1 tool
echo_toolC

Echo a message as a tool

Inputs: message (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.7/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion or overlap between tools. The single tool 'echo_tool' has a clear and distinct purpose that cannot be mistaken for any other tool in this set.

    Naming Consistency5/5

    The naming is perfectly consistent as there is only one tool following the verb_noun pattern 'echo_tool'. No other naming conventions exist to create inconsistency.

    Tool Count2/5

    A single tool is too few for most practical server purposes, making the set feel thin and limited. While it might be appropriate for a minimal demo or test server, it lacks the depth expected for typical MCP server functionality.

    Completeness3/5

    For a simple echo functionality, the single tool covers the basic operation. However, there are no related operations (e.g., variations like echo_reverse or echo_log) that might be expected in a more complete echo service, leaving minor gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An implementation of the Model Context Protocol (MCP) server that enables multiple clients to connect simultaneously and handles basic context management and messaging with an extendable architecture.
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      MCP server providing greeting and echo tools for testing and demonstration.
      -