MCP Gateway Service, REST: McpGateway.Create
- HTTP request
- Body parameters
- McpTool
- McpToolAction
- FunctionCall
- ContainerCall
- HttpCall
- McpCall
- ToolCall
- HeaderAuthorization
- GrpcCall
- StartWorkflow
- LogOptions
- Response
- CreateMcpGatewayMetadata
- Status
- McpGateway
- McpTool
- McpToolAction
- FunctionCall
- ContainerCall
- HttpCall
- McpCall
- ToolCall
- HeaderAuthorization
- GrpcCall
- StartWorkflow
- LogOptions
Creates an MCP Gateway in the specified folder.
HTTP request
POST https://serverless-mcp-gateway.api.cloud.yandex.net/mcpgateway/v1/mcpGateways
Body parameters
{
"folderId": "string",
"name": "string",
"description": "string",
"labels": "object",
"tools": [
{
"name": "string",
"description": "string",
"inputJsonSchema": "string",
"action": {
// Includes only one of the fields `functionCall`, `containerCall`, `httpCall`, `mcpCall`, `grpcCall`, `startWorkflow`
"functionCall": {
"functionId": "string",
"tag": "string"
},
"containerCall": {
"containerId": "string",
"path": "string",
"method": "string",
"body": "string",
"headers": "object",
"query": "object"
},
"httpCall": {
"url": "string",
"method": "string",
"body": "string",
"headers": "object",
"query": "object",
"useServiceAccount": "boolean"
},
"mcpCall": {
"url": "string",
// Includes only one of the fields `toolCall`
"toolCall": {
"toolName": "string",
"parametersJson": "string"
},
// end of the list of possible fields
"transport": "string",
// Includes only one of the fields `unauthorized`, `header`, `serviceAccount`
"unauthorized": "object",
"header": {
"headerName": "string",
"headerValue": "string"
},
"serviceAccount": "object",
// end of the list of possible fields
"forwardHeaders": "object"
},
"grpcCall": {
"endpoint": "string",
"method": "string",
"useServiceAccount": "boolean",
"body": "string",
"headers": "object"
},
"startWorkflow": {
"workflowId": "string",
"inputJson": "string",
"mode": "string"
}
// end of the list of possible fields
}
}
],
"logOptions": {
"disabled": "boolean",
// Includes only one of the fields `logGroupId`, `folderId`
"logGroupId": "string",
"folderId": "string",
// end of the list of possible fields
"minLevel": "string"
},
"serviceAccountId": "string",
"networkId": "string",
"public": "boolean"
}
|
Field |
Description |
|
folderId |
string Required field. ID of the folder to create the MCP Gateway in. |
|
name |
string Required field. Name of the MCP Gateway. The maximum string length in characters is 128. Value must match the regular expression |
|
description |
string Description of the MCP Gateway. The maximum string length in characters is 4000. |
|
labels |
object (map<string, string>) MCP Gateway labels as No more than 64 per resource. The maximum string length in characters for each value is 63. Each value must match the regular expression |
|
tools[] |
List of MCP tools. The number of elements must be greater than 0. |
|
logOptions |
Logging options for the MCP Gateway. |
|
serviceAccountId |
string Service account ID for the MCP Gateway. |
|
networkId |
string Network ID for the MCP Gateway. |
|
public |
boolean Flag indicating if the MCP Gateway is publicly accessible. |
McpTool
|
Field |
Description |
|
name |
string Required field. Name of the tool. The maximum string length in characters is 128. Value must match the regular expression |
|
description |
string Description of the tool. The maximum string length in characters is 4000. |
|
inputJsonSchema |
string JSON Schema describing tool input. |
|
action |
Required field. Action to perform when this tool is invoked. |
McpToolAction
|
Field |
Description |
|
functionCall |
Call Serverless Function. Includes only one of the fields |
|
containerCall |
Call Serverless Container. Includes only one of the fields |
|
httpCall |
Send HTTP request. Includes only one of the fields |
|
mcpCall |
Call MCP Gateway. Includes only one of the fields |
|
grpcCall |
Call gRPC endpoint. Server must support gRPC reflection. Includes only one of the fields |
|
startWorkflow |
Start Workflow. Includes only one of the fields |
FunctionCall
|
Field |
Description |
|
functionId |
string Required field. ID of serverless function to call. |
|
tag |
string Tag of serverless function. If empty, $latest tag will be used. |
ContainerCall
|
Field |
Description |
|
containerId |
string Required field. ID of serverless container to call. |
|
path |
string Relative request path inside the container. |
|
method |
enum (HttpMethod) HTTP method to use for the request.
|
|
body |
string Request body to send to the container. |
|
headers |
object (map<string, string>) HTTP headers to include in the request. |
|
query |
object (map<string, string>) Query string parameters to include in the request. |
HttpCall
|
Field |
Description |
|
url |
string Required field. Absolute URL to send the request to. (required) |
|
method |
enum (HttpMethod) HTTP method to use.
|
|
body |
string Request body payload. |
|
headers |
object (map<string, string>) HTTP headers to include. |
|
query |
object (map<string, string>) Query string parameters to include. |
|
useServiceAccount |
boolean Use MCP Gateway service account credentials for the request. |
McpCall
|
Field |
Description |
|
url |
string Required field. MCP endpoint base URL. (required) |
|
toolCall |
Includes only one of the fields |
|
transport |
enum (Transport) Transport to use for MCP communication.
|
|
unauthorized |
object Includes only one of the fields Authorization mode for requests to the MCP endpoint. |
|
header |
Includes only one of the fields Authorization mode for requests to the MCP endpoint. |
|
serviceAccount |
object Includes only one of the fields Authorization mode for requests to the MCP endpoint. |
|
forwardHeaders |
object (map<string, string>) Headers from the incoming request to forward downstream by name. |
ToolCall
|
Field |
Description |
|
toolName |
string Required field. Name of the tool to invoke on the MCP endpoint. (required) |
|
parametersJson |
string JSON-encoded parameters to pass to the tool. |
HeaderAuthorization
|
Field |
Description |
|
headerName |
string Name of the authorization header to send. |
|
headerValue |
string Value of the authorization header to send. |
GrpcCall
|
Field |
Description |
|
endpoint |
string Required field. gRPC server endpoint, e.g., host:port. (required) |
|
method |
string Required field. Fully qualified gRPC method name, e.g., package.Service/Method. (required) |
|
useServiceAccount |
boolean Use MCP Gateway service account for authentication. |
|
body |
string Request body payload for the call. |
|
headers |
object (map<string, string>) gRPC/HTTP headers to include with the call. |
StartWorkflow
|
Field |
Description |
|
workflowId |
string Required field. ID of the Workflow to start. (required) |
|
inputJson |
string JSON-encoded workflow input payload. |
|
mode |
enum (Mode) Execution mode for the workflow.
|
LogOptions
|
Field |
Description |
|
disabled |
boolean Is logging from MCP Gateway disabled. |
|
logGroupId |
string ID of the logging group which should be used for MCP Gateway logs. Includes only one of the fields |
|
folderId |
string ID of the folder which default logging group should be used for MCP Gateway logs. Includes only one of the fields |
|
minLevel |
enum (Level) Minimum logs level. See LogLevel.Level for details.
|
Response
HTTP Code: 200 - OK
{
"id": "string",
"description": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"done": "boolean",
"metadata": {
"mcpGatewayId": "string",
"folderId": "string"
},
// Includes only one of the fields `error`, `response`
"error": {
"code": "integer",
"message": "string",
"details": [
"object"
]
},
"response": {
"id": "string",
"folderId": "string",
"tools": [
{
"name": "string",
"description": "string",
"inputJsonSchema": "string",
"action": {
// Includes only one of the fields `functionCall`, `containerCall`, `httpCall`, `mcpCall`, `grpcCall`, `startWorkflow`
"functionCall": {
"functionId": "string",
"tag": "string"
},
"containerCall": {
"containerId": "string",
"path": "string",
"method": "string",
"body": "string",
"headers": "object",
"query": "object"
},
"httpCall": {
"url": "string",
"method": "string",
"body": "string",
"headers": "object",
"query": "object",
"useServiceAccount": "boolean"
},
"mcpCall": {
"url": "string",
// Includes only one of the fields `toolCall`
"toolCall": {
"toolName": "string",
"parametersJson": "string"
},
// end of the list of possible fields
"transport": "string",
// Includes only one of the fields `unauthorized`, `header`, `serviceAccount`
"unauthorized": "object",
"header": {
"headerName": "string",
"headerValue": "string"
},
"serviceAccount": "object",
// end of the list of possible fields
"forwardHeaders": "object"
},
"grpcCall": {
"endpoint": "string",
"method": "string",
"useServiceAccount": "boolean",
"body": "string",
"headers": "object"
},
"startWorkflow": {
"workflowId": "string",
"inputJson": "string",
"mode": "string"
}
// end of the list of possible fields
}
}
],
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "object",
"status": "string",
"baseDomain": "string",
"logOptions": {
"disabled": "boolean",
// Includes only one of the fields `logGroupId`, `folderId`
"logGroupId": "string",
"folderId": "string",
// end of the list of possible fields
"minLevel": "string"
},
"serviceAccountId": "string",
"networkId": "string",
"cloudId": "string",
"public": "boolean"
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
|
Field |
Description |
|
id |
string ID of the operation. |
|
description |
string Description of the operation. 0-256 characters long. |
|
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
|
createdBy |
string ID of the user or service account who initiated the operation. |
|
modifiedAt |
string (date-time) The time when the Operation resource was last modified. String in RFC3339 To work with values in this field, use the APIs described in the |
|
done |
boolean If the value is |
|
metadata |
Service-specific metadata associated with the operation. |
|
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
|
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
CreateMcpGatewayMetadata
|
Field |
Description |
|
mcpGatewayId |
string Required field. ID of the MCP Gateway being created. |
|
folderId |
string Required field. ID of the folder containing the MCP Gateway. |
Status
The error result of the operation in case of failure or cancellation.
|
Field |
Description |
|
code |
integer (int32) Error code. An enum value of google.rpc.Code |
|
message |
string An error message. |
|
details[] |
object A list of messages that carry the error details. |
McpGateway
|
Field |
Description |
|
id |
string Required field. ID of the MCP Gateway. Generated at creation time. |
|
folderId |
string Required field. ID of the folder that the MCP Gateway belongs to. |
|
tools[] |
Tools of the MCP Gateway. |
|
createdAt |
string (date-time) Required field. Creation timestamp for the MCP Gateway. String in RFC3339 To work with values in this field, use the APIs described in the |
|
name |
string Required field. Name of the MCP Gateway. |
|
description |
string Description of the MCP Gateway. |
|
labels |
object (map<string, string>) MCP Gateway labels as |
|
status |
enum (Status) Status of the MCP Gateway.
|
|
baseDomain |
string Base domain of the MCP Gateway. |
|
logOptions |
Log options for the MCP Gateway. |
|
serviceAccountId |
string ID of the Service Account which will be used for resource access in MCP Gateway call. |
|
networkId |
string ID of the VPC network MCP Gateway will be executed in, in order to access private resources. |
|
cloudId |
string Required field. ID of the cloud that the MCP Gateway belongs to. |
|
public |
boolean Publicity of the MCP Gateway. Public MCP Gateway can be accessed by anybody. |
McpTool
|
Field |
Description |
|
name |
string Required field. Name of the tool. The maximum string length in characters is 128. Value must match the regular expression |
|
description |
string Description of the tool. The maximum string length in characters is 4000. |
|
inputJsonSchema |
string JSON Schema describing tool input. |
|
action |
Required field. Action to perform when this tool is invoked. |
McpToolAction
|
Field |
Description |
|
functionCall |
Call Serverless Function. Includes only one of the fields |
|
containerCall |
Call Serverless Container. Includes only one of the fields |
|
httpCall |
Send HTTP request. Includes only one of the fields |
|
mcpCall |
Call MCP Gateway. Includes only one of the fields |
|
grpcCall |
Call gRPC endpoint. Server must support gRPC reflection. Includes only one of the fields |
|
startWorkflow |
Start Workflow. Includes only one of the fields |
FunctionCall
|
Field |
Description |
|
functionId |
string Required field. ID of serverless function to call. |
|
tag |
string Tag of serverless function. If empty, $latest tag will be used. |
ContainerCall
|
Field |
Description |
|
containerId |
string Required field. ID of serverless container to call. |
|
path |
string Relative request path inside the container. |
|
method |
enum (HttpMethod) HTTP method to use for the request.
|
|
body |
string Request body to send to the container. |
|
headers |
object (map<string, string>) HTTP headers to include in the request. |
|
query |
object (map<string, string>) Query string parameters to include in the request. |
HttpCall
|
Field |
Description |
|
url |
string Required field. Absolute URL to send the request to. (required) |
|
method |
enum (HttpMethod) HTTP method to use.
|
|
body |
string Request body payload. |
|
headers |
object (map<string, string>) HTTP headers to include. |
|
query |
object (map<string, string>) Query string parameters to include. |
|
useServiceAccount |
boolean Use MCP Gateway service account credentials for the request. |
McpCall
|
Field |
Description |
|
url |
string Required field. MCP endpoint base URL. (required) |
|
toolCall |
Includes only one of the fields |
|
transport |
enum (Transport) Transport to use for MCP communication.
|
|
unauthorized |
object Includes only one of the fields Authorization mode for requests to the MCP endpoint. |
|
header |
Includes only one of the fields Authorization mode for requests to the MCP endpoint. |
|
serviceAccount |
object Includes only one of the fields Authorization mode for requests to the MCP endpoint. |
|
forwardHeaders |
object (map<string, string>) Headers from the incoming request to forward downstream by name. |
ToolCall
|
Field |
Description |
|
toolName |
string Required field. Name of the tool to invoke on the MCP endpoint. (required) |
|
parametersJson |
string JSON-encoded parameters to pass to the tool. |
HeaderAuthorization
|
Field |
Description |
|
headerName |
string Name of the authorization header to send. |
|
headerValue |
string Value of the authorization header to send. |
GrpcCall
|
Field |
Description |
|
endpoint |
string Required field. gRPC server endpoint, e.g., host:port. (required) |
|
method |
string Required field. Fully qualified gRPC method name, e.g., package.Service/Method. (required) |
|
useServiceAccount |
boolean Use MCP Gateway service account for authentication. |
|
body |
string Request body payload for the call. |
|
headers |
object (map<string, string>) gRPC/HTTP headers to include with the call. |
StartWorkflow
|
Field |
Description |
|
workflowId |
string Required field. ID of the Workflow to start. (required) |
|
inputJson |
string JSON-encoded workflow input payload. |
|
mode |
enum (Mode) Execution mode for the workflow.
|
LogOptions
|
Field |
Description |
|
disabled |
boolean Is logging from MCP Gateway disabled. |
|
logGroupId |
string ID of the logging group which should be used for MCP Gateway logs. Includes only one of the fields |
|
folderId |
string ID of the folder which default logging group should be used for MCP Gateway logs. Includes only one of the fields |
|
minLevel |
enum (Level) Minimum logs level. See LogLevel.Level for details.
|