Documentation Index
Fetch the complete documentation index at: https://ibm-d95bab6e.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
VSCode Integration
Visual Studio Code supports MCP servers through GitHub Copilot Chat. You can configure servers at the workspace or user level, enabling your entire team to share MCP configurations.Prerequisites:
- VSCode 1.102+ with GitHub Copilot installed and enabled
- Copilot subscription (individual, business, or enterprise)
- MCP support is generally available from VS Code 1.102
Configuration File Locations
- Workspace
- User
Location:
.vscode/mcp.json in your project rootBenefits:- Shared with team via version control
- Project-specific MCP servers
- Consistent across team members
Local (Stdio) Setup
Using Command Palette (Recommended)
- Press
Cmd/Ctrl+Shift+P - Run MCP: Add Server
- Choose Workspace or Global scope
- Paste configuration and edit with IntelliSense
Using CLI
Using mcp.json
Create or editmcp.json:
Security: On first start, VSCode will prompt you to trust the MCP server. Only trust servers from reliable sources as they can execute code on your machine.
Remote (HTTP/SSE) Setup
VSCode supports both HTTP and SSE (Server-Sent Events) transport for remote servers.Using CLI
Using mcp.json
- HTTP Transport
- SSE Transport
Secure Credentials with Variables
VSCode supports multiple variable types for secure credential management and flexible configurations:Input Variables
Prompt users for sensitive data at runtime:Built-in Variables
Use VSCode’s built-in variables for dynamic paths:${workspaceFolder}- Absolute path to the workspace root${env:VAR_NAME}- Environment variable value${userHome}- User’s home directory path
Managing Servers
List All Servers
- Open Command Palette (
Cmd/Ctrl+Shift+P) - Run MCP: List Servers
- View all configured servers with status
View Servers in Chat
- Open the Copilot Chat view in the Activity Bar
- Look for MCP servers listed in the chat interface
- Click the MCP indicator to see available tools
Restart Server
Method 1 - Command Palette:- Press
Cmd/Ctrl+Shift+P - Run MCP: Restart Server
- Select your server from the list
- Right-click server in Extensions view
- Select “Restart”
Autostart Servers (Experimental)
Enable automatic server startup:- Open VSCode Settings
- Search for
chat.mcp.autostart - Enable the setting
Disable Server
Remove or comment out the server entry inmcp.json
Testing the Connection
After configuration:- Reload VSCode:
Cmd/Ctrl+Shift+P→ “Developer: Reload Window” - Open Copilot Chat: Click the chat icon in Activity Bar
- Check MCP status: Look for MCP indicator in Copilot Chat
- List tools: Ask “@mcp what tools are available?”
- Test a tool: Ask “Show me the IBM i system status”
Troubleshooting
MCP Server Not Appearing
MCP Server Not Appearing
Solutions:
- Verify JSON syntax in
mcp.json - Reload VSCode window:
Cmd/Ctrl+Shift+P→ “Developer: Reload Window” - Check Copilot is installed and enabled
- Verify GitHub Copilot subscription is active
- Look for errors in Output panel: View → Output → “MCP”
Server Fails to Start
Server Fails to Start
Solutions:
- Verify
npx -y @ibm/ibmi-mcp-server@latestworks from terminal - Check all paths are absolute
- Ensure IBM i credentials are correct
- Review VSCode Developer Tools: Help → Toggle Developer Tools
Authentication Failed (Remote)
Authentication Failed (Remote)
Solutions:
- Verify remote server is running
- Check token is valid and not expired
- Ensure correct Authorization header format
- Get fresh token:
node get-access-token.js --verbose
Input Variables Not Prompting
Input Variables Not Prompting
Solutions:
- Ensure
inputsarray is at root level ofmcp.json - Verify
${input:id}syntax is correct - Restart VSCode completely
- Check that input IDs match between definition and usage
Advanced Configuration
Team Workspace Setup
Share MCP configuration with your team via.vscode/mcp.json:
Multiple Environments
Configure dev and prod servers:Custom Toolsets
Load specific toolsets for different workflows:Next Steps
SQL Tools
Create custom SQL tools for your workflows
Configuration
Explore all configuration options
Authentication
Set up secure IBM i authentication
Other Clients
Explore other MCP-compatible clients