jira_get_projects
Retrieve all projects from a Jira instance to view available project lists, manage project access, or analyze project structures.
Instructions
Get all Jira projects
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:372-378 (registration)Tool registration in ListTools handler, including name, description, and empty input schema.name: "jira_get_projects", description: "Get all Jira projects", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:1059-1064 (handler)The MCP tool handler that executes jiraClient.getProjects() and returns the result as JSON text.case "jira_get_projects": { const projects = await jiraClient.getProjects(); return { content: [{ type: "text", text: JSON.stringify(projects, null, 2) }], }; }
- src/jira-client.ts:119-121 (helper)JiraClient helper method that performs the actual API call to fetch all projects.async getProjects(): Promise<JiraProject[]> { return this.request<JiraProject[]>("/project"); }