Ask AI in Visual Studio Code
Step‑by‑step walkthrough to query BNB Chain documentation from within VS Code using the Model Context Protocol (MCP).
1 Install the MCP Client extension¶
- Open the Extensions view.
- Search for “MCP Client” and hit Install.
The extension adds MCP support to VS Code, letting you connect to external knowledge bases such as BNB Chain Ask AI.
2 Add the Ask AI server¶
- Open Settings → Preferences → Settings (JSON).
Tip ▶ press Ctrl/⌘ +, then click the
{}
icon in the upper‑right corner. - Inside the JSON, locate (or create) the
"mcpServers"
section and paste the snippet below as a sibling property.
"mcpServers": {
"bnbchain-askai-mcp": {
"url": "https://mcp.inkeep.com/bnbchainorg/mcp",
"id": "cm9qsf01p00bss6016ry68oil"
}
}
- Save the file. The MCP client should automatically reload; if not, restart the VS Code window.
3 Start the MCP server¶
Hover the new server block and click ▶ Start.
When the badge flips to ✓ Running, VS Code is now connected to BNB Chain Ask AI.
4 Open the Chat panel¶
From the menu bar choose View → Chat or press Ctrl + Alt + I. A chat window docks to the side of the editor.
5 Pick the bnbchain‑askai‑mcp agent¶
At the bottom of the chat input you’ll find two dropdowns:
- Mode (Ask / Edit / Agent)
- Provider (list of LLMs & MCP servers)
Set Mode to Agent, then pick bnbchain‑askai‑mcp from the Provider list.
6 Ask your first question¶
- Type a natural‑language query such as:
What is BNB Greenfield?
- Press Enter. VS Code presents a confirmation card recommending the bnbchain‑askai‑mcp tool.
- Click Continue (or just press Enter again). Ask AI streams back a concise answer plus source links you can click to jump to the original docs.
7 Bonus: Command Palette quick‑queries¶
Prefer keyboard? Hit Ctrl/⌘ + Shift + P, run “MCP: Run Query”, choose bnbchain‑askai‑mcp, and enter your question.
This opens a transient results panel without leaving your current editor tab.
Need help?¶
- Reach out on the BNB Chain Discord.
- File an issue in the docs repo.
Happy building! 🎉