UNPKG

@mnemoverse/mcp-memory-server

Version:

Hosted AI agent memory over MCP that learns from outcomes — feedback re-ranks recall — with shared rooms for multi-agent work; one key or OAuth across Claude Code, Cursor, VS Code & ChatGPT, no infra to run

39 lines (38 loc) • 2.07 kB
/** * MCP prompts: three named entry points to the memory tools, and * setup_memory, which hands the user rules for their own agent (2026-09-29). * * Clients that support the prompts capability show them as commands (Claude * Code as `/mcp__mnemoverse__<name>`, Claude.ai connectors in the slash menu). * Each returns one user message that points the model at the right tool. They * add no capability beyond the tools; a client without prompt support ignores * them. * * Moved here from the hosted connector (mnemoverse-mcp-remote, * src/prompts/index.ts) in step 3c of the ADR-025 plan, with the same names, * arguments and wording, so the connector can register these instead of its * copy. One difference is deliberate: `domain` in save_insight is printed as * an exact JSON literal (src/names.ts), like every domain this package names, * because the model has to send it back to memory_write byte for byte. For a * plain domain the message is identical to the connector's. The other * arguments are trimmed, as the connector trims them, because a blank topic is * not a request. */ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; /** * The rules setup_memory hands out. They carry what the server text no longer * says (src/teaching.ts, product frame): when to read, when to write, when to * rate. They are written for the user to place in their own agent's * instructions, where a host loads them as the user's own rules at the start * of every session. Exported so the docs and tests read one copy. */ export declare const MEMORY_RULES: string; /** Where the rules go, per host. `host` is matched after trimming and lowercasing. */ export declare const RULES_PLACES: Record<string, string>; /** * Register the memory prompts on `server`. They call nothing: recall, * save_insight and what_do_you_know render a message that asks the model to * use memory_read or memory_write; setup_memory renders the rules above with * where they go. */ export declare function registerMemoryPrompts(server: McpServer): void;