IDE Bridge
The mcp/ide/ package integrates go-ai with JetBrains IDEs and VS Code.
Architecture
type Bridge struct {
config *Config
server *mcp.Server
}
The bridge translates MCP tool calls into IDE-specific actions via the editor's API.
Tools
Build Tools (tools_build.go)
Build and compile actions triggered via MCP:
- Trigger project build
- Get build errors/warnings
- Run specific build configurations
Chat Tools (tools_chat.go)
In-IDE AI chat:
- Send messages to AI models via go-ml backends
- Stream responses back to the editor
- Context-aware prompts using project files
Dashboard Tools (tools_dashboard.go)
Project health dashboard:
- Test pass rates
- Coverage metrics
- Dependency status
Configuration
type Config struct {
IDEType string // "jetbrains", "vscode"
ProjectDir string
ServerAddr string
}
The bridge auto-detects the IDE type from the connection context.