Skip to main content
POST
Create Environment MCP

Authorizations

Authorization
string
header
required

API key authentication. Obtain your API key from the Replicas dashboard under Organization → Settings → API Keys. User-session JWTs are not accepted by /v1/replica endpoints.

Path Parameters

environmentId
string
required

Environment UUID, or the literal string global.

Body

application/json

Request body for creating an MCP. The config shape must match the chosen transport.

name
string
required

1–64 chars, ^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$; reserved prefix replicas- is rejected.

transport
enum<string>
required
Available options:
stdio,
http,
sse
config
object
required

MCP transport-specific configuration. Discriminate by the parent transport field.

Response

MCP created

environment_mcp
object
required

An MCP (Model Context Protocol) server attached to an environment.