linear_getProjects
Retrieve a list of projects from Linear to manage and track development workflows, enabling users to view project details and monitor progress.
Instructions
Get a list of projects from Linear
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function for the linear_getProjects tool. It wraps the call to linearService.getProjects() with error handling.export function handleGetProjects(linearService: LinearService) { return async (args: unknown) => { try { return await linearService.getProjects(); } catch (error) { logError('Error getting projects', error); throw error; } }; }
- The schema definition (input/output) for the linear_getProjects tool.export const getProjectsToolDefinition: MCPToolDefinition = { name: 'linear_getProjects', description: 'Get a list of projects from Linear', input_schema: { type: 'object', properties: {}, }, output_schema: { type: 'array', items: { type: 'object', properties: { id: { type: 'string' }, name: { type: 'string' }, description: { type: 'string' }, content: { type: 'string' }, state: { type: 'string' }, teams: { type: 'array', items: { type: 'object', properties: { id: { type: 'string' }, name: { type: 'string' }, }, }, }, url: { type: 'string' }, }, }, }, };
- src/tools/handlers/index.ts:77-77 (registration)Registration of the linear_getProjects tool handler in the tool handlers map.linear_getProjects: handleGetProjects(linearService),