Skip to main content
Glama

Advanced PocketBase MCP Server

worker-best-practices.d.ts1.23 kB
/** * Cloudflare Worker Entry Point - Best Practices Implementation * * This worker demonstrates the recommended patterns for deploying * MCP servers on Cloudflare Workers with Durable Objects. */ import PocketBaseMCPAgentBestPractices from './agent-best-practices.js'; interface Env { POCKETBASE_MCP_DO: DurableObjectNamespace; POCKETBASE_URL?: string; POCKETBASE_ADMIN_EMAIL?: string; POCKETBASE_ADMIN_PASSWORD?: string; STRIPE_SECRET_KEY?: string; SENDGRID_API_KEY?: string; EMAIL_SERVICE?: string; SMTP_HOST?: string; } /** * Best Practices Durable Object using Cloudflare Agents SDK * * This follows the exact patterns from the official Cloudflare MCP servers: * - Extends Agent class for automatic state management * - Built-in hibernation support * - Proper SSE endpoint handling * - OAuth integration capabilities */ export declare class PocketBaseMCPBestPractices extends PocketBaseMCPAgentBestPractices { } /** * Worker fetch handler using Agent.serveSSE * * This follows the recommended pattern from Cloudflare MCP documentation */ declare const _default: { fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response>; }; export default _default;

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/DynamicEndpoints/advanced-pocketbase-mcp-server'

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