Configure VS Code
VS Code reaches MCP servers through GitHub Copilot: they appear as callable tools in Copilot Chat when you're in Agent mode.
Prerequisites
- VS Code with the GitHub Copilot extension installed.
- Node.js 18+.
Add the server
Create or edit .vscode/mcp.json in your workspace root:
{
"servers": {
"onesource": {
"command": "npx",
"args": ["-y", "@one-source/mcp@latest"],
"env": { "ONESOURCE_API_KEY": "sk_…" }
}
}
}
caution
VS Code uses "servers" as the top-level key. Claude Desktop, Cursor, and Windsurf all use "mcpServers"; copying a config across clients without changing this key will silently fail.
You can also reach this file from the Command Palette: Ctrl+Shift+P (Cmd+Shift+P on macOS) → MCP: Add Server.
Workspace vs user scope
- Workspace (the example above):
.vscode/mcp.jsonin your workspace root. The server is only available in that workspace. - User: Command Palette → MCP: Open User Configuration. The server is available across every workspace.
Verify
Open Copilot Chat, switch to Agent mode, and prompt: "Call 1s_setup_check." You should see a tool card with Status: Configured (API key).
With x402 (wallet-paid)
Swap ONESOURCE_API_KEY for an Ethereum private key:
{
"servers": {
"onesource": {
"command": "npx",
"args": ["-y", "@one-source/mcp@latest"],
"env": { "X402_PRIVATE_KEY": "0x…" }
}
}
}
See x402 on Base for funding details.
Next
- Tool reference
- Other clients: Claude Code, Claude Desktop, Cursor, Windsurf