Skip to main content
Glama

f2c-mcp-server

index.ts948 B
import {createLogger} from '@/utils/logger' import type {McpServer} from '@modelcontextprotocol/sdk/server/mcp.js' const logger = createLogger('StreamableHttp') type ServerTypeIns = 'all' | 'session' | 'no_session' export async function startServer(server: McpServer, port = 3000, serverType: ServerTypeIns = 'all') { switch (serverType) { // don't support hot reload case 'all': { const {startHttpServer} = await import('./http-server.js') return startHttpServer(port, server) } // don't support hot reload case 'session': { const {startServer: startWithSessionServer} = await import('./with-session-steamable-http.js') return startWithSessionServer(server, port) } // support hot reload and dev case 'no_session': { const {startServer: startWithoutSessionServer} = await import('./without-session-steamable-http.js') return startWithoutSessionServer(server, port) } } }

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/f2c-ai/f2c-mcp'

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