Skip to main content
Glama

Linear Streamable MCP Server

by iceener
index.ts1.38 kB
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { accountTool } from "./account.tool.ts"; import { addCommentsTool, listCommentsTool } from "./comments.tool.ts"; import { listCyclesTool } from "./cycles.tool.ts"; import { createIssuesTool, listIssuesTool, listMyIssuesTool, updateIssuesTool, } from "./issues.tool.ts"; import { createProjectsTool, listProjectsTool, updateProjectsTool, } from "./projects.tool.ts"; import { listTeamsTool, listUsersTool } from "./teams-users.tool.ts"; export function registerTools(server: McpServer): void { const tools = [ // Registered as workspace_metadata for clarity to LLMs { ...accountTool, name: "workspace_metadata", title: "Workspace Metadata & IDs", }, listIssuesTool, listMyIssuesTool, createIssuesTool, updateIssuesTool, listProjectsTool, createProjectsTool, updateProjectsTool, listTeamsTool, listUsersTool, listCyclesTool, listCommentsTool, addCommentsTool, ]; for (const t of tools) { server.registerTool( t.name, { description: t.description, // Pass Zod shapes directly; the SDK handles conversion for discovery inputSchema: t.inputSchema, annotations: { title: t.title }, }, (args: unknown) => t.handler(args as unknown) ); } }

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/iceener/linear-streamable-mcp-server'

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