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: docs/ai-coder/mcp-server.md
+27-2Lines changed: 27 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# MCP Server
2
2
3
-
Power users can configure Claude Desktop, Cursor, or other external agents to interact with Coder in order to:
3
+
Power users can configure Claude, Claude Desktop, Cursor, or other external agents to interact with Coder in order to:
4
4
5
5
- List workspaces
6
6
- Create/start/stop workspaces
@@ -12,6 +12,8 @@ Power users can configure Claude Desktop, Cursor, or other external agents to in
12
12
13
13
In this model, any custom agent could interact with a remote Coder workspace, or Coder can be used in a remote pipeline or a larger workflow.
14
14
15
+
## Local MCP server
16
+
15
17
The Coder CLI has options to automatically configure MCP servers for you. On your local machine, run the following command:
16
18
17
19
```sh
@@ -30,4 +32,27 @@ coder exp mcp server
30
32
```
31
33
32
34
> [!NOTE]
33
-
> The MCP server is authenticated with the same identity as your Coder CLI and can perform any action on the user's behalf. Fine-grained permissions and a remote MCP server are in development. [Contact us](https://coder.com/contact) if this use case is important to you.
35
+
> The MCP server is authenticated with the same identity as your Coder CLI and can perform any action on the user's behalf. Fine-grained permissions are in development. [Contact us](https://coder.com/contact) if this use case is important to you.
36
+
37
+
## Remote MCP server
38
+
39
+
Coder can expose an MCP server via HTTP. This is useful for connecting web-based agents, like https://claude.ai/, to Coder. This is an experimental feature and is subject to change.
40
+
41
+
To enable this feature, activate the `oauth2` and `mcp-server-http` experiments using an environment variable or a CLI flag:
42
+
43
+
```sh
44
+
CODER_EXPERIMENTS="oauth2,mcp-server-http" coder server
> At this time, the remote MCP server is not compatible with web-based ChatGPT.
57
+
58
+
Users can authenticate applications to use the remote MCP server with OAuth2. An authenticated application can perform any action on the user's behalf. Fine-grained permissions are in development.
0 commit comments