Skip to main content
Glama

Context Pods

by conorluddy
mock-helpers.tsโ€ข761 B
/** * Mock helpers for testing */ export class MockHelpers { static createMockMCPServer(): void { // TODO: Implement mock MCP server } static createMockRequest( method: string, params?: Record<string, unknown>, ): Record<string, unknown> { return { jsonrpc: '2.0', method, params: params || ({} as Record<string, unknown>), id: Math.floor(Math.random() * 1000), }; } static createMockResponse( id: number, result?: unknown, error?: unknown, ): Record<string, unknown> { return { jsonrpc: '2.0', ...(result !== undefined ? { result } : ({} as Record<string, unknown>)), ...(error !== undefined ? { error } : ({} as Record<string, unknown>)), id, }; } }

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/conorluddy/ContextPods'

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