Movatterモバイル変換


[0]ホーム

URL:


MCP Server

Power users can configureclaude.ai, Claude Desktop, Cursor, or other external agents to interact with Coder in order to:

  • List workspaces
  • Create/start/stop workspaces
  • Run commands on workspaces
  • Check in on agent activity

Note

See ourtoolsdk documentation for a full list of tools included in the MCP server

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.

Local MCP server

The Coder CLI has options to automatically configure MCP servers for you. On your local machine, run the following command:

# First log in to Coder. coder login <https://coder.example.com># Configure your client with the Coder MCPcoder exp mcp configure claude-desktop # Configure Claude Desktop to interact with Codercoder exp mcp configure cursor # Configure Cursor to interact with Coder

For other agents, run the MCP server with this command:

coder exp mcp server

Note

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 if this use case is important to you.

Remote MCP server

Coder can expose an MCP server via HTTP. This is useful for connecting web-based agents, likehttps://claude.ai/, to Coder. This is an experimental feature and is subject to change.

To enable this feature, activate theoauth2 andmcp-server-http experiments using an environment variable or a CLI flag:

CODER_EXPERIMENTS="oauth2,mcp-server-http" coder server# orcoder server --experiments=oauth2,mcp-server-http

The Coder server will expose the MCP server at:

https://coder.example.com/api/experimental/mcp/http

Note

At this time, the remote MCP server is not compatible with web-based ChatGPT.

Users can authenticate applications to use the remote MCP server withOAuth2. An authenticated application can perform any action on the user's behalf. Fine-grained permissions are in development.

On this page

[8]ページ先頭

©2009-2025 Movatter.jp