Skip to main content
Glama
app.ts407 B
import express from "express"; import { MCP } from "./server/mcp"; import { createMCPRouter } from "./routes/mcp"; import { tools } from "./tools/index"; export function createApp(): express.Application { const app = express(); app.use(express.json()); const mcp = new MCP(); tools.forEach((tool) => { mcp.registerTool(tool); }); app.use("/mcp", createMCPRouter(mcp)); return app; }

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/hencydsouza24/mcp_demo'

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