server

v0.3.6
@tages/server Checked 1 hour ago Published 16 days ago

MCP server for persistent AI agent memory

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

remember

Store a memory about this codebase — conventions, decisions, architecture, patterns, or lessons learned

ParameterTypeDescription
key *stringA short, descriptive key for this memory
type *stringThe type of memory
value *stringThe memory content
conditionsarrayWhen this applies — conditions or prerequisites
crossSystemRefsarrayKeys of related memories in other systems
examplesarrayConcrete input/output examples
executionFlowobjectStep-by-step execution pipeline (for execution type)
filePathsarrayRelated file paths
forcebooleanOverride secret detection blocking
phasesarrayPhases or stages this memory relates to
tagsarrayTags for categorization

recall

Search codebase memories by fuzzy query — finds conventions, decisions, patterns, and lessons. Results are numbered passages [1..n] with source and date. Before answering, briefly note which numbered passage(s) support your answer, then cite them.

ParameterTypeDescription
query *stringSearch query for fuzzy matching
assembledContextbooleanReturn one deduped, chronologically-ordered assembled-context block instead of numbered passages
limitintegerMax results
maxTokensintegerMaximum token budget for response (approx 4 chars per token). Results truncated to fit.
typestringFilter by memory type

forget

Delete a memory by its key

ParameterTypeDescription
key *stringThe key of the memory to delete

conventions

List all coding conventions for this project

architecture

List all architecture notes and module boundaries

decisions

List the decision log — why things were built the way they are

context

Get all memories related to a specific file path

ParameterTypeDescription
filePath *stringFile path to get context for

staleness

Check for stale memories that may be outdated or no longer relevant

conflicts

Detect potential conflicts between memories — overlapping or contradictory entries

stats

Show memory usage statistics — counts by type, recall hit rate, agent sessions, most/least accessed

observe

Report what you are doing or learning — Tages silently extracts memories from your observations. Call this naturally as you work, no need to format.

ParameterTypeDescription
observation *stringWhat you observed, decided, or learned while working

session_end

End the current session with a summary of what was built, decided, or learned — auto-extracts memories from the summary

ParameterTypeDescription
summary *stringSummary of what happened in this session
extractMemoriesbooleanAuto-extract memories from the summary (default: true)

verify_memory

Verify a pending auto-extracted memory — promotes it to live so it appears in recall results

ParameterTypeDescription
key *stringKey of the pending memory to verify

pending_memories

List auto-extracted memories that need verification before they appear in recall

memory_stats_detail

Detailed memory statistics — counts by type and status, average confidence, top 5 agents, and total count

memory_history

Get the version history of a memory — shows past values, confidence changes, and who changed it. Optionally revert to a previous version.

ParameterTypeDescription
key *stringKey of the memory to get history for
revertToVersionintegerVersion number to revert to

contextual_recall

Search memories filtered by execution context — current files, agent name, or phase. More precise than recall for context-aware retrieval.

ParameterTypeDescription
query *stringSearch query (can be empty to list all contextual matches)
contextobjectExecution context to filter results
limitintegerMax results

resolve_conflict

Resolve a detected memory conflict using keep_newer, keep_older, or merge strategies

ParameterTypeDescription
conflictId *stringID of the conflict to resolve
strategy *stringResolution strategy (auto_merge uses 3-way LCS merge)
mergedValuestringMerged content (required when strategy is "merge")
resolvedBystringAgent or user resolving the conflict

list_conflicts

List unresolved memory conflicts for this project

suggestions

Get suggestions for memories you should store, based on queries that returned no results

import_memories

Import memories from a JSON array or markdown file content. Handles duplicates with skip/overwrite/merge strategies.

ParameterTypeDescription
content *stringJSON array or markdown content to import (max 500KB)
formatstringInput format
strategystringDuplicate handling strategy

memory_graph

Build a relationship graph from crossSystemRefs and output as a Mermaid diagram

fork_branch

Fork current memories into a session branch for experimentation. Branch writes won't affect main until merged.

ParameterTypeDescription
sessionId *stringUnique session identifier for this branch

merge_branch

Merge a session branch back into main memory. Detects conflicts between branch and main changes.

ParameterTypeDescription
sessionId *stringSession ID of the branch to merge
strategy *stringforce = branch wins; skip_conflicts = skip conflicting keys

list_branches

List memories in a session branch

ParameterTypeDescription
sessionId *stringSession ID to inspect

detect_duplicates

Detect near-duplicate memories using Jaccard similarity on key+value tokens

ParameterTypeDescription
thresholdnumberJaccard similarity threshold (default 0.7)

consolidate_memories

Merge two duplicate memories into one, preserving all metadata

ParameterTypeDescription
survivorKey *stringKey of the memory to keep
victimKey *stringKey of the memory to delete and merge into survivor
mergedValuestringCustom merged value (optional, defaults to more detailed version)

impact_analysis

Analyze the downstream impact of a memory — how many others depend on it

ParameterTypeDescription
key *stringMemory key to analyze impact for

risk_report

Get project-wide risk ranking — which memories are most dangerous to change

graph_analysis

Analyze the memory dependency graph — orphans, critical paths, impact scores

check_convention

Check a memory against all stored conventions — detect conflicts or duplicates before storing

ParameterTypeDescription
key *stringMemory key to check against all conventions
agentNamestringAgent name for violation tracking

enforcement_report

Get per-agent convention compliance stats and recent violations

memory_quality

Score a specific memory on completeness, freshness, consistency, and usefulness (0-100)

ParameterTypeDescription
key *stringMemory key to score

project_health

Get overall project memory health score with dimension breakdown and improvement suggestions

list_templates

List available memory templates (api-endpoint, react-component, database-migration, test-suite, cli-command)

match_templates

Find templates matching given file paths — prompts agent to fill required fields

ParameterTypeDescription
filePaths *arrayFile paths to match against templates

apply_template

Create a memory from a filled template with automatic key generation

ParameterTypeDescription
fields *objectField values for the template
templateId *stringTemplate ID to apply
filePathsarrayRelated file paths

archive_memory

Archive a memory to cold storage — removes it from recall but preserves it for restoration

ParameterTypeDescription
key *stringMemory key to archive
reasonstringReason for archiving

restore_memory

Restore an archived memory back to live status

ParameterTypeDescription
key *stringMemory key to restore from archive

list_archived

List archived memories with their archive reasons and dates

ParameterTypeDescription
limitintegerMax archived memories to list

archive_stats

Get archive statistics — total archived, restored, expired

auto_archive

Scan for stale low-quality memories and auto-archive them

ParameterTypeDescription
qualityThresholdnumberArchive memories below this quality score (default 20)
stalenessDaysnumberArchive memories not accessed in this many days (default 60)

federate_memory

Promote a project memory to the org-wide federated library

ParameterTypeDescription
key *stringMemory key to promote to federated library
promotedBystringAgent/user promoting this memory
scopestringFederation scope (default: org)

import_federated

Import a federated memory from the shared library into this project

ParameterTypeDescription
key *stringFederated memory key to import into this project

list_federated

List all memories in the federated library

ParameterTypeDescription
scopestringFilter by scope

federation_overrides

Show which federated memories have local project overrides

session_replay

Replay a session timeline showing all tool calls with metrics

ParameterTypeDescription
sessionId *stringSession ID to replay

agent_metrics

Get agent effectiveness metrics — recall hit rate, memory creation quality, convention compliance

ParameterTypeDescription
agentNamestringFilter by agent name

pre_check

Before starting a task, get a list of gotchas: anti-patterns to avoid, conventions to follow, and lessons learned from past experience

ParameterTypeDescription
taskDescription *stringDescription of the task you are about to perform
filePathsarrayFile paths you plan to edit

file_recall

Find memories related to specific file paths — matches by exact path, directory prefix, or reverse prefix. Prioritises anti-pattern and convention memories.

ParameterTypeDescription
filePaths *arrayFile paths currently being edited
limitintegerMax results

project_brief

Generate a token-budgeted project brief for system prompt injection. Returns gotchas, conventions, architecture, and decisions — prioritized by importance. Use this ONCE at session start instead of calling recall/conventions/architecture individually.

ParameterTypeDescription
budgetintegerMax estimated tokens for the brief (default 3000)
taskstringDescription of the current task — used to prioritize relevant memories

import_claude_md

Parse a CLAUDE.md file and auto-create memories from its sections. Conventions, architecture notes, decisions, and anti-patterns become typed memories.

ParameterTypeDescription
content *stringRaw CLAUDE.md file content
strategystringHow to handle existing memories with the same key

memory_audit

Audit project memory coverage and quality: type distribution, brief-critical coverage score, imperative phrasing ratio, and actionable suggestions.

sharpen_memory

Rewrite a memory value into imperative form (ALWAYS/NEVER/MUST/DO NOT) using Claude Haiku. Returns a before/after preview unless confirmed=true.

ParameterTypeDescription
key *stringKey of the memory to rewrite in imperative form
confirmedbooleanIf false (default), returns a preview without mutating. If true, applies the rewrite.

post_session

End-of-session tool: extract memories from a session summary, optionally regenerate the project brief. Combines session_end + brief regeneration in one call.

ParameterTypeDescription
summary *stringSummary of what happened in this session
refreshBriefbooleanIf true, regenerates the project brief after extracting memories and returns it as text