You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once you've selected the tools you want to include in the gateway, click the "Use N tools" button in the tool picker, and then click the "Create MCP Gateway" button to create the gateway.
102
102
103
103
<Callouttype="info">
104
-
There is no limit to the number of tools you can select in an MCP Gateway.
105
-
However, be mindful of how the MCP clients will handle the large number of
106
-
tools. Some clients may not handle a large number of tools well, and may
107
-
consume a significant portion of the LLM's context window. As a rule of thumb,
108
-
we recommend keeping the number of tools in a single MCP Gateway below 80.
104
+
There is a large limit to the number of tools you can select in an MCP
105
+
Gateway. However, be mindful of how the MCP clients will handle the large
106
+
number of tools. Some clients may not handle a large number of tools well, and
107
+
may consume a significant portion of the LLM's context window. As a rule of
108
+
thumb, we recommend keeping the number of tools in a single MCP Gateway below
109
+
80.
109
110
</Callout>
110
111
111
112
### Connect the MCP Gateway to an MCP client
@@ -119,15 +120,15 @@ Get the URL of your MCP Gateway by clicking the "Copy URL" button in the MCP Gat
@@ -157,41 +158,16 @@ Get the URL of your MCP Gateway by clicking the "Copy URL" button in the MCP Gat
157
158
</Tabs.Tab>
158
159
<Tabs.Tab>
159
160
160
-
1. Open the command palette and select **MCP: Add Server...**
161
+
1. Open the command palette (Mac: Cmd + Shift + p / Windows: Ctrl + Shift + p) and select **MCP: Add Server...**
161
162
1. Choose **HTTP**
162
-
1. Paste the URL of your MCP Gateway. You may see a warning about Dynamic Client Registration. You can ignore this.
163
+
1. Paste the URL of your MCP Gateway.
163
164
1. Give your MCP server a name, like `mcp-arcade`
164
-
1. 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
165
-
166
-
Visual Studio Code will update your `mcp.json` file, but you will manually need to add the headers above:
1. Visual Studio Code will update your `mcp.json` file.
166
+
1. Either in the `mcp.json` file or in the "Extensions" > "MCP Servers - Installed" pane, click the "Start" button next to your MCP server and follow the prompts to authenticate.
182
167
183
168
</Tabs.Tab>
184
169
</Tabs>
185
170
186
-
<Callouttype="info">
187
-
You can get an API key from the dashboard, following these instructions:
188
-
[Getting Your API Key](/get-started/setup/api-keys).
Copy file name to clipboardExpand all lines: app/en/guides/create-tools/mcp-gateways/page.mdx
+28-3Lines changed: 28 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,14 @@ title: "MCP Gateways"
3
3
description: "Comprehensive guide to using MCP Gateways"
4
4
---
5
5
6
+
importImagefrom"next/image";
7
+
8
+
exportconst IMAGE_SCALE_FACTOR =2;
9
+
exportconst TOOL_FILTER_LIGHT_WIDTH =2052;
10
+
exportconst TOOL_FILTER_LIGHT_HEIGHT =1412;
11
+
exportconst TOOL_FILTER_DARK_WIDTH =2052;
12
+
exportconst TOOL_FILTER_DARK_HEIGHT =1412;
13
+
6
14
# MCP Gateways
7
15
8
16
MCP Gateways are a way to connect multiple MCP Servers to your agent, application, or IDE. MCP Gateways allow you to federate the tools from multiple MCP Servers into a single collection for easier management, control, and access. You can mix and match tools from different MCP Servers in the same project, and not all tools from a MCP server need to be available to the same LLM.
@@ -13,14 +21,31 @@ To configure an MCP Gateway, go to the [MCP Gateways dashboard](https://api.arca
13
21
14
22
When configuring an MCP Gateway, you can select the tools you want to include in the Gateway from any MCP Servers available to the project:
The options available when configuring an MCP Gateway are:
19
40
20
41
-**Name**: The name of the MCP Gateway. Informative only.
21
-
-**Description**: The description of the MCP Gateway. If set, this information will be returned to the LLM to hint at the purpose of the tools within the MCP Gateway.
42
+
-**Description**: The description of the MCP Gateway. This is useful for humans and some MCP clients may surface this information to the user.
43
+
-**LLM Instructions**: Optional instructions for the LLM about how to use the MCP Gateway.
22
44
-**Slug**: The slug of the MCP Gateway. This is the URL slug that will be used to access the MCP Gateway. It must be unique.
23
-
-**Allowed Tools**: If set, only the tools in the MCP Servers that are selected will be available to the MCP Gateway. If left blank, all tools from the MCP Servers available to the project will be available through the MCP Gateway.
45
+
-**Authentication**: The authentication mode to use for the MCP Gateway. This determines how the MCP Gateway will authenticate requests to the MCP Servers. Users will still need to authenticate to the tools within the MCP Gateway as normal.
46
+
-**Arcade Auth**: To access the MCP Gateway, you'll need to authenticate with your Arcade account. We recommend using this authentication mode for MCP Gateways in development or testing phase, or for internal use when you know all the users will have Arcade accounts.
47
+
-**Arcade Headers**: To access the MCP Gateway, you'll need to authenticate with your Arcade account by passing an Arcade API key in the `Authorization` header and the user ID of your end-user in the `Arcade-User-ID` header. We recommend using this authentication mode for MCP Gateways in production when your agent or application has users without Arcade accounts.
48
+
-**Allowed Tools**: A selection of tools in the Arcade Tool Catalog that will be available to the MCP Gateway.
Copy file name to clipboardExpand all lines: app/en/guides/tool-calling/mcp-clients/visual-studio-code/page.mdx
+26-7Lines changed: 26 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,19 +10,38 @@ In this guide, you'll learn how to connect Visual Studio Code to an Arcade MCP G
10
10
### Prerequisites
11
11
12
12
1. Create an <SignupLinklinkLocation="docs:claude-desktop-client">Arcade account</SignupLink>
13
-
2. Get an [Arcade API key](/get-started/setup/api-keys)
14
-
3. Create an [Arcade MCP Gateway](/guides/create-tools/mcp-gateways) and select the tools you want to use
13
+
2. Create an [Arcade MCP Gateway](/guides/create-tools/mcp-gateways) and select the tools you want to use
15
14
16
15
### Set up Visual Studio Code
17
16
18
-
3. Download and open [Visual Studio Code](https://code.visualstudio.com/download) (version 1.100.0 or higher)
17
+
3. Download and open [Visual Studio Code](https://code.visualstudio.com/download) (version 1.107.0 or higher)
19
18
4. Open the command palette and select **MCP: Add Server...**
20
19
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.
20
+
6. Paste the URL of your MCP Gateway.
22
21
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
24
22
25
-
Visual Studio Code will update your `mcp.json` file, but you will manually need to add the headers above:
23
+
Visual Studio Code will update your `mcp.json` file.
24
+
25
+
### Start the MCP Server in Visual Studio Code
26
+
27
+
8. In the `mcp.json` file or in the "Extensions" > "MCP Servers - Installed" pane, click the "Start" button next to your MCP server.
28
+
9. Visual Studio Code will prompt you to authenticate, and you may see a prompt about opening an external site: `cloud.arcade.dev`. You can safely allow both of these.
29
+
10. If you see an Arcade login screen, authenticate with your Arcade account.
30
+
11. You should see an Arcade consent screen asking you to authorize Visual Studio Code to access your Arcade account. Click "Allow" to continue.
31
+
12. You should then see a webpage from Visual Studio Code saying the sign in was successful. You may see a prompt from your browser to open a link in Visual Studio Code. You can safely allow this.
32
+
33
+
Your MCP Server should now be running and you can use it in Visual Studio Code.
34
+
35
+
### Try it out
36
+
37
+
13. Open your IDE's chat pane.
38
+
14. Make sure you are in **Agent** mode
39
+
15. Ask the agent to use a tool!
40
+
41
+
</Steps>
42
+
43
+
44
+
Note: if you are using the Arcade Header auth mode for your MCP Gateway, you will manually need to add the headers property in your `mcp.json` file:
26
45
27
46
```json
28
47
{
@@ -39,4 +58,4 @@ Visual Studio Code will update your `mcp.json` file, but you will manually need
39
58
}
40
59
```
41
60
42
-
</Steps>
61
+
You will not see the authentication prompts when you start the MCP Server in Visual Studio Code because the API Key is passed directly.
Copy file name to clipboardExpand all lines: app/en/resources/glossary/page.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -177,8 +177,8 @@ To set your own credentials, set the requisite secret within the Arcade Dashboar
177
177
```mermaid
178
178
graph TD
179
179
A[Agent] --> B[Arcade Client]
180
-
B --> C[Arcade Engine]
181
-
C --> D[MCP Gateway]
180
+
B --> C[MCP Gateway]
181
+
C --> D[Arcade Engine]
182
182
D --> E[MCP Server]
183
183
```
184
184
@@ -196,7 +196,7 @@ The Arcade Engine is also responsible for the OAuth flow for your agent's users.
196
196
197
197
### MCP Gateway
198
198
199
-
MCP gateways are a feature of the Arcade Engine that allows you to add and combine multiple MCP servers in your project. The MCP gateway is responsible for routing tool execution requests to the correct MCP server, and for enforcing security and authorization decisions. You can mix and match tools from different MCP servers in the same project, and not all tools from a MCP server need to be available to the same LLM.
199
+
MCP Gateways are a feature of the Arcade Engine that allows you to add and combine multiple MCP servers in your project. It allows your clients to speak MCP directly to Arcade and get all the functionality you'd expect from the Arcade Engine. The MCP Gateway is responsible for routing tool execution requests to the correct MCP server, and for enforcing security and authorization decisions. You can mix and match tools from different MCP servers in the same project, and not all tools from a MCP server need to be available to the same agent or LLM.
0 commit comments