jira_get_projects
Retrieve a list of all Jira projects to view available workspaces and their details for project management and planning.
Instructions
Get list of Jira projects
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/jira_server.py:374-389 (handler)The handler function that retrieves the list of Jira projects using the Jira client, formats them into a list of dictionaries with key, name, and id, and returns them as JSON text content.async def _get_projects(self) -> List[TextContent]: """Get list of projects""" projects = self.jira_client.projects() project_list = [] for project in projects: project_list.append({ "key": project["key"], "name": project["name"], "id": project["id"] }) return [TextContent( type="text", text=json.dumps(project_list, indent=2) )]
- src/jira_server.py:181-189 (registration)Registration of the 'jira_get_projects' tool in the list_tools() function, including its description and empty input schema.Tool( name="jira_get_projects", description="Get list of Jira projects", inputSchema={ "type": "object", "properties": {} } ) ]
- src/jira_server.py:184-187 (schema)Input schema for the jira_get_projects tool, which requires no parameters.inputSchema={ "type": "object", "properties": {} }
- src/jira_server.py:209-210 (handler)Dispatch logic in the call_tool handler that invokes the specific _get_projects handler for this tool.elif name == "jira_get_projects": return await self._get_projects()