Skip to main content
Glama
index.ts709 B
import { HttpTransportFactory } from "./http.js"; import { StdioTransportFactory } from "./stdio.js"; import { type HttpTransportConfig, type ITransportFactory, TransportType } from "./types.js"; export function createTransportFactory(type: TransportType): ITransportFactory { switch (type) { case TransportType.STDIO: return new StdioTransportFactory(); case TransportType.HTTP: case TransportType.SSE: return new HttpTransportFactory(); default: throw new Error(`Unsupported transport type: ${type}`); } } export * from "./types.js"; export { StdioTransport, StdioTransportFactory } from "./stdio.js"; export { HttpTransport, HttpTransportFactory } from "./http.js";

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/samuraikun/aws-s3-mcp'

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