Skip to main content
Glama
wkoutre

Linear MCP Server

by wkoutre

linear_getTeams

Retrieve a list of teams from Linear's project management system to support team operations and project setup.

Instructions

Get a list of teams from Linear

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that implements the core logic for the linear_getTeams tool by calling linearService.getTeams().
    export function handleGetTeams(linearService: LinearService) {
      return async (args: unknown) => {
        try {
          return await linearService.getTeams();
        } catch (error) {
          logError("Error getting teams", error);
          throw error;
        }
      };
    } 
  • Tool schema definition including input (empty) and output schema for teams list with id, name, key, description, and states.
    export const getTeamsToolDefinition: MCPToolDefinition = {
      name: "linear_getTeams",
      description: "Get a list of teams from Linear",
      input_schema: {
        type: "object",
        properties: {},
      },
      output_schema: {
        type: "array",
        items: {
          type: "object",
          properties: {
            id: { type: "string" },
            name: { type: "string" },
            key: { type: "string" },
            description: { type: "string" },
            states: {
              type: "array",
              items: {
                type: "object",
                properties: {
                  id: { type: "string" },
                  name: { type: "string" }
                }
              }
            }
          }
        }
      }
    }; 
  • Registration of the linear_getTeams handler within the registerToolHandlers function.
    // Team tools
    linear_getTeams: handleGetTeams(linearService),
    linear_getWorkflowStates: handleGetWorkflowStates(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