Skip to main content
Glama
stdio.ts684 B
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; import { InitTransportServerFunction } from '../shared/index.js'; import { logger } from '../shared/logger.js'; export const initStdioServer: InitTransportServerFunction = async ( getNewServer, options, ) => { const { appId, appSecret } = options; if (!appId || !appSecret) { logger.error('Missing App ID or App Secret'); process.exit(1); } const transport = new StdioServerTransport(); const mcpServer = await getNewServer(options); logger.info( `[StdioServerTransport] Connecting to WeChat MCP Server, appId: ${appId}`, ); await mcpServer.connect(transport); };

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/xwang152-jack/wechat-official-account-mcp'

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