Skip to main content
Glama

linear_getViewer

Retrieve details about the currently authenticated Linear user to verify identity and access permissions for project management tasks.

Instructions

Get information about the currently authenticated user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the linear_getViewer tool. It wraps the call to linearService.getUserInfo() with try-catch error handling and logging.
    export function handleGetViewer(linearService: LinearService) { return async (args: unknown) => { try { return await linearService.getUserInfo(); } catch (error) { logError("Error getting viewer information", error); throw error; } }; }
  • The MCPToolDefinition for linear_getViewer, specifying name, description, empty input schema, and detailed output schema for viewer information.
    export const getViewerToolDefinition: MCPToolDefinition = { name: "linear_getViewer", description: "Get information about the currently authenticated user", input_schema: { type: "object", properties: {}, }, output_schema: { type: "object", properties: { id: { type: "string" }, name: { type: "string" }, email: { type: "string" }, active: { type: "boolean" }, displayName: { type: "string" }, organization: { type: "object", properties: { id: { type: "string" }, name: { type: "string" } } } } } };
  • Registration of the linear_getViewer tool handler within the registerToolHandlers function, mapping it to handleGetViewer(linearService).
    linear_getViewer: handleGetViewer(linearService),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wkoutre/linear-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server