Skip to main content
Glama

MCP Linear App

by zalab-inc
index.ts1.38 kB
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import { registerTool, enhanceMcpServer } from "./libs/tool-utils.js"; import { LinearCreateIssueTool, LinearSearchIssuesTool, LinearGetProfileTool, LinearCreateCommentTool, LinearUpdateCommentTool, LinearGetIssueTool, LinearGetTeamIdTool, LinearUpdateIssueTool, LinearGetCommentTool } from "./tools/linear/tools.js"; /** * Initialize and start the MCP server */ async function main() { try { // Create server instance const server = new McpServer({ name: "mcp-linear-app", version: "0.0.1", }); // Enable object-based tool registration enhanceMcpServer(); // Register all tools registerTool(server, [ LinearSearchIssuesTool, LinearGetProfileTool, LinearCreateIssueTool, LinearCreateCommentTool, LinearUpdateCommentTool, LinearGetIssueTool, LinearGetTeamIdTool, LinearUpdateIssueTool, LinearGetCommentTool, ]); // Connect to stdio transport const transport = new StdioServerTransport(); await server.connect(transport); // console.log("MCP Server running on stdio"); } catch (error) { console.error("Fatal error:", error); process.exit(1); } } // Run the server main();

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/zalab-inc/mcp-linear-app'

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