get_statuses
Retrieve all available statuses in Yandex Tracker for managing issues, enabling effective issue tracking and workflow management within the platform.
Instructions
Get all statuses available in Yandex Tracker that can be used in issues
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp_tracker/mcp/tools.py:170-178 (handler)The handler function for the MCP tool 'get_statuses'. It is decorated with @mcp.tool decorator and delegates the request to the fields client instance available in the request context.description="Get all statuses available in Yandex Tracker that can be used in issues" ) async def get_statuses( ctx: Context[Any, AppContext], ) -> list[Status]: statuses = await ctx.request_context.lifespan_context.fields.get_statuses( auth=get_yandex_auth(ctx), ) return statuses
- mcp_tracker/mcp/server.py:164-166 (registration)The registration of the MCP server and tools. The register_tools function is called here, which defines and registers the 'get_statuses' tool using the @mcp.tool decorator.mcp = create_mcp_server() register_resources(settings, mcp) register_tools(settings, mcp)
- The core implementation of get_statuses in the TrackerClient, which makes an HTTP GET request to the Yandex Tracker API endpoint '/v3/statuses' and parses the response using StatusList pydantic model.async def get_statuses(self, *, auth: YandexAuth | None = None) -> list[Status]: async with self._session.get( "v3/statuses", headers=await self._build_headers(auth) ) as response: response.raise_for_status() return StatusList.model_validate_json(await response.read()).root
- Protocol definition for GlobalDataProtocol specifying the get_statuses method signature.async def get_statuses(self, *, auth: YandexAuth | None = None) -> list[Status]: ...