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
You can do the same thing with the [go mcp-filesystem-server](https://github.com/mark3labs/mcp-filesystem-server?tab=readme-ov-file#mcp-filesystem-server):
63
+
64
+
```sh
65
+
fly mcp launch "go run github.com/mark3labs/mcp-filesystem-server@latest /data/" \
If you have the Github CLI installed, you can launch the [GitHub MCP Server](https://github.com/github/github-mcp-server?tab=readme-ov-file#github-mcp-server):
71
+
If you have the [Github CLI](https://cli.github.com/) installed, you can launch the [GitHub MCP Server](https://github.com/github/github-mcp-server?tab=readme-ov-file#github-mcp-server):
Copy file name to clipboardExpand all lines: mcp/flyctl-server.html.md
+27-16Lines changed: 27 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,14 @@ order: 6
9
9

10
10
</s>
11
11
12
+
## Adding fly mcp server to your LLM
13
+
14
+
```
15
+
fly mcp server --claude
16
+
```
17
+
18
+
You can also specify `--cursor`, `--neovim`, `--vscode`, `--windsurf`, or `--zed`. Or specify a configuration file path directly using `--config`.
19
+
12
20
`flyctl` provides an MCP server that you can use to provision your application. At the present time, most of the following commands and their subcommands are supported:
13
21
14
22
*[apps](https://fly.io/docs/flyctl/apps/)
@@ -19,6 +27,8 @@ order: 6
19
27
*[status](https://fly.io/docs/flyctl/status/)
20
28
*[volumes](https://fly.io/docs/flyctl/volumes/)
21
29
30
+
## Running with the MCP inspector
31
+
22
32
You can explore the `flyctl mcp server` using the MCP inspector:
23
33
24
34
<divclass="important">
@@ -31,20 +41,21 @@ fly mcp server -i
31
41
32
42
Navigate to http://127.0.0.1:6274 ; click Connect; then List Tools; then a tool like `fly-platform-status`, `fly-orgs-list`, `fly-apps-list`, or `fly-machines-list`; then fill out the form (if any) and click Run tool.
33
43
34
-
To see the same MCP server using an [MCP client](https://modelcontextprotocol.io/clients), a configuration like the following is used:
35
-
36
-
```json
37
-
{
38
-
"mcpServers": {
39
-
"filesystem": {
40
-
"command": "/Users/rubys/.fly/bin/flyctl",
41
-
"args": [
42
-
"mcp",
43
-
"server"
44
-
]
45
-
}
46
-
}
47
-
}
48
-
```
44
+
## Running on a separate machine
45
+
46
+
<divclass="warning icon">
47
+
<b>Running this server remotely can give others access to run commands on your behalf. Read the following carefully before proceeding.</b>
48
+
</div>
49
+
50
+
Both `--sse` and `-stream` options are supported.
51
+
52
+
The default bind address is `127.0.0.1` which will only allow requests from the same machine. to override specify `--bind-addr`.
53
+
54
+
Authentication tokens come from (in priority order):
55
+
56
+
*`bearer-token` from the `Authentication` header on the request
57
+
*`--access-token` flag on the `fly mcp server` command
58
+
*`FLY_ACCESS_TOKEN` environment variable
59
+
60
+
See [Access Tokens](https://fly.io/docs/security/tokens/) for information on how to obtain a token.
49
61
50
-
Adjust the flyctl path, restart your LLM (for example, Claude) and try out the tools.
Copy file name to clipboardExpand all lines: mcp/launch.html.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ toc: false
5
5
order: 1
6
6
---
7
7
8
-
Launching an `npx`, `uvx`, or docker image stdio MCP server into a Fly machine and configuring a MCP client to connect to it is a one-step process. The `fly mcp launch` command will create a new Fly machine, install the MCP server, and configure the MCP client to connect to it.
8
+
Launching an `npx`, `uvx`, `go run`or docker image stdio MCP server into a Fly machine and configuring a MCP client to connect to it is a one-step process. The `fly mcp launch` command will create a new Fly machine, install the MCP server, and configure the MCP client to connect to it.
9
9
10
10
```sh
11
11
fly mcp launch "uvx mcp-server-time" --claude --server time
@@ -31,7 +31,7 @@ You can use the [MCP Inspector](https://modelcontextprotocol.io/docs/tools/inspe
31
31
As the MCP inspector is a Node.js application, you need to [Download and install Node.js](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) first. MacOS users can use [`brew install node`](https://formulae.brew.sh/formula/node).
32
32
</div>
33
33
34
-
```
34
+
```sh
35
35
fly mcp inspect --claude --server time
36
36
```
37
37
@@ -41,7 +41,7 @@ This command is simply a convenience, all it does is run the inspector set up to
41
41
42
42
When you no longer need the MCP, you can destroy it:
0 commit comments