Configure HoloViz MCP for Copilot + VS Code¶
This guide shows you how to configure HoloViz MCP with GitHub Copilot and VS Code.
Prerequisites¶
- VS Code installed
- GitHub Copilot extension installed
- HoloViz MCP installed (Installation guide)
Add the MCP Server¶
- Open VS Code
- Press
Ctrl+Shift+P(orCmd+Shift+Pon macOS) - Type "MCP: Add Server" and press Enter
- Select "Command (stdio)"
- Enter the command "holoviz-mcp"
- Enter Server ID "holoviz"
- Select the "Global" Configuration Target
This will add the following configuration to your user mcp.json file:
Remote Development
For remote development (SSH, Dev Containers, Codespaces), use Workspace or Remote settings to ensure the MCP server runs on the remote machine.
See the VS Code | MCP Servers guide for more details.
Start the MCP Server¶
- Press
Ctrl+Shift+P(orCmd+Shift+Pon macOS) - Type "MCP: List Servers"
- Select
holovizfrom the dropdown - Select "Start Server"

Test Your Configuration¶
After starting the server, test it with Copilot:
- Simple Query - Open Copilot Chat and ask:
- Detailed Query - Ask for specific information:
- Code Generation - Ask Copilot to generate code:
If you get detailed, accurate responses with specific Panel component information, your configuration is working! 🎉
Force MCP Usage
In VS Code, you can include #holoviz in your prompt to explicitly request that Copilot use the holoviz-mcp server for your query.
Advanced Configuration¶
Set Log Level¶
For debugging, increase the log level:
{
"servers": {
"holoviz": {
"type": "stdio",
"command": "holoviz-mcp",
"env": {
"HOLOVIZ_MCP_LOG_LEVEL": "DEBUG"
}
}
}
}
Custom Configuration Directory¶
Use a custom directory for configuration and data:
{
"servers": {
"holoviz": {
"type": "stdio",
"command": "holoviz-mcp",
"env": {
"HOLOVIZ_MCP_USER_DIR": "/path/to/custom/dir"
}
}
}
}
Troubleshooting¶
Server Not Starting¶
Check the command:
Verify installation:
Copilot Not Recognizing Components¶
- Verify documentation index exists:
- Recreate the index:
- Restart VS Code
Configuration File Not Found¶
Use Command Palette → "MCP: Edit Settings" to create or edit the file.
Permission Errors¶
Linux/macOS: Ensure the configuration file is readable:
Next Steps¶
- Getting Started Tutorial: Complete walkthrough for Copilot + VS Code
- Configuration Options: Customize HoloViz MCP behavior
- Troubleshooting Guide: Fix common issues