MCP Gateway Service, REST: McpGateway.Get
Retrieves the specified MCP Gateway.
HTTP request
GET https://serverless-mcp-gateway.api.cloud.yandex.net/mcpgateway/v1/mcpGateways/{mcpGatewayId}
Path parameters
|
Field |
Description |
|
mcpGatewayId |
string Required field. ID of the MCP Gateway. |
Response
HTTP Code: 200 - OK
{
"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"
}
|
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.
|