Skip to main content
Glama

MCP Test Server

by zgh2hh
server.test.ts599 B
import { TestMCPServer } from '../src/server'; describe('TestMCPServer', () => { let server: TestMCPServer; beforeEach(() => { server = new TestMCPServer({ port: 9003, host: 'localhost', debug: false }); }); afterEach(async () => { try { await server.stop(); } catch (error) { console.error('Cleanup failed:', error); } }); test('should start and stop server', async () => { expect.assertions(2); await expect(server.start()).resolves.toBeUndefined(); await expect(server.stop()).resolves.toBeUndefined(); }); });

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