Create Environment MCP
Adds a new MCP server to the environment. name must match ^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$ and cannot start with reserved prefixes relay- or replicas-. The config shape depends on the transport: stdio uses { command, args, env }; http and sse use { url, headers }.
Authorizations
API key authentication. Obtain your API key from the Replicas dashboard under Settings > API Keys.
Path Parameters
Environment UUID, or the literal string global.
Body
Request body for creating an MCP. The config shape must match the chosen transport.
1–64 chars, ^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$; reserved prefixes relay- and replicas- are rejected.
stdio, http, sse MCP transport-specific configuration. Discriminate by the parent transport field.
- Option 1
- Option 2
Response
MCP created
An MCP (Model Context Protocol) server attached to an environment.