ShadowGraph
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SHADOWGRAPH_FILE | No | Disposable container-local MCP store. Do not upload private stores, authentication files or transcripts. | /tmp/shadowgraph/data.json |
| SHADOWGRAPH_MCP_COMPACT | No | Must be 0 with the Workflow Profile; compact=1 conflicts and startup rejects it. | 0 |
| SHADOWGRAPH_MCP_PROFILE | No | workflow selects 20 ordinary memory tools, reusing existing handlers and authorization. Restart/reconnect to change a profile. | workflow |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Local-first decision and scoped temporal memory. Session tools/list defines the callable tools, schemas and effect hints. Naming convention: shadowgraph_record_ creates ledger records (decision, attempt, fact, outcome); verb_noun tools mutate specific state (update_status, ack_review, confidence_evidence); single-verb primitives operate on one distinct artifact (search, retrieve, recall, context, expand, remember, review, reconsider, maintain, validate, supersede). Read layers (5 orthogonal targets): (1) shadowgraph_search matches decisions, attempts, and facts by every literal query term and structured filters; (2) shadowgraph_retrieve adds one-hop relationship graph neighbours around seed matches; (3) shadowgraph_recall ranks scoped userId/agentId/runId memories by fused lexical, vector, graph, and temporal RRF signals; (4) shadowgraph_context reads the read-only session startup briefing without saving signals; (5) shadowgraph_expand dereferences a recordId and revision digest handle into its full current record and rival records (for direct lookup without a digest handle, shadowgraph_search filters records and shadowgraph_reconsider inspects a decision by decisionId). Signal and health pipeline (6 orthogonal stages): (1) shadowgraph_maintain runs the clock-driven TTL sweep aging reviewAfter decisions to stale and expiring expiresAt facts; (2) shadowgraph_review scans open decisions against facts to persist due review signals; (3) shadowgraph_review_signals lists queued open/acknowledged signal records without reevaluating rules; (4) shadowgraph_ack_review acknowledges one signal by id or reviewSignalId without changing the decision; (5) shadowgraph_reconsider audits one decision by decisionId to produce a 3-way alternative viability proof table (grounded, contested, unevaluated); (6) shadowgraph_review_context loads the turn check-in briefing with synchronized signal IDs. Evaluation calls commit a revision even on repeats. Lifecycle and retirement completeness: shadowgraph_record_decision, shadowgraph_record_attempt, shadowgraph_record_fact, and shadowgraph_remember create entities; shadowgraph_confidence_evidence, shadowgraph_record_outcome, shadowgraph_update_status, and shadowgraph_supersede update decisions; shadowgraph_update_status (abandoned/archived) retires decisions non-destructively and shadowgraph_remember (DELETE) invalidates scoped memories; shadowgraph_validate diagnoses record, graph, and journal sequence integrity (while full mode adds shadowgraph_journal, shadowgraph_rebuild, and shadowgraph_repair_plan). Read-capable tools accepting accessId or grantId can save a bounded audit and revision when a key is presented. A grant widens reads, never write authority. IDs do not supply project/origin scope. Returned completeness and provenance describe the result limits. Full-only operator capabilities require an operator-selected Full session and reconnect. A named sibling is callable only when advertised. Profiles change advertisement, not stored memory or product capabilities.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| shadowgraph_record_decisionA | Record one decision: chosen option, assumptions, evidence, and rejected alternatives with reopenWhen rules. Use shadowgraph_record_attempt for something tried, shadowgraph_record_fact for an observation, shadowgraph_remember for a note. Appends a decision and a journal entry; without idempotencyKey each call adds another and commits a revision. |
| shadowgraph_record_attemptA | Record one attempt with its solution and result, returning the stored attempt. Link relatedTo to an existing decision. shadowgraph_record_decision records choices, shadowgraph_record_outcome updates one, shadowgraph_record_fact records facts. Appends an attempt and journal entry and commits a revision; idempotencyKey deduplicates retries (conflicts error); resultClass overrides wording. |
| shadowgraph_reviewA | Evaluate open project decisions against current facts, persist due review signals, and return { items, completeness }. Use shadowgraph_review_signals to inspect the saved signal queue, shadowgraph_review_context for check-in, or shadowgraph_ack_review to close. Skips closed decisions. Saves owned signals deduped by decision/reason/coverage and commits a revision; grants widen reads; no status changes. |
| shadowgraph_searchA | Match records containing every literal query term as direct content matches. Supports Arabic stemming across records. Use shadowgraph_retrieve for graph neighbours, or shadowgraph_recall for ranked memory (shadowgraph_recall ranks by vector). Own-scope read saves nothing; an access key commits a revision and audit. "a b" requires both terms, not an exact phrase; matchMode:"partial" gives 3+ terms fallback; empty query filters. |
| shadowgraph_contextA | Read a read-only session startup working set: activeDecisions, staleAssumptions, failedAttempts, belowConfidenceThreshold, and task digest. shadowgraph_expand dereferences compact:true handles; shadowgraph_review_context persists review signals; shadowgraph_search queries records. No decision or signal writes; asOf scopes relevant items. Own-scope read saves nothing; an access key commits a revision and audit. |
| shadowgraph_review_contextA | Load the turn check-in working set (activeDecisions, openReviews, suggestedQuestions) with synchronized reviewSignalId handles. Use when check-in must persist signals; shadowgraph_context saves no signals; shadowgraph_review also persists signals and returns due items only. Skips closed decisions. Deduplicates owned signals by decision/reason/coverage and commits a revision storing signals; grants widen reads; no status changes. |
| shadowgraph_rememberA | Add or reconcile one scoped memory, or apply an ADD/UPDATE/DELETE/NOOP plan, by identity tuple. Use shadowgraph_record_decision for a choice, shadowgraph_record_fact for an observation, shadowgraph_recall to read memory back. Identical content is a NOOP, new content supersedes and keeps history, DELETE invalidates; every call commits a revision. |
| shadowgraph_recallA | Rank relevant scoped memory (userId, agentId, runId, memoryType) by fused lexical, vector, graph and temporal RRF signals. Write scoped memories first with shadowgraph_remember; use shadowgraph_search for unranked keyword matches. Own-scope read saves nothing; an access key commits a revision and audit. Returns scores and available signals; no provider/vector means no semantic ranking. Omitted memory scope fields select null, not any user/run. |
| shadowgraph_record_factA | Record one observed fact as a project and key, with a claimed provenance class and optional validity window. Use for the fact keys reopenWhen rules name; shadowgraph_remember stores durable memory that is not an observation. Supersedes the previous active fact, keeping it as history. No input can make a fact verified. Each call commits a revision. |
| shadowgraph_record_outcomeA | Record what happened to an existing decision and update its evidence-weighted confidence. Do not use for evidence (shadowgraph_confidence_evidence) or state-only moves (shadowgraph_update_status changes the lifecycle state). Replaces prior outcome and recalculates confidence; does not change lifecycle status unless autoTransition or decisionStatus/lifecycleStatus is supplied (conflicts error). |
| shadowgraph_confidence_evidenceA | Update decision confidence with keyed supporting or contradicting evidence; no outcome is recorded. Use shadowgraph_record_outcome once the decision has played out, shadowgraph_record_fact for an observation that can reopen it. Reusing key cannot double-count, but restamps the decision and commits a revision; a new observation needs a new key. |
| shadowgraph_update_statusA | Move one decision to another lifecycle state, or retire it as abandoned or archived in the append-only ledger. shadowgraph_supersede replaces a decision with a successor; shadowgraph_record_outcome records the final result. Retires decisions without destructive deletion; stale and superseded are system-owned and rejected. Repeats still commit a revision. |
| shadowgraph_expandA | Expand a recordId and revision digest handle from shadowgraph_context into the full current record and rival records. shadowgraph_context supplies the handle; shadowgraph_search or shadowgraph_retrieve. Own-scope read saves nothing; audit. Copy expansion fields into this tool's input at top level: recordId, digest and scope; stale digest yields revision_changed; purged yields purged; missing or out-of-scope yields unavailable. |
| shadowgraph_supersedeA | Mark one decision superseded by a replacement in the same project. shadowgraph_record_decision creates the replacement; shadowgraph_update_status changes state without replacement. Returns previous, replacement and relation. Both IDs must be owned in the same project/origin. History stays searchable; even repeats commit a revision. |
| shadowgraph_maintainA | Age overdue owned decisions past reviewAfter to stale and expire owned facts past expiresAt against now. Use shadowgraph_validate for integrity checks or shadowgraph_review for rules; Maintenance does not repair or restore. Mutates owned records only; repeat runs commit a revision without re-aging; accessId widens reads only. |
| shadowgraph_retrieveA | Retrieve seed records matching every query term plus their ordered graph neighbours. Queries match Arabic stem forms. Use shadowgraph_search for flat keyword hits without graph neighbours, or shadowgraph_recall when ranking memories (shadowgraph_recall ranks by vector). Own-scope read saves nothing; an access key commits a revision and audit. Every term must match a seed; neighbours need not match, and matchMode allows 3+ terms fallback on seeds. |
| shadowgraph_validateA | Diagnose record, graph and journal integrity without applying repairs. shadowgraph_maintain ages records; shadowgraph_review checks decision rules; shadowgraph_repair_plan (full mode only) proposes repairs; shadowgraph_rebuild (full mode only) checks journal replay. Own-scope read saves nothing; an access key commits a revision and audit. For full-mode tools, ask the operator to unset SHADOWGRAPH_MCP_PROFILE and restart with SHADOWGRAPH_MCP_COMPACT=0. |
| shadowgraph_review_signalsA | List saved review signals from the signal queue without reevaluating rules or creating signals. Pass a listed signal id to shadowgraph_ack_review to mark it acknowledged. Own-scope read saves nothing; an access key commits a revision and audit. Returns { items, completeness } filtered by project and status; acknowledged ones stay retained. |
| shadowgraph_ack_reviewA | Acknowledge a saved review signal by ID; updates signal status, not the decision. Pass reviewSignalId from shadowgraph_review_context; Update decisions via shadowgraph_update_status or shadowgraph_supersede. Rejects unknown/unowned id. Overwrites status and acknowledgedAt (untracked by journal/rebuild); commits a revision and restamps repeats. |
| shadowgraph_reconsiderA | Audit one decision by decisionId (or project): explain all reopen verdicts (grounded, contested, unevaluated). Use shadowgraph_review to queue signals, or shadowgraph_supersede to replace it. Rejects unknown, out-of-scope or closed decisionId. Commits an audit revision without changing decision status; grants widen reads only. review_recommended: condition fired; manual_review: unresolved evidence; unchanged: complete, no trigger. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| shadowgraph_consequential_task | What ShadowGraph records and returns about decisions, facts, attempts and outcomes. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| ShadowGraph context | Current project context and open review signals. |
TDQS
Scored across 20 tools
The set has several overlapping read/review surfaces: search vs. retrieve vs. recall, context vs. review_context, and review vs. review_signals vs. reconsider. The verbose descriptions and cross-references help an agent choose, but the boundaries are not fully clear at a glance.
All tools use the same shadowgraph_ prefix and snake_case formatting, which is very consistent. The only minor deviation is that some names are verb_noun (record_fact, update_status) while others are single verbs or domain nouns (recall, context, reconsider).
Twenty tools is at the heavy end for a single server, and the decision/memory domain is broad enough to justify many, but several adjacent read/review tools make the surface feel inflated. Some consolidation of the search/retrieve/recall and context/review families might improve usability.
The surface covers creation and lifecycle operations for facts, decisions, attempts, memories, outcomes, evidence, review signals, maintenance, and validation. Minor gaps exist around direct get/list-by-ID workflows and repair/rebuild operations are only referenced as unavailable full-mode tools.