Skip to main content
Glama

BYOB MCP Server

by ndisidore
containers.tsβ€’819 B
// Container class definitions for BYOB MCP Server import { Container } from "@cloudflare/containers"; /** * ToolRunner - Universal container for all tools * Handles multiple operations: echo, uppercase, jq */ export class ToolRunner extends Container { defaultPort = 8080; sleepAfter = "10m"; // Sleep after 10 minutes of inactivity override onStart() { console.log("ToolRunner container started"); } override onStop() { console.log("ToolRunner container stopped"); } override onError(error: unknown) { console.error("ToolRunner container error:", error); } } /** * Helper to get container instance * Since we only have one container type now, this always returns TOOL_RUNNER */ export function getContainerBinding(env: any): DurableObjectNamespace { return env.TOOL_RUNNER; }

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/ndisidore/cf-byob-mcp'

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