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/v1/environments/{environmentId}/mcps

Request

  • Base URL
    https://api.tryreplicas.com
  • URL
    https://api.tryreplicas.com/v1/environments/{environmentId}/mcps
  • Auth
    HTTP bearer

Path parameters

environmentIdstring required

Environment UUID, or the literal string global.

Request body

namestring required

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

transport'stdio' | 'http' | 'sse' required

Response

MCP created

Changes

No recorded changes to this operation across all 1 revision of this API.