Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
post-cortex-mcp
Model Context Protocol (MCP) tool definitions for post-cortex.
Pure library — no rmcp, axum, tonic server, or transport runtime dependency. Each public function takes the typed parameters of a single MCP tool, dispatches into the post-cortex domain layer, and returns an MCPToolResult. Embed these tools in your own MCP server runtime (rmcp, custom servers, anything else) without pulling the post-cortex daemon.
The functions share one process-wide ConversationMemorySystem: inject yours with inject_memory_system, or let get_memory_system open the default one under ~/.post-cortex/data. Context writes go through the canonical MemoryServiceImpl, so they get the same redaction and validation as every other transport.
Install
[]
= "0.4"
Modules
The nine tools served by post-cortex-daemon (session, update_conversation_context, semantic_search, get_structured_summary, query_conversation_context, manage_workspace, assemble_context, manage_entity, admin) are built on these functions:
| Module | Tool surface |
|---|---|
session |
session listing / load / search / metadata update, checkpoints, mark-important |
update_context |
single (update_conversation_context) + bulk (bulk_update_conversation_context) context writes |
query |
structured queries against session context |
search |
semantic search (session / global), related content, vectorization |
analysis |
structured summary, decisions, insights, entity importance + network views |
workspace |
workspace CRUD + session membership |
schemas |
JSON Schema for the MCP tool surface |
Example
Every write carries typed entities and relations (at least one each; relations must point at listed entities):
use ;
use ;
use HashMap;
use Arc;
async
Features
| Feature | Default | What it enables |
|---|---|---|
embeddings |
yes | Semantic search and vectorization tools (forwards to post-cortex-memory/embeddings) |
otel |
no | Placeholder; currently enables nothing |
License
MIT — see LICENSE.