Skip to main content
Glama
stdio.ts422 B
import { Server } from "@modelcontextprotocol/sdk/server/index.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; export function createStdioTransport(server: Server) { const transport = new StdioServerTransport(); return { start: async () => { await server.connect(transport); }, close: async () => { await transport.close(); }, transport, }; }

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/vakharwalad23/google-mcp'

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