Skip to main content
Glama
create-server.ts493 B
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { LspContext } from '../types.js'; import { registerAllTools } from '../tools/index.js'; /** * Creates and configures an MCP server with all LSP tools registered */ export function createServer(createContext: () => LspContext): McpServer { const server = new McpServer({ name: 'symbols', version: '1.0.0', }); // Register all MCP tools registerAllTools(server, createContext); return server; }

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/p1va/symbols-mcp'

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