Experimental
GetMcpGateway reads gateway state for the sandbox.
GET
/v1/sandboxes/{sandbox}/mcp-gateway GetMcpGateway reads gateway state for the sandbox.
Connection and access
API connection and authentication guidance
https://connect.docker.com/sandboxes
—
The API base URL. Append the /v1 paths while preserving this URL's path prefix.
Use one of these alternatives. Requirements within an alternative apply together.
bearer
Parameters
sandbox
path
Required
The sandbox id.
Type:
string
All schema constraints and annotations
{
"type": "string"
}Request and responses
Response
200
Success
application/json
Schema:
McpGateway
Response
404
The target is absent or not visible within the caller's scope.
application/json
Schema:
Error
notFound
{
"code": "notFound",
"message": "The target is absent or not visible within the caller's scope."
}Response
default
The structured Error body identifies the failure with a stable code and optional typed details.
application/json
Schema:
Error
Schema example
{
"code": "notFound",
"details": [],
"message": "sandbox not found"
}Referenced schemas
#/components/schemas/McpGateway
Complete operation contract
{
"description": "GetMcpGateway reads gateway state for the sandbox.",
"operationId": "getMcpGateway",
"parameters": [
{
"description": "The sandbox id.",
"in": "path",
"name": "sandbox",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/McpGateway"
}
}
},
"description": "Success"
},
"404": {
"content": {
"application/json": {
"examples": {
"notFound": {
"summary": "The target is absent or not visible within the caller's scope.",
"value": {
"code": "notFound",
"message": "The target is absent or not visible within the caller's scope."
}
}
},
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "The target is absent or not visible within the caller's scope."
},
"default": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "The structured Error body identifies the failure with a stable code and optional typed details."
}
},
"security": [
{
"bearer": []
}
],
"summary": "GetMcpGateway reads gateway state for the sandbox.",
"tags": [
"MCP gateways"
],
"x-sbx-authenticated-only": false,
"x-sbx-conditional-permissions": [],
"x-sbx-error-responses": [
{
"code": "NOT_FOUND",
"description": "The target is absent or not visible within the caller's scope."
}
],
"x-sbx-plane": "control",
"x-sbx-required-permissions": [
"mcpRead"
],
"x-sbx-serving-surface": "management"
}