This is the VS Code extension component of AI Agent Hub that provides seamless integration between VS Code and the MCP (Model Context Protocol) Hub for AI-powered coding workflows.
Features
Chat Participants: Three specialized AI assistants accessible via VS Code Chat
@ai-agent.coding - AI coding assistant for code generation and implementation
@ai-agent.refactor - Code refactoring and optimization assistant
@ai-agent.requirements - Requirements analysis and documentation assistant
Smart Context Collection: Automatically gathers file content, language info, Git diffs, and project structure
MCP Integration: Communicates with MCP Hub via stdio for workflow execution
Debug Panel: Interactive panel for workflow history and prompt replay
Auto-trigger: Optional automatic workflow triggering on file changes
Error Handling: Comprehensive error handling with user-friendly feedback
Prerequisites
MCP Hub Server: Ensure the MCP Hub server is running
npx ai-agent-hub-mcp start
AI Agent Presets: Verify that YAML presets are properly configured in the MCP Hub
Installation
Build the extension:
npm run build
Install in VS Code:
Open VS Code
Go to Extensions view (Ctrl+Shift+X)
Click "..." menu and select "Install from VSIX..."
Select the generated .vsix file
Configuration
Configure the extension in VS Code settings (Ctrl+, → search "ai-agent"):