mcp_example
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp_exampleCheck the server health"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp_example
Минимальный канонический пример MCP: один сервер по Streamable HTTP и тонкий клиент, который к нему ходит.
Канонический endpoint
http://127.0.0.1:8000/mcpRelated MCP server: Echo MCP Server
Установка
Нужны uv и Python 3.10+.
cd mcp_example
uv syncЗапуск
Терминал A — сервер:
uv run mcp-example-serverТерминал B — клиент:
uv run mcp-example-clientДолжны появиться список tools и успешные вызовы health, echo и reverse_text.
Опционально:
uv run mcp-example-server --host 127.0.0.1 --port 8000 --path /mcp
uv run mcp-example-client --url http://127.0.0.1:8000/mcpДемо-tools
Tool | Назначение |
| Проверка, что сервер жив |
| Проверка передачи аргументов |
| Пример простой обработки строки |
Как добавить свой tool
В src/mcp_example/server.py:
@mcp.tool()
def my_tool(query: str) -> str:
"""Кратко опишите, что делает tool — это увидит модель."""
# здесь вызов вашего API / БД
return f"result for {query}"Перезапустите сервер. Клиент (и любой MCP-host) увидит новый tool через tools/list.
Зачем так устроено
MCP SDK (
mcp) реализует протокол (handshake, tools/list, tools/call).Streamable HTTP — общий удалённый транспорт: один URL для скриптов, IDE и агентских runtime.
Клиент в этом репо только проверяет, что протокол работает — LLM не нужен.
Ссылки
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP compatibility and transport verification server.
MCP compatibility and transport verification server.
MCP compatibility and transport verification server.
MCP compatibility and transport verification server.
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceA minimal reference implementation of an MCP server that responds with "Hello, World" via Streamable HTTP. Serves as a baseline for integration testing and MCP client development with production-ready features including health checks, metrics, and containerized deployment.327,114 npm-
- 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.1-
- FlicenseNot gradedqualityDmaintenanceA minimal MCP server for homelab environments, providing demo tools like ping and echo over Streamable HTTP for testing client-server integration.-
- FlicenseNot gradedqualityCmaintenanceMCP server providing time retrieval and echo tools, running as an independent network process over Streamable HTTP.-