|
1 | 1 | import { Steps, Callout } from "nextra/components"; |
| 2 | +import { SignupLink } from "@/app/_components/analytics"; |
2 | 3 |
|
3 | 4 | # Use Arcade in Visual Studio Code |
4 | 5 |
|
5 | | -In this guide, you'll learn how to connect Visual Studio Code to Arcade.dev's MCP server. |
6 | | - |
7 | | -<Callout> |
8 | | - As of version 1.100.0, Visual Studio Code does not yet support [MCP |
9 | | - authorization](https://modelcontextprotocol.io/specification/draft/basic/authorization). |
10 | | - Only tools that do not require auth, such as math and |
11 | | - [search](/mcp-servers/search/google_search) tools, will work with Visual |
12 | | - Studio Code. We're working to improve this - stay tuned! |
13 | | -</Callout> |
| 6 | +In this guide, you'll learn how to connect Visual Studio Code to an Arcade MCP Gateway. |
14 | 7 |
|
15 | 8 | <Steps> |
16 | 9 |
|
17 | | -### Set up Visual Studio Code |
| 10 | +### Prerequisites |
18 | 11 |
|
19 | | -1. Download and open [Visual Studio Code](https://code.visualstudio.com/download) (version 1.100.0 or higher) |
20 | | -1. Open the command palette and select **MCP: Add Server...** |
21 | | -1. Choose **HTTP** |
22 | | -1. Paste the following URL: `https://api.arcade.dev/v1/mcps/arcade-anon/mcp` |
| 12 | +1. Create an <SignupLink linkLocation="docs:claude-desktop-client">Arcade account</SignupLink> |
| 13 | +2. Get an [Arcade API key](/home/api-keys) |
| 14 | +3. Create an [Arcade MCP Gateway](https://api.arcade.dev/dashboard/mcp-gateways) |
23 | 15 |
|
24 | | - <Callout type="info"> |
25 | | - This URL is Arcade's public beta MCP server. We'd love to [hear your |
26 | | - feedback](/home/contact-us)! Coming soon: deploy a server with your own |
27 | | - tools. |
28 | | - </Callout> |
| 16 | +### Set up Visual Studio Code |
29 | 17 |
|
30 | | -1. Give your MCP server a name, like `mcp-arcade-dev` |
| 18 | +3. Download and open [Visual Studio Code](https://code.visualstudio.com/download) (version 1.100.0 or higher) |
| 19 | +4. Open the command palette and select **MCP: Add Server...** |
| 20 | +5. Choose **HTTP** |
| 21 | +6. Paste the URL of your MCP Gateway. You may see a warning about Dynamic Client Registration. You can ignore this. |
| 22 | +7. Give your MCP server a name, like `mcp-arcade` |
| 23 | +8. Add the API key as the bearer token within the `Authorization` header, and the email address that you used to sign up for the Arcade account as the `Arcade-User-ID` header |
31 | 24 |
|
32 | | -Visual Studio Code will update your `settings.json` file with the following: |
| 25 | +Visual Studio Code will update your `mcp.json` file, but you will manually need to add the headers above: |
33 | 26 |
|
34 | 27 | ```json |
35 | | - "mcp": { |
36 | | - "servers": { |
37 | | - "mcp-arcade-dev": { |
38 | | - "url": "https://api.arcade.dev/v1/mcps/arcade-anon/mcp" |
39 | | - } |
40 | | - } |
41 | | - }, |
| 28 | +{ |
| 29 | + "servers": { |
| 30 | + "mcp-arcade": { |
| 31 | + "url": "https://api.arcade.dev/mcp/<YOUR-GATEWAY-SLUG>", |
| 32 | + "type": "http", |
| 33 | + "headers": { |
| 34 | + "Authorization": "Bearer {arcade_api_key}", |
| 35 | + "Arcade-User-ID": "{arcade_user_id}" |
| 36 | + } |
| 37 | + } |
| 38 | + } |
| 39 | +} |
42 | 40 | ``` |
43 | 41 |
|
44 | | -### Try it out |
45 | | - |
46 | | -1. Open the chat pane (typically Cmd-Shift-I or Ctrl-Shift-I) |
47 | | -1. Make sure you are in **Agent** mode |
48 | | -1. Click the 🛠️ Tools button, which opens a panel of available tools |
49 | | -1. Click to select the tools you want to use, and type your request in the chat pane! |
50 | | - |
51 | | -<div className="flex justify-center my-4"> |
52 | | - <img |
53 | | - src="/videos/vscode_mcp_demo.webp" |
54 | | - alt="Visual Studio Code tools panel" |
55 | | - /> |
56 | | -</div> |
57 | | - |
58 | 42 | </Steps> |
0 commit comments