@psraghuveer/memento-server
v0.3.2
Published
MCP server adapter for Memento. Translates MCP tool calls into command-registry invocations.
Downloads
1,162
Maintainers
Readme
@psraghuveer/memento-server
The MCP server adapter. Translates @modelcontextprotocol/sdk tool calls into invocations of the @psraghuveer/memento-core command registry.
This package owns the stdio transport and the MCP-tool surface. Anything beyond MCP-protocol concerns belongs in @psraghuveer/memento-core — the structural parity between the MCP adapter and the @psraghuveer/memento adapter is the entire point of ADR 0003.
buildMementoServer projects the @psraghuveer/memento-core command registry as MCP tools; serveStdio wires it to stdio. Used by memento serve.
MCP resource and prompt
In addition to tools, the server exposes:
- Resource
memento://context— returns ranked context as JSON (equivalent to callingmemory.context). - Prompt
session-context— accepts an optionalfocusargument. Withoutfocus, it callsmemory.contextfor query-less ranked retrieval. Withfocus, it callsmemory.searchusing the value as the query.
