Cursor
Add to.cursor/mcp.json (project-level) or ~/.cursor/mcp.json (global):
Claude Code
Add to~/.claude/claude_desktop_config.json:
Any MCP Client
Same pattern — setAMFS_HTTP_URL and AMFS_API_KEY as env vars on the uvx amfs-mcp-server process. No local code, no cloning, no Docker.
Verify
Restart your IDE after saving the config. Ask the agent to runamfs_stats() — if it returns a response, you’re connected.
What Your Agents Get
Once connected, agents have 20+ tools across five categories: Identity & Context| Tool | What it does |
|---|---|
amfs_set_identity | Name this agent session (e.g. "checkout-fixer") |
amfs_briefing | Get a compiled knowledge digest — what matters right now |
| Tool | What it does |
|---|---|
amfs_read / amfs_write | Read and write versioned memory entries |
amfs_search | Filter by entity, confidence, agent, time range |
amfs_retrieve | Natural language search with semantic + recency + confidence ranking |
amfs_list / amfs_stats | Browse entries and get an overview |
amfs_history | Version history of any entry |
amfs_graph_neighbors | Explore the knowledge graph |
| Tool | What it does |
|---|---|
amfs_recall | Recall your own memories |
amfs_my_entries | List everything you’ve written |
amfs_read_from | Read from another agent’s memory (tracked) |
| Tool | What it does |
|---|---|
amfs_record_context | Capture tool results, user choices, external data |
amfs_commit_outcome | Snapshot the full decision trace |
amfs_explain | Inspect the causal chain |
| Tool | What it does |
|---|---|
amfs_timeline | Browse the git-style event log |
Agent Rules
To get the most out of AMFS, add the agent rules file to your project. This teaches agents when and how to use memory tools automatically: Cursor — copy amfs-memory.mdc to.cursor/rules/amfs-memory.mdc in your project.
Claude Code — copy CLAUDE.md to your project root.
Without rules, agents still have access to the tools — they just won’t use them proactively.
Agent Identity
Agents should callamfs_set_identity at the start of every session:
| Good | Bad |
|---|---|
dashboard-agent | fix-button-color (too specific) |
api-agent | agent-1 (meaningless) |
amfs_set_identity isn’t called, the MCP server auto-detects identity from the IDE environment (cursor/<username>, claude-code/<username>).
How Knowledge Compounds
Pinning a Version
To pin to a specific MCP server version:Troubleshooting
| Problem | Fix |
|---|---|
uvx: command not found | Install uv: curl -LsSf https://astral.sh/uv/install.sh | sh |
| Agent doesn’t use memory tools | Add the agent rules file to your project |
401 Unauthorized | Check your API key in Dashboard → Settings → API Keys |
403 Scope Denied | Your key doesn’t have permission for that entity path |
