/
pickling
/
mcp-sourcecontrol-python
Обзор
Документация
Войти
/
pickling
/
mcp-sourcecontrol-python
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/mcp_sourcecontrol/tools/ping.py
22 строки
658 B
pickling-21
Python-порт mcp-sourcecontrol: 20 инструментов, stdio и Streamable HTTP
29 июл 2026, 02:18
29 июл 2026, 02:18
bc8bde4
Код
Авторство
О чём код?
"""MCP-инструмент git_ping — диагностика без вызова API и авторизации.""" from .. import APP_VERSION from .annotations import READ_ONLY from .define import ToolDefinition from .formatting import to_json async def _handler() -> str: return to_json({"status": "OK", "server": "mcp-sourcecontrol", "version": APP_VERSION}) TOOL = ToolDefinition( name="git_ping", group="read", description=( "Health check. Returns OK with server version. " "Use this to verify the MCP server is running without needing a real repository." ), annotations=READ_ONLY, handler=_handler, )