getProjects
Retrieve a list of projects from Backlog to view available project data and manage project information through the Backlog MCP Server.
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': delegates to backlogClient.getProjects() and formats response as JSON text.case 'getProjects': { return { content: [ { type: 'text', text: JSON.stringify( await this.backlogClient.getProjects(), null, 2 ), }, ], }; }
- src/backlog/client.ts:117-127 (handler)Core handler function in BacklogClient that makes the API call to retrieve projects list from Backlog.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; } }
- src/backlog/schemas.ts:103-107 (schema)Input schema definition for the getProjects tool, which requires no parameters.export const getProjectsSchema = { type: 'object', properties: {}, additionalProperties: false } as const;
- src/index.ts:84-88 (registration)Tool registration in the ListTools response, defining name, description, and input schema.{ name: 'getProjects', description: 'Backlogのプロジェクト一覧を取得します', inputSchema: getProjectsSchema, },