getProjects
Retrieve all projects from Backlog to view available workspaces and manage project data through the MCP server interface.
Instructions
Backlogのプロジェクト一覧を取得します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:110-123 (handler)MCP CallToolRequest handler case for 'getProjects': calls backlogClient.getProjects() and returns the JSON stringified result as text content.case 'getProjects': { return { content: [ { type: 'text', text: JSON.stringify( await this.backlogClient.getProjects(), null, 2 ), }, ], }; }
- src/index.ts:85-88 (registration)Registration of the 'getProjects' tool in the ListTools response, including name, description, and input schema.name: 'getProjects', description: 'Backlogのプロジェクト一覧を取得します', inputSchema: getProjectsSchema, },
- src/backlog/schemas.ts:103-107 (schema)Input schema for getProjects tool: empty object since no parameters are required.export const getProjectsSchema = { type: 'object', properties: {}, additionalProperties: false } as const;
- src/backlog/client.ts:117-127 (helper)BacklogClient.getProjects() method: fetches projects from Backlog API /projects endpoint.async getProjects(): Promise<Project[]> { try { const response = await this.client.get('/projects'); return response.data; } catch (error) { if (axios.isAxiosError(error)) { throw new Error(`Backlog API error: ${error.response?.data.message ?? error.message}`); } throw error; } }