Skip to main content
Glama

MCP Test Server

by zgh2hh
basic-server.ts517 B
import { TestMCPServer } from '../src/server'; async function main() { const server = new TestMCPServer({ port: 9002, host: 'localhost', debug: true }); try { await server.start(); console.log('Server is running...'); // Handle shutdown gracefully process.on('SIGINT', async () => { console.log('Shutting down...'); await server.stop(); process.exit(0); }); } catch (error) { console.error('Server failed:', error); process.exit(1); } } main();

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/zgh2hh/mcp-test'

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