/
pickling
/
mcp-sourcecontrol-python
Обзор
Документация
Войти
/
pickling
/
mcp-sourcecontrol-python
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/mcp_sourcecontrol/tools/list_pull_request_commits.py
27 строк
850 B
pickling-21
Python-порт mcp-sourcecontrol: 20 инструментов, stdio и Streamable HTTP
29 июл 2026, 02:18
29 июл 2026, 02:18
bc8bde4
Код
Авторство
О чём код?
"""MCP-инструмент git_list_pull_request_commits.""" from ..runtime import current_client from .annotations import READ_ONLY from .define import ToolDefinition from .formatting import to_json from .schemas import ParamLimit, ParamPage, ParamProjectKey, ParamPullRequestId, ParamRepositorySlug async def _handler( project: ParamProjectKey, repository: ParamRepositorySlug, pullRequestIndex: ParamPullRequestId, page: ParamPage = 1, limit: ParamLimit = 30, ) -> str: result = await current_client().list_pull_request_commits(project, repository, pullRequestIndex, page, limit) return to_json(result) TOOL = ToolDefinition( name="git_list_pull_request_commits", group="read", description="List commits included in a pull request with pagination.", annotations=READ_ONLY, handler=_handler, )