Architecture Overview
Mouse implements the Model Context Protocol (MCP) to provide AI coding assistants with precise file editing capabilities.
``
┌─────────────────┐ ┌──────────────┐ ┌─────────────┐
│ AI Assistant │────▶│ MCP Protocol │────▶│ Mouse Server│
│ (Claude, etc.) │◀────│ (stdio) │◀────│ (VS Code) │
└─────────────────┘ └──────────────┘ └─────────────┘
│
┌─────┴─────┐
│ Files │
└───────────┘
`
Key Components
MCP Server
The extension runs a local MCP server that:Tool Interface
Mouse exposes tools via MCP: - Single operations - Multiple operations - Pattern search / cancel_changes` - Commit/rollbackDialog Box
Large or risky operations trigger a review dialog:Why MCP?
Traditional AI code editing relies on:
Mouse's approach: