get_users
Retrieve a list of users from your Linear workspace using this tool on the Linear MCP Server, enabling efficient user management and collaboration.
Instructions
Get a list of users in the Linear workspace
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:310-329 (handler)The handleGetUsers method that executes the get_users tool: fetches all users from the Linear workspace using linearClient.users(), formats them into a list with id, name, email, displayName, and active fields, and returns as JSON text content.private async handleGetUsers() { const users = await linearClient.users(); const formattedUsers = users.nodes.map(user => ({ id: user.id, name: user.name, email: user.email, displayName: user.displayName, active: user.active, })); return { content: [ { type: 'text', text: JSON.stringify(formattedUsers, null, 2), }, ], }; }
- src/index.ts:100-107 (registration)Registration of the 'get_users' tool in the ListToolsRequestSchema response: specifies name, description, and inputSchema (empty object, no parameters).{ name: 'get_users', description: 'Get a list of users in the Linear workspace', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:120-121 (registration)Dispatch logic in the CallToolRequestSchema handler: switch case for 'get_users' that invokes the handleGetUsers method.case 'get_users': return await this.handleGetUsers();
- src/index.ts:103-106 (schema)Input schema for get_users tool: an empty object indicating no input parameters are required.inputSchema: { type: 'object', properties: {}, },