Skip to main content
Glama

actors-mcp-server

Official
by apify
Apache 2.0
2,577
244
  • Apple
import type { Server as HttpServer } from 'node:http'; import type { Express } from 'express'; import log from '@apify/log'; import { createExpressApp } from '../../src/actor/server.js'; import { createMcpStreamableClient } from '../helpers.js'; import { createIntegrationTestsSuite } from './suite.js'; let app: Express; let httpServer: HttpServer; const httpServerPort = 50001; const httpServerHost = `http://localhost:${httpServerPort}`; const mcpUrl = `${httpServerHost}/mcp`; createIntegrationTestsSuite({ suiteName: 'Actors MCP Server Streamable HTTP', transport: 'streamable-http', createClientFn: async (options) => await createMcpStreamableClient(mcpUrl, options), beforeAllFn: async () => { log.setLevel(log.LEVELS.OFF); // Create an express app using the proper server setup const mcpServerOptions = { enableAddingActors: false, enableDefaultActors: false, }; app = createExpressApp(httpServerHost, mcpServerOptions); // Start a test server await new Promise<void>((resolve) => { httpServer = app.listen(httpServerPort, () => resolve()); }); }, afterAllFn: async () => { await new Promise<void>((resolve) => { httpServer.close(() => resolve()); }); }, });

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

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