import type { DurableObjectNamespace } from '@cloudflare/workers-types'; export interface Env { MCP_OBJECT: DurableObjectNamespace; } export declare class MCP { #private; McpObject: any; constructor(config: { name: string; version: string; description?: string; }); /** * Add a tool to the MCP server * @param name Name of the tool * @param schema Schema for the tool's input parameters using zod or a raw object * @param handler Function that processes the input and returns a result * @returns The MCP instance for chaining */ tool(name: string, schema: any, handler: (args: any) => any): this; /** * Add a resource to the MCP server * @param uri URI of the resource * @param handler Function that returns the resource content * @param options Additional options for the resource * @returns The MCP instance for chaining */ resource(uri: string, handler: () => Promise, options?: { name?: string; description?: string; mimeType?: string; }): this; get fetch(): (request: Request, Env?: unknown, executionCtx?: import("hono").ExecutionContext) => Response | Promise; } export { MCP as default };