linear_getUsers
Retrieve a list of users from your Linear organization to manage team members and assign tasks effectively.
Instructions
Get a list of users in the Linear organization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Handler function that executes the linear_getUsers tool by calling linearService.getAllUsers() and handles errors.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, specifying no input and array of user objects as output.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-70 (registration)Registration of the linear_getUsers handler in the tool handlers map, along with other user-related tools.// User tools linear_getViewer: handleGetViewer(linearService), linear_getOrganization: handleGetOrganization(linearService), linear_getUsers: handleGetUsers(linearService), linear_getLabels: handleGetLabels(linearService),