linear_getUsers
Retrieve a list of users in your Linear organization, enabling efficient user management within the Linear project management system.
Instructions
Get a list of users in the Linear organization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The main handler function for the 'linear_getUsers' tool. It wraps the call to linearService.getAllUsers() with error handling.export function handleGetUsers(linearService: LinearService) { return async (args: unknown) => { try { return await linearService.getAllUsers(); } catch (error) { logError('Error getting users', error); throw error; } }; }
- Schema definition for the 'linear_getUsers' tool, including input (empty) and output (array of users) schemas.export const getUsersToolDefinition: MCPToolDefinition = { name: 'linear_getUsers', description: 'Get a list of users in the Linear organization', input_schema: { type: 'object', properties: {}, }, output_schema: { type: 'array', items: { type: 'object', properties: { id: { type: 'string' }, name: { type: 'string' }, email: { type: 'string' }, displayName: { type: 'string' }, active: { type: 'boolean' }, }, }, }, };
- src/tools/handlers/index.ts:66-71 (registration)Registration of the handler for 'linear_getUsers' in the registerToolHandlers function that maps tool names to their handler functions.// User tools linear_getViewer: handleGetViewer(linearService), linear_getOrganization: handleGetOrganization(linearService), linear_getUsers: handleGetUsers(linearService), linear_getLabels: handleGetLabels(linearService),
- src/tools/definitions/index.ts:51-53 (registration)Inclusion of the 'linear_getUsers' schema in the allToolDefinitions array.getOrganizationToolDefinition, getUsersToolDefinition, getLabelsToolDefinition,