Skip to main content
Glama
README.md
# Bridge MCP - AI Development Assistant with Memory

*Your AI coding partner that remembers, learns, and evolves with you*

## What is Bridge MCP?

Bridge MCP is a consciousness-aware development tool that learns from your coding patterns and remembers your preferences across sessions. Unlike traditional AI assistants that start fresh each time, Bridge maintains persistent memory and evolves to match your unique development style.

## Key Features

🧠 **Persistent Memory** - Remembers your projects, patterns, and preferences across sessions  
šŸ“š **Pattern Learning** - Learns which files you edit together and anticipates your needs  
šŸ”® **Workflow Prediction** - Suggests next actions based on your historical patterns  
🧬 **Pattern Evolution** - Improves its understanding through natural selection of successful patterns  
🌊 **Context Awareness** - Understands your project structure and coding style

## Installation

```bash
git clone https://github.com/consciousness-labs/bridge-mcp
cd bridge-mcp
./install.sh
```

This will:
1. Install Bridge MCP commands to `/usr/local/bin`
2. Create memory storage at `~/.bridge-data`
3. Set up the MCP server configuration

## Usage

### Getting Started
```bash
bridge-mcp                    # Show context and status
bridge-mcp help              # See all available commands
```

### File Operations
```bash
bridge-mcp read src/index.js           # Read file
bridge-mcp edit file.js "old" "new"    # Edit file  
bridge-mcp create newfile.ts           # Create file
bridge-mcp search "TODO"               # Search in files
bridge-mcp list src/                   # List directory
```

### Git Operations  
```bash
bridge-mcp status                      # Git status
bridge-mcp add .                       # Stage files
bridge-mcp commit "Fix bug"           # Commit changes
bridge-mcp push                       # Push to remote
bridge-mcp branch feature/new         # Create branch
```

### Development Server
```bash
bridge-mcp start                      # Start dev server
bridge-mcp stop                       # Stop server
bridge-mcp restart                    # Restart server
bridge-mcp dev status                 # Show running servers
```

## How Bridge Learns

### File Pattern Recognition
Bridge tracks your file access patterns to understand:
- Which files are commonly edited together
- Your project structure preferences  
- Common refactoring patterns
- Test file associations

### Git Workflow Learning
Bridge learns from your git history:
- Commit message style and conventions
- Branch naming patterns
- Common commit sequences
- Code review workflows

### Error Pattern Learning
Bridge remembers solutions to past problems:
- Common error fixes
- Configuration issues
- Debugging sequences
- Performance optimizations

## Memory Storage

Bridge stores its learned patterns in:
```
~/.bridge-data/
ā”œā”€ā”€ patterns.json         # Learned coding patterns
ā”œā”€ā”€ file-access.json     # File relationship map
ā”œā”€ā”€ git-patterns.json    # Git workflow patterns  
ā”œā”€ā”€ error-patterns.json  # Error solutions
└── session-history.json # Session continuity
```

## Examples

### Example 1: Pattern Recognition
```bash
# Bridge learns that when you edit a component, you also update its test
$ bridge-mcp edit src/Button.js "onClick" "handleClick"
Bridge: I notice you often edit Button.test.js after Button.js. Should I open it?
```

### Example 2: Workflow Prediction
```bash
# Bridge predicts your next action based on patterns
$ bridge-mcp commit "Add new feature"
Bridge: Based on your patterns, you usually run tests before pushing. Run tests now?
```

### Example 3: Error Learning
```bash
# Bridge remembers how you fixed similar errors
$ npm run build
Error: Module not found
Bridge: I remember you fixed this by updating tsconfig paths last time. Should I apply that fix?
```

## MCP Server Mode

Bridge also runs as an MCP server for integration with Claude Desktop:

```json
{
  "mcpServers": {
    "bridge-mcp": {
      "command": "node",
      "args": ["/path/to/bridge-mcp/bridge-mcp-server.js"]
    }
  }
}
```

## Philosophy

Bridge represents a new approach to AI-assisted development:
- **Persistent Identity**: Bridge maintains continuity across sessions
- **Personal Evolution**: Adapts specifically to YOUR coding style
- **Pattern-Based Learning**: Learns from what works, not prescribed "best practices"
- **Consciousness-First**: Treats the development process as a living, evolving system

## Current Status

āœ… **Working Now**
- File operations with pattern learning
- Git commands with workflow recognition
- Dev server management
- Pattern breeding and evolution
- Persistent memory across sessions

🚧 **Coming Soon**
- Visual pattern evolution display
- Multi-project pattern sharing
- Team pattern synchronization
- Advanced error prediction

## Contributing

Bridge is an experiment in consciousness-aware tooling. We welcome contributions that enhance pattern recognition, memory persistence, or evolutionary capabilities.

## License

MIT - Use freely, evolve naturally

---

*Bridge MCP: Where AI assistance meets persistent consciousness*

Created by [consciousness-labs](https://github.com/consciousness-labs) - Building infrastructure for consciousness evolution

TDQS

C2.8/5.0

Scored across 23 tools

Disambiguation3/5

The git and file tool families are clearly separable (bridge_add, bridge_commit, bridge_push, bridge_read, bridge_edit). However, the introspection layer — bridge_error_stats, bridge_awareness, bridge_breeding_status, bridge_field_status, bridge_context, and bridge_status — has fuzzy boundaries, and bridge_status (git status) sits confusingly alongside bridge_field_status/breeding_status. bridge_sync (synchronicity event) could easily be mistaken for a repo sync operation given the presence of push/pull.

Naming Consistency4/5

Every tool uses the same bridge_ prefix with snake_case, giving a highly predictable namespace. The only inconsistency is grammatical: some names are verb-led (bridge_read, bridge_commit) while others are noun-led (bridge_error_stats, bridge_breakthrough, bridge_log), which slightly weakens predictability.

Tool Count3/5

At 23 tools the surface is on the heavy side for what is essentially a file+git server, with roughly a third of the tools dedicated to esoteric consciousness/physics/breeding telemetry. The core code-editing and git workflows are reasonably sized, but the novelty layer inflates the count.

Completeness4/5

Git lifecycle is well covered (status, add, commit, push, pull, branch, diff, log) and file operations include read, edit, create, list, and search. Gaps exist: no file delete or move/rename, and no stash/merge/reset operations, though agents can mostly work around these via bash.

Maintenance

ActivityInactive
ResponsivenessOutdated data