Create Environment MCP
Environments
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 prefix replicas-. The config shape depends on the transport: stdio uses { command, args, env }; http and sse use { url, headers }.
POST
Create Environment MCP
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
application/json
Request body for creating an MCP. The config shape must match the chosen transport.
Response
MCP created
An MCP (Model Context Protocol) server attached to an environment.