export type Logger = { info?: (message: string, meta?: Record) => void; warn?: (message: string, meta?: Record) => void; debug?: (message: string, meta?: Record) => void; }; export interface PluginRequest { method?: string; url?: string; headers: Record; body?: unknown; on?: (event: string, listener: (...args: unknown[]) => void) => void; once?: (event: string, listener: (...args: unknown[]) => void) => void; } export interface PluginResponse { writeHead(status: number, headers?: Record): void; end(body?: string | Buffer): void; write?(chunk: string | Buffer): boolean | void; writableEnded?: boolean; } export type ToolResult = { content: Array<{ type: "text"; text: string; }>; isError?: boolean; }; export type RegisteredTool = { name: string; description: string; parameters: Record; execute: (callId: string, params?: unknown) => Promise; }; type PromptRole = "system" | "user" | "assistant"; type PromptMessage = { role: PromptRole; content: string; }; export type RegisteredPrompt = { name: string; description?: string; arguments?: Array<{ name: string; description?: string; required?: boolean; }>; messages: PromptMessage[]; }; type OrgxMcpScopeKey = "engineering" | "product" | "design" | "marketing" | "sales" | "operations" | "orchestration"; export declare const ORGX_BASE_TOOLS: readonly ["orgx_status", "orgx_sync", "orgx_get_morning_brief", "orgx_query_org_memory", "orgx_recommend_next_action", "list_agent_configs", "get_agent_config", "orgx_emit_activity", "orgx_report_progress", "update_stream_progress", "orgx_register_artifact", "orgx_request_decision", "orgx_spawn_check", "orgx_quality_score", "orgx_proof_status", "orgx_record_outcome", "orgx_get_outcome_attribution", "orgx_verify_completion"]; export declare const ORGX_MCP_ALLOWED_TOOLS_BY_SCOPE: Record; export declare function createMcpHttpHandler(input: { tools: Map; prompts?: Map; logger?: Logger; serverName: string; serverVersion: string; }): (req: PluginRequest, res: PluginResponse) => Promise; export {};