Skip to main content
Glama
agents-mcp.js575 B
// Mock the agents/mcp module to avoid Cloudflare Workers runtime dependencies in Jest export class McpAgent { constructor(ctx, env) { this.ctx = ctx; this.env = env; this.server = { tool: jest.fn(), registerTool: jest.fn(), registerResource: jest.fn(), registerPrompt: jest.fn(), }; } async init() {} static serve = jest.fn().mockReturnValue({ fetch: jest.fn(), }); static serveSSE = jest.fn().mockReturnValue({ fetch: jest.fn(), }); static mount = jest.fn().mockReturnValue({ fetch: jest.fn(), }); }

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/duyet/duyet-mcp-server'

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