JSPM

  • Created
  • Published
  • Downloads 174
  • Score
    100M100P100Q124184F
  • License MIT

Standalone a24z Memory MCP server

Package Exports

  • a24z-memory
  • a24z-memory/dist/lib.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (a24z-memory) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Gemini_Generated_Image_rx8a19rx8a19rx8a (1)

a24z-memory: Your Codebase's Living Memory

Install MCP Server Install in VS Code Documentation

One-click install for Cursor & VS Code ↑ β€’ Works with Claude Code, Windsurf, Gemini CLI & Jules

The Problem We Solve

Every codebase accumulates tribal knowledgeβ€”those critical insights about why things work the way they do, what pitfalls to avoid, and which patterns to follow. But this knowledge gets lost in:

  • 🧠 Developers' heads when they leave or forget
  • πŸ’¬ Slack threads that disappear into history
  • πŸ“ PR comments that nobody reads again
  • πŸ“š Documentation that becomes stale the moment it's written

Our Solution: Knowledge That Lives With Your Code

a24z-memory captures and preserves your team's hard-won insights by anchoring them directly to your code. Unlike traditional documentation that rots or embeddings that become stale, our knowledge stays fresh because it's connected to the actual files.

When your AI assistant needs context, it doesn't get outdated embeddingsβ€”it gets your team's accumulated wisdom plus the current state of your code.

How It Works: The Memory Palace Approach

πŸ—οΈ Create Spatial Knowledge Maps

Transform your codebase into navigable CodebaseViewsβ€”grid-based memory palaces that organize files spatially:

CodebaseView: "Frontend Architecture"
β†’ Grid: 3Γ—2 layout
β†’ Cell [0,0]: Components (src/components/*)  
β†’ Cell [0,1]: Services (src/services/*)
β†’ Cell [1,0]: Utils (src/utils/*)
β†’ Stored in: .a24z/views/frontend-architecture.json

🎯 Anchor Knowledge Spatially

When you discover something important, anchor it to specific view coordinates:

"Auth middleware breaks with null headers - always validate before parsing"
β†’ View: "Frontend Architecture"  
β†’ Cell: [0,1] (Services grid location)
β†’ Tagged as: authentication, middleware, validation
β†’ Anchored to: src/services/auth/middleware.ts (relative paths only, no globs)
β†’ Stored in: .a24z/notes/ (synced via git)

🧠 Navigate Your Memory Palace

Your AI assistant uses spatial context for knowledge discovery:

You: "Why does our auth sometimes fail?"
AI: *Navigates to Services cell [0,1] in Frontend Architecture view*
AI: "Found spatial knowledge: Auth middleware breaks with null headers in the Services grid location. This is anchored to src/services/auth/middleware.ts where validation is needed before parsing."

πŸ”„ Spatial Knowledge That Evolves

As your codebase grows, your memory palace adapts:

  • Spatial anchors connect knowledge to grid coordinates AND file locations
  • Multiple views provide different organizational perspectives
  • Git tracks evolution of both code and spatial organization
  • Cross-view navigation links related knowledge across different memory palaces
  • Team contributions build comprehensive spatial understanding

The Spatial Knowledge Architecture

We use a clean four-layer spatial architecture that creates navigable memory palaces for your codebase:

πŸ—οΈ  Views    β†’ Spatial grid layouts organizing your codebase (CodebaseViews)
πŸ“ Notes    β†’ Your team's spatially-anchored insights and knowledge
🏷️  Tags     β†’ Semantic categories for discovery (authentication, bugfix, pattern)
πŸ”— Anchors  β†’ Direct connections to specific files and code locations

Plus Git distribution ensures both your code and spatial organization evolve together with your team.

This isn't just storageβ€”it's a living memory palace system where knowledge has both semantic meaning and spatial location, making it intuitive to navigate and impossible to lose.

Real-World Impact

For Individual Developers

  • Never lose context when switching between projects
  • Learn from past mistakes without repeating them
  • Understand "why" not just "what" in unfamiliar code

For Teams

  • Onboard faster with accumulated team knowledge
  • Share insights automatically through git
  • Build institutional memory that survives team changes

For AI Assistants

  • Context-aware responses based on real team knowledge
  • Avoid known pitfalls documented by your team
  • Follow established patterns specific to your codebase

Getting Started

The convenience buttons above handle everythingβ€”just click to install. For manual setup or advanced configuration, see the detailed installation guide below.


Learn More

πŸ“– Complete Documentation - Comprehensive guides and API reference
πŸ“š Usage Guide - Quick reference and examples
πŸ”§ Advanced Configuration - Customize for your workflow


Detailed Installation

Manual Installation Steps

Prerequisites

  • Node.js 18+
  • Git repository (for knowledge storage)
  • MCP-compatible editor (Cursor, VS Code, Claude Code, etc.)

Install Package

# Global installation (recommended)
npm install -g a24z-memory

# Or project-specific
npm install a24z-memory --save-dev

# Verify installation
npx a24z-memory --help

Start the Server

# Keep this running in a terminal
npx a24z-memory

# Expected output:
# βœ… a24z-Memory MCP server started successfully
# πŸ“ MCP Server working directory: /path/to/cwd

Configure Your Editor

For Cursor/VS Code/Claude Code:

{
  "mcpServers": {
    "a24z-memory": {
      "command": "npx",
      "args": ["-y", "a24z-memory"]
    }
  }
}

For other editors, consult their MCP configuration documentation.

Advanced Configuration

System Prompt for AI Assistants

Add this to your AI assistant's system prompt for optimal integration:

When working on development tasks, you have access to a a24z-memory MCP server...

### Available Tools

#### discover_a24z_tools - Discover all available tools and capabilities

#### askA24zMemory - Search tribal knowledge and get contextual guidance

#### create_repository_note - Document insights and decisions

#### get_notes - Browse raw notes without AI processing

#### get_repository_tags - Manage note categorization

#### get_repository_types - Get available note types

#### get_repository_guidance - Get repository-specific guidelines

...

### Best Practices

1. Check existing knowledge before starting work
2. Use absolute paths starting with /
3. Document insights after solving problems
4. Read guidance token before creating notes

Full system prompt available in USAGE_GUIDE.md.

Troubleshooting

Common Issues and Solutions

πŸ” Server Not Starting

npx a24z-memory
# Should show: "βœ… a24z-Memory MCP server started successfully"
# If errors, check Node version: node --version (needs 18+)

πŸ” AI Not Using Tools

  1. Verify server is running in separate terminal
  2. Check system prompt includes tool definitions
  3. Test with: "What a24z-Memory tools are available?"

πŸ” Path Errors

Always use absolute paths:

pwd  # Get current directory
# Use this path in your commands

πŸ” Repository Errors

git status  # Verify you're in a git repo
git init    # Initialize if needed

πŸ” Debug Mode

DEBUG=a24z-memory:* npx a24z-memory

For detailed troubleshooting, see the complete checklist.

Quick Demo

  1. Install with one click using the buttons above
  2. Ask your AI: "What a24z-Memory tools are available?"
  3. Start capturing: Document your first insight about your code
  4. Experience the difference: Watch your AI leverage accumulated knowledge

Handoff Briefs: Seamless Knowledge Transfer

When transitioning workβ€”whether switching projects, onboarding teammates, or handing off tasksβ€”create a handoff brief that captures everything the next person needs to know:

What Gets Included

  • Context & Current State: Where things stand and what's been done
  • Code References: Specific files with explanations of their role
  • Key Decisions: Why certain approaches were taken
  • Next Steps: What needs attention moving forward

How It Works

You: "Create a handoff brief for the auth refactoring"
AI: *Generates comprehensive handoff document*
    - Overview of changes made
    - References to modified files with context
    - Outstanding tasks and considerations
    - Saved to .a24z/handoffs/ for sharing

Your teammate receives a complete pictureβ€”not just what changed, but why and what's next. The brief lives in your repository, traveling with the code it describes.

Available Tools

Your AI assistant gains access to powerful knowledge management tools:

  • askA24zMemory - Query tribal knowledge with semantic search
  • create_repository_note - Document new insights and decisions
  • get_notes - Browse existing knowledge
  • get_repository_tags - Get available tags for categorization
  • get_repository_types - Get available note types
  • get_repository_guidance - Access team guidelines
  • get_repository_note - Retrieve specific note by ID
  • delete_repository_note - Remove outdated notes
  • create_handoff_brief - Generate handoff documentation
  • discover_a24z_tools - Explore all capabilities

Why This Is Different

Traditional Approach a24z-Memory
Static documentation that rots Dynamic knowledge anchored to code
Embeddings that become stale Fresh context read from current files
Knowledge in silos (Slack, wikis) Knowledge in your repository
Manual knowledge sharing Automatic distribution via git
AI without context AI with your team's wisdom

Programmatic Usage

import { run } from 'a24z-memory';
run();

Contributing

We welcome contributions! See our contribution guidelines for details.

License

MIT License - see LICENSE for details.

Support


Built with ❀️ by the a24z team to make every codebase smarter.