# Claude Code Integration

Wall-E can be used as an MCP server from Claude Code, giving Claude access to your personal knowledge base.

## Setup

Add Wall-E to your Claude Code MCP config (`~/.claude/mcp.json`):

```json
{
  "mcpServers": {
    "wall-e": {
      "type": "http",
      "url": "http://localhost:3457/mcp"
    }
  }
}
```

Start Wall-E's standalone HTTP server:

```bash
cd wall-e
WALL_E_PORT=3457 node agent.js
```

## Available Tools

| Tool | Description |
|---|---|
| `search_memories` | Full-text search across Slack, email, calendar memories |
| `calendar_events` | Get upcoming events with attendees, location, notes |
| `remember_fact` | Store new knowledge in the brain |
| `run_skill` | Execute any bundled or custom skill |
| `list_mcp_tools` | Discover tools from Wall-E's MCP connections |

## Example Prompts

Once connected, you can ask Claude Code:

- "What meetings do I have tomorrow?"
- "What did I discuss with Alice last week?"
- "Remember that I prefer Tailwind over Bootstrap"
- "Search my memories for the database migration discussion"
- "Run the morning briefing skill"

## Adding to Project CLAUDE.md

To give Claude Code automatic context about Wall-E in your projects:

```markdown
## Wall-E (Personal Digital Twin)

Wall-E is connected as an MCP server. Use it to:
- Search the owner's memories and knowledge base
- Check calendar events and meeting schedules
- Look up past Slack conversations for context
```
