Guide for GitHub Copilot (VS Code)
Integrate GitHub Copilot in VS Code with AI Architect for more accurate, codebase-aware AI assistance.
Use Bito's AI Architect with GitHub Copilot in VS Code to enhance your AI-powered coding experience.
Once connected via MCP (Model Context Protocol), GitHub Copilot can leverage AI Architectβs deep contextual understanding of your project, enabling more accurate code suggestions, explanations, and code insights.
Prerequisites
Follow the AI Architect installation instructions. Upon successful setup, you will receive a Bito MCP URL and Bito MCP Access Token that you need to enter in your coding agent.
Download BitoAIArchitectGuidelines.md file. You will need to copy/paste the content from this file later when configuring AI Architect.
Note: This file contains best practices, usage instructions, and prompting guidelines for the Bito AI Architect MCP server. The setup will work without this file, but including it helps AI tools interact more effectively with the Bito AI Architect MCP server.
Requires Visual Studio Code version 1.99 or later
Check VS Code version:
code --versionUpdate VS Code if needed: Help β Check for Updates
Enable Agent Mode
Open VS Code Settings (Ctrl/Cmd + ,)
Search:
chat.agent.enabledCheck the box to enable Agent Mode
Ensure Node.js 20.18.1+ is Installed:
VS Code's MCP implementation automatically tries to use OAuth for HTTP servers. For static Bearer token authentication (which Bito AI Architect uses), you need to use the
mcp-remoteproxy tool.The
mcp-remoteproxy requires Node.js 20.18.1 or higher.Why Node.js 20+? The mcp-remote proxy depends on undici v7, which requires Node.js 20+ (needs the
Fileglobal API added in Node 20.0.0). Node.js 18 and earlier will fail withReferenceError: File is not defined.Windows: Download from https://nodejs.org/ (download 20.x LTS)
macOS:
brew install node@20 # Or use nvm: nvm install 20 && nvm use 20Linux (Ubuntu/Debian):
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - sudo apt-get install -y nodejsVerify:
node --version # Should show v20.x.x or higher npx --versionGitHub Copilot extension installed and enabled
GitHub account with Copilot access
Set up AI Architect
VS Code has the same setup process across all platforms (Windows, macOS, Linux, WSL).
Workspace configuration (recommended)
Create mcp.json
Create .vscode/mcp.json:
Important:
VS Code requires
mcp-remoteproxy for static Bearer token authenticationThe
"servers"object is at the root level in workspace configsDirect HTTP transport with static Bearer tokens triggers OAuth flows in VS Code
Why mcp-remote? VS Code's MCP implementation automatically initiates OAuth discovery when connecting to HTTP MCP servers. Since BitoAIArchitect uses static Bearer token authentication (not OAuth), we use the mcp-remote proxy to handle the authentication properly.
Add guidelines (optional but highly recommended)
The BitoAIArchitectGuidelines.md file contains best practices, usage instructions, and prompting guidelines for the Bito AI Architect MCP server.
The setup will work without this file, but including it helps AI tools interact more effectively with the Bito AI Architect MCP server.
Create .github directory:
Copy the contents of your BitoAIArchitectGuidelines.md file into .github/copilot-instructions.md file:
User configuration (global)
To make BitoAIArchitect available in ALL projects:
Windows
Open:
%APPDATA%\Code\User\settings.json
macOS
Open:
~/Library/Application Support/Code/User/settings.json
Linux
Open:
~/.config/Code/User/settings.json
Configuration
Add this to your settings.json:
Important:
In User settings, use
"mcp"β"servers"nested structureIn Workspace config, use
"servers"at root levelVS Code uses
mcp-remoteproxy for Bearer token authentication
Troubleshooting VS Code (GitHub Copilot)
Agent Mode not available:
Update VS Code to 1.99+
Settings β Search:
chat.agent.enabledEnable the checkbox
Server not starting:
View β Output
Select GitHub Copilot Chat from dropdown
Look for error messages
Click Start button in
.vscode/mcp.json
Tools not showing:
Open Copilot Chat
Switch to Agent mode
Click Tools (wrench icon)
Verify
BitoAIArchitectappears
Reset if needed:
Ctrl/Cmd + Shift + P
Run:
MCP: Reset Cached ToolsRestart VS Code
OAuth prompts appearing:
If VS Code is prompting for OAuth instead of using your Bearer token:
Ensure you're using the
mcp-remoteproxy configuration (not direct HTTP)Verify the
--headerargument is correctly formattedCheck that Node.js and
npxare installed:npx --versionTry removing any cached OAuth credentials:
Command Palette β
Authentication: Remove Dynamic Authentication Providers
Last updated

