#!/usr/bin/env node /** * RevealUI Memory MCP Server * * Model Context Protocol server that exposes multi-agent shared memory tools. * Gives any MCP-compatible agent (Claude Desktop, Cursor, Forge customers) * access to shared facts, Yjs scratchpads, and reconciled memories. * * Environment: * REVEALUI_API_URL - Admin API base URL (e.g. https://admin.revealui.com) * REVEALUI_API_TOKEN - Device token for authenticated API calls * * Tools: * memory_publish_fact - Publish a discovery to the shared fact log * memory_list_facts - List facts for a coordination session * memory_create_scratchpad - Create a new shared Yjs scratchpad * memory_patch_scratchpad - Apply a structured patch to a scratchpad * memory_read_scratchpad - Read current scratchpad content * memory_share - Share a memory with all agents in a session * memory_list_shared - List shared/reconciled memories for a session * memory_reconcile - Trigger LLM reconciliation of shared facts */ import { z } from 'zod/v4'; export declare function setCredentials(creds: Record): void; export declare const PublishFactArgsSchema: z.ZodObject<{ session_id: z.ZodString; agent_id: z.ZodString; content: z.ZodString; fact_type: z.ZodEnum<{ warning: "warning"; discovery: "discovery"; decision: "decision"; bug: "bug"; question: "question"; answer: "answer"; }>; confidence: z.ZodOptional; tags: z.ZodOptional>; source_ref: z.ZodOptional>; }, z.core.$strict>; export declare const ListFactsArgsSchema: z.ZodObject<{ session_id: z.ZodString; }, z.core.$strict>; export declare const CreateScratchpadArgsSchema: z.ZodObject<{ document_id: z.ZodString; agent_id: z.ZodString; title: z.ZodOptional; }, z.core.$strict>; export declare const PatchScratchpadArgsSchema: z.ZodObject<{ document_id: z.ZodString; agent_id: z.ZodString; patch_type: z.ZodEnum<{ append_section: "append_section"; append_item: "append_item"; replace_section: "replace_section"; set_key: "set_key"; }>; path: z.ZodString; content: z.ZodString; }, z.core.$strict>; export declare const ReadScratchpadArgsSchema: z.ZodObject<{ document_id: z.ZodString; }, z.core.$strict>; export declare const ShareMemoryArgsSchema: z.ZodObject<{ session_scope: z.ZodString; agent_id: z.ZodString; site_id: z.ZodString; content: z.ZodString; type: z.ZodEnum<{ warning: "warning"; skill: "skill"; fact: "fact"; preference: "preference"; decision: "decision"; feedback: "feedback"; example: "example"; correction: "correction"; }>; source: z.ZodRecord; }, z.core.$strict>; export declare const ListSharedArgsSchema: z.ZodObject<{ session_scope: z.ZodString; }, z.core.$strict>; export declare const ReconcileArgsSchema: z.ZodObject<{ session_id: z.ZodString; site_id: z.ZodString; }, z.core.$strict>; //# sourceMappingURL=revealui-memory.d.ts.map