Install in Your AI Client
Connect Hive to VS Code
Add Hive to VS Code and GitHub Copilot Chat can query live crypto data while you code. Works inside any VS Code workspace via per-project or global MCP config.
Before you start
- VS Code installed from code.visualstudio.com.
- GitHub Copilot Chat extension installed and signed in.
- A free Hive API key from /dashboard/keys.
30-second setup (per-project)
1. Create .vscode/mcp.json in your project root
{
"servers": {
"hive": {
"command": "npx",
"args": ["-y", "hive-intelligence@latest"],
"env": {
"HIVE_API_KEY": "YOUR_HIVE_API_KEY"
}
}
}
}
Replace YOUR_HIVE_API_KEY with the key from /dashboard/keys.
2. Reload VS Code
Run Developer: Reload Window from the command palette (⌘⇧P on macOS).
3. Verify it worked
Open Copilot Chat, switch to agent mode, and ask:
"Using the Hive MCP server, what is the current price of BTC, ETH, and SOL?"
Copilot should call Hive's get_price tool and return live data.
Global setup (all projects)
If you want Hive available in every workspace:
- Open VS Code settings (⌘, on macOS).
- Search for
mcp. - Under Chat: MCP, add a server entry pointing at the same config shape as above.
Global config lives in VS Code's user settings JSON — exact path depends on your OS.
What to ask in VS Code
Copilot Chat is especially useful for building crypto-aware code:
- "Generate a TypeScript function that calls Hive's
get_pool_infotool and returns typed pool stats." - "Build a React component that shows live BTC, ETH, and SOL prices using Hive."
- "Check this contract address for security issues before I import its ABI: 0x..."
- "Write a GitHub Action that posts a daily crypto market summary to Slack using Hive."
Copilot Chat chains Hive tool calls with code generation automatically.
API key security: do NOT commit .vscode/mcp.json
Add this line to .gitignore in any project where you've added Hive:
.vscode/mcp.json
Or store the key as an environment variable and reference it:
"env": { "HIVE_API_KEY": "${env:HIVE_API_KEY}" }
Then set HIVE_API_KEY in your shell profile. Copilot Chat will read it at runtime.
Troubleshooting
Copilot Chat doesn't list Hive. Reload the window. Check the MCP output panel for errors: View → Output → MCP.
"npx: command not found". Install Node.js 18+ from nodejs.org.
API key rejected. Regenerate at /dashboard/keys.
Tools work in agent mode but not in chat mode. MCP tools are only available in Copilot's agent mode (not the basic inline chat). Switch via the toggle above the chat input.
Other clients
- Cursor — Cursor is VS Code-based with tighter MCP integration
- Claude Desktop — for non-IDE workflows
- All clients — full list
Next steps
- Hive for AI Agents — what Copilot Chat can build once connected
- JavaScript SDK — native TypeScript types for VS Code projects
- Tools Reference — every tool Copilot can call