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.
Quick setup (recommended)
Want to get started faster? We offer an automated installer that can configure AI Architect for all your AI coding tools in just a few seconds.
The automated setup will:
Detect all compatible AI tools installed on your system
Configure them automatically with your credentials
Save you time by eliminating manual configuration steps
π Try our Quick MCP Integration Guide for automated setup.
Manual setup
If you prefer manual configuration, follow the step-by-step instructions below.
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:
Linux (Ubuntu/Debian):
Verify:
GitHub 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:
Note:
Replace
<Your-Bito-MCP-URL>with the Bito MCP URL you received after completing the AI Architect setup.For the Bito-hosted AI Architect, use the following URL format:
https://mcp.bito.ai/<Your-Bito-Workspace-ID>/mcpReplace
<Your-Bito-Workspace-ID>with your actual Bito workspace ID, which you can find after logging into your Bito account at alpha.bito.ai
Replace
<Your-Bito-MCP-Access-Token>with the Bito MCP Access Token you received after completing the AI Architect setup.Replace
<Your-Email>with your actual email address.
Important:
Include
"type": "stdio"in the configurationVS 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:
Start the MCP server
Important: VS Code requires manually starting MCP servers. Follow these steps:
Open Copilot Chat (Ctrl/Cmd + I)
Click the gear icon in the Copilot Chat panel
Select "MCP Servers"
Find BitoAIArchitect in the list
Click the gear icon next to BitoAIArchitect
Select "Start Server"
Alternative method:
Open
.vscode/mcp.jsonin VS CodeLook for a Start button above the configuration
Click Start to initialize the server
User configuration (global)
To make BitoAIArchitect available in ALL projects, create a user-level mcp.json file:
Windows
Create/edit:
%APPDATA%\Code\User\mcp.json
macOS
Create/edit:
~/Library/Application Support/Code/User/mcp.json
Linux
Create/edit:
~/.config/Code/User/mcp.json
Configuration
Add this to your mcp.json:
Note:
Replace
<Your-Bito-MCP-URL>with the Bito MCP URL you received after completing the AI Architect setup.For the Bito-hosted AI Architect, use the following URL format:
https://mcp.bito.ai/<Your-Bito-Workspace-ID>/mcpReplace
<Your-Bito-Workspace-ID>with your actual Bito workspace ID, which you can find after logging into your Bito account at alpha.bito.ai
Replace
<Your-Bito-MCP-Access-Token>with the Bito MCP Access Token you received after completing the AI Architect setup.Replace
<Your-Email>with your actual email address.
Enable MCP discovery
Also ensure MCP discovery is enabled in your settings.json:
Important:
User-level config uses
mcp.json(separate fromsettings.json)Include
"type": "stdio"in the configurationAfter saving, manually start the server via Copilot Chat (see Step 4 above)
Troubleshooting VS Code (GitHub Copilot)
Server not appearing in MCP Servers list:
Verify
mcp.jsonis in the correct location (see paths above)Ensure
"type": "stdio"is included in the configurationCheck JSON syntax is valid
Restart VS Code completely (Cmd+Q / Alt+F4)
Server not starting:
Manually start the server:
Open Copilot Chat β gear icon β MCP Servers
Click gear icon next to BitoAIArchitect β Start Server
Check Node.js version:
node --version(must be 20.18.1+)View β Output β select "MCP" for error messages
Tools not showing in Copilot Chat:
Ensure server is started (see above)
Open Copilot Chat
Switch to Agent mode
Click Tools (wrench icon)
Verify BitoAIArchitect appears
Agent Mode not available:
Update VS Code to 1.99+
Settings β Search:
chat.agent.enabledEnable the checkbox
MCP discovery issues:
Ensure settings.json has:
Note: This must be a boolean true, NOT an object like {"claude-desktop": true}.
Node.js version too old:
Error: ReferenceError: File is not defined or similar
Upgrade Node.js to 20.18.1 or later
If using nvm:
nvm install 20 && nvm use 20 && nvm alias default 20
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
"type": "stdio"is in your configCancel the OAuth prompt - the server should still work
Check that Node.js and npx are installed:
npx --version
Last updated

