Skip to main content
Glama
tiovikram

Linear MCP Server

by tiovikram

list_teams

Retrieve all teams in your Linear workspace to manage team-based workflows and access team-specific data.

Instructions

List all teams in the workspace

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The switch case handler for the 'list_teams' tool. It fetches all teams from the Linear workspace using linearClient.teams(), formats the nodes into an array of objects with id, name, key, and description, and returns them as a JSON text content block.
    case "list_teams": {
      const query = await linearClient.teams();
      const teams = await Promise.all(
        (query as any).nodes.map(async (team: any) => ({
          id: team.id,
          name: team.name,
          key: team.key,
          description: team.description,
        }))
      );
    
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(teams, null, 2),
          },
        ],
      };
    }
  • Schema definition for the list_teams tool in the ListTools response, including name, description, and an empty input schema since no parameters are required.
    {
      name: "list_teams",
      description: "List all teams in the workspace",
      inputSchema: {
        type: "object",
        properties: {},
      },
    },
  • src/index.ts:45-56 (registration)
    Registration of tool capabilities in the MCP server constructor, declaring support for the list_teams tool.
      capabilities: {
        tools: {
          create_issue: true,
          list_issues: true,
          update_issue: true,
          list_teams: true,
          list_projects: true,
          search_issues: true,
          get_issue: true,
        },
      },
    }

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/tiovikram/linear-mcp'

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