get_issue_types
Retrieve all available issue types from Yandex Tracker to streamline creating or updating tasks effectively.
Instructions
Get all issue types available in Yandex Tracker that can be used when creating or updating issues
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp_tracker/mcp/tools.py:181-190 (handler)The handler function decorated with @mcp.tool for the 'get_issue_types' tool. It retrieves issue types by calling the fields protocol method.description="Get all issue types available in Yandex Tracker that can be used when creating or updating issues" ) async def get_issue_types( ctx: Context[Any, AppContext], ) -> list[IssueType]: issue_types = await ctx.request_context.lifespan_context.fields.get_issue_types( auth=get_yandex_auth(ctx), ) return issue_types
- mcp_tracker/mcp/server.py:166-166 (registration)Registers all tools, including 'get_issue_types', to the FastMCP server instance by calling register_tools.register_tools(settings, mcp)
- Core implementation in TrackerClient that performs the HTTP GET request to Yandex Tracker's /v3/issuetypes endpoint to fetch issue types.async def get_issue_types( self, *, auth: YandexAuth | None = None ) -> list[IssueType]: async with self._session.get( "v3/issuetypes", headers=await self._build_headers(auth) ) as response: response.raise_for_status() return IssueTypeList.model_validate_json(await response.read()).root
- Caching wrapper around the get_issue_types method if tool caching is enabled.async def get_issue_types( self, *, auth: YandexAuth | None = None ) -> list[IssueType]: return await self._original.get_issue_types(auth=auth)
- Protocol defining the interface for global data methods including get_issue_types, providing type definitions for inputs and outputs.class GlobalDataProtocol(Protocol): async def get_global_fields( self, *, auth: YandexAuth | None = None ) -> list[GlobalField]: ... async def get_statuses(self, *, auth: YandexAuth | None = None) -> list[Status]: ... async def get_issue_types( self, *, auth: YandexAuth | None = None ) -> list[IssueType]: ... async def get_priorities( self, *, auth: YandexAuth | None = None ) -> list[Priority]: ...