Echo MCP Server
用于测试的 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: 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 标签:
检出主分支并获取当前版本:
git checkout main git pull origin main git describe --tags创建并推送新的 Git 标签:
git tag v0.2.0 git push origin v0.2.0
推送新标签时,GitHub Actions 工作流程将自动构建包并将其发布到 PyPI。Python 包版本号将直接从 Git 标签获取。
执照
本项目遵循 MIT 许可证。详情请参阅许可证文件。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA stateless Model Context Protocol server that implements a simple echo functionality with resource, tool, and prompt components, enabling LLMs to echo back messages through standardized MCP interactions.1
- AlicenseNot gradedqualityDmaintenanceAn 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
- FlicenseNot gradedqualityDmaintenanceA simple demonstration MCP server that provides an echo tool and resource for learning how to build MCP servers. Serves as a starting point and template for creating custom MCP server implementations.
- FlicenseNot gradedqualityCmaintenanceMCP server providing greeting and echo tools for testing and demonstration.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/piebro/echo-mcp-server-for-testing'
If you have feedback or need assistance with the MCP directory API, please join our Discord server