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
Copy file name to clipboardExpand all lines: app/en/home/build-tools/call-tools-from-mcp-clients/page.mdx
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ Configure your MCP clients to call tools from your MCP server.
33
33
34
34
## Using the `arcade configure` command
35
35
36
-
For popular MCP clients, you can use the `arcade configure` command to configure your MCP client to call your MCP server. This will automatically add the MCP server to your client's configuration file. By default, it will use the stdio transport.
36
+
For popular MCP clients, you can use the `arcade configure` command to configure your MCP client to call your MCP server. This will automatically add the MCP server to your client's configuration file. By default, it will use the stdio transport. You must run this command from the directory of your entrypoint file.
@@ -91,15 +91,15 @@ Claude Desktop does not currently support the http transport.
91
91
92
92
### stdio specific configuration
93
93
94
-
If you are using the stdio transport, `arcade configure` will assume the entrypoint (the script that contains the `MCPApp` instance and calls `app.run()`) to your MCP server is `server.py` and will set the working directory to the root of your project. You can override this with the `--entrypoint` (or `-e`) option:
94
+
If you are using the stdio transport, `arcade configure` will assume the entrypoint (the script that contains the `MCPApp` instance and calls `app.run()`) to your MCP server is `server.py` and will set the working directory to the path of your entrypoint file. You can override this with the `--entrypoint` (or `-e`) option:
95
95
96
96
<Callouttype="info">
97
97
Note that the `--entrypoint` determines only the filename of the entrypoint
98
98
script, not the path to the script.
99
99
</Callout>
100
100
<Callouttype="info">
101
101
When using the stdio transport, `arcade configure` will automatically load the
102
-
secrets from the `.env` file in the root of your project into the appropriate
102
+
secrets from the `.env` file at the directory of your entrypoint file into the appropriate
103
103
configuration file for your MCP client.
104
104
</Callout>
105
105
@@ -170,14 +170,14 @@ If you are using the streamable HTTP transport, `arcade configure` will assume t
170
170
</Tabs.Tab>
171
171
<Tabs.Tab>
172
172
173
-
Claude Desktop does not currently support the http transport.
173
+
Claude Desktop does not currently support the http transport via JSON configuration files.
174
174
175
175
</Tabs.Tab>
176
176
</Tabs>
177
177
178
178
### Other configuration options
179
179
180
-
If you have modified the default configuration of your MCP client, you can pass the `--config` (or `-c`) option to `arcade configure` to use your custom configuration file:
180
+
If you have modified the default configuration of your MCP client, or want to use a profile/workspace specific configuration file, then you can pass the `--config` (or `-c`) option to `arcade configure` to use your custom configuration file:
The `arcade_mcp_server` package provides powerful ways to run MCP servers with your Arcade tools. This guide walks you through the complete process of creating a custom MCP server with Arcade.
10
+
The `arcade_mcp_server` package provides powerful ways to build and run MCP servers with your Arcade tools. This guide walks you through the complete process of creating a custom MCP server with Arcade.
11
11
12
12
<GuideOverview>
13
13
<GuideOverview.Outcomes>
@@ -49,15 +49,25 @@ In your terminal, run the following command to scaffold a new MCP Server called
49
49
50
50
```bash
51
51
arcade new my_server
52
-
cd my_server
52
+
cd my_server/src/my_server
53
53
```
54
54
55
55
<Callouttype="info">
56
56
If you aren't already logged into your Arcade account, you will be prompted to
57
57
do so by running `arcade login` in your terminal.
58
58
</Callout>
59
59
60
-
This generates a complete project with:
60
+
This generates a Python module with the following structure:
61
+
62
+
```bash
63
+
my_server/
64
+
├── src/
65
+
│ └── my_server/
66
+
│ ├── __init__.py
67
+
│ ├── .env.example
68
+
│ └── server.py
69
+
└── pyproject.toml
70
+
```
61
71
62
72
-**server.py** Main server file with MCPApp and example tools
63
73
-**pyproject.toml** Dependencies and project configuration
0 commit comments