Core - Retrieve an MCP gateway
curl --get 'https://router.toqan.ai/eu/v2/mcp-gateways/01JQ0M8W4T5YB2Q7N1F6K3PZRC' \
--header "Authorization: Bearer $TOQAN_API_KEY"
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://router.toqan.ai/eu/v2/mcp-gateways/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://router.toqan.ai/eu/v2/mcp-gateways/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"mcp_gateway": {
"id": "<string>",
"key": "<string>",
"display_name": "Production Gateway",
"description": "<string>",
"server_links": [
{
"mcp_server_id": "<string>",
"alias": "<string>",
"tool_exposure": {
"mode": "MCP_TOOL_EXPOSURE_MODE_ALL",
"read_only": true,
"tool_ids": [
"<string>"
],
"excluded_tool_ids": [
"<string>"
]
},
"enabled": true,
"skill_exposure": {
"mode": "MCP_TOOL_EXPOSURE_MODE_ALL",
"skill_uris": [
"<string>"
]
},
"resource_exposure": {
"mode": "MCP_TOOL_EXPOSURE_MODE_ALL",
"resource_ids": [
"<string>"
],
"resource_template_ids": [
"<string>"
]
}
}
],
"tool_naming": "MCP_TOOL_NAMING_PREFIX_WITH_SERVER_KEY",
"public_url": "<string>",
"created": "<string>",
"updated": "<string>",
"exposed_tools_count": 123,
"mode": "MCP_GATEWAY_MODE_CODE",
"sharing": {
"all_projects": {},
"selected": {
"project_ids": [
"<string>"
]
},
"allow_version_pin": true,
"allow_fork": true,
"auto_grant_new_projects": true
},
"plugins": [
{
"id": "<string>",
"language": "<string>",
"entities": [
"<string>"
],
"on_failure": "<string>",
"threshold": 123,
"mask": [
"<string>"
],
"regions": [
"<string>"
],
"entity_thresholds": {}
}
],
"skill_ids": [
"<string>"
],
"icons": [
{
"src": "<string>",
"mime_type": "<string>",
"sizes": [
"<string>"
],
"theme": "<string>"
}
],
"website_url": "<string>",
"guardrails": [
{
"id": "<string>",
"execute_on": "<string>",
"sample_rate": 123,
"is_guardrail": true,
"options": {}
}
],
"created_by_id": "<string>"
}
}{
"message": "<string>",
"code": 123,
"details": [
"<unknown>"
]
}{
"message": "<string>",
"code": 123,
"details": [
"<unknown>"
]
}MCP Gateways
Retrieve an MCP gateway
Retrieves the details of an existing MCP gateway by its unique ID.
GET
/
v2
/
mcp-gateways
/
{id}
Core - Retrieve an MCP gateway
curl --get 'https://router.toqan.ai/eu/v2/mcp-gateways/01JQ0M8W4T5YB2Q7N1F6K3PZRC' \
--header "Authorization: Bearer $TOQAN_API_KEY"
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://router.toqan.ai/eu/v2/mcp-gateways/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://router.toqan.ai/eu/v2/mcp-gateways/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"mcp_gateway": {
"id": "<string>",
"key": "<string>",
"display_name": "Production Gateway",
"description": "<string>",
"server_links": [
{
"mcp_server_id": "<string>",
"alias": "<string>",
"tool_exposure": {
"mode": "MCP_TOOL_EXPOSURE_MODE_ALL",
"read_only": true,
"tool_ids": [
"<string>"
],
"excluded_tool_ids": [
"<string>"
]
},
"enabled": true,
"skill_exposure": {
"mode": "MCP_TOOL_EXPOSURE_MODE_ALL",
"skill_uris": [
"<string>"
]
},
"resource_exposure": {
"mode": "MCP_TOOL_EXPOSURE_MODE_ALL",
"resource_ids": [
"<string>"
],
"resource_template_ids": [
"<string>"
]
}
}
],
"tool_naming": "MCP_TOOL_NAMING_PREFIX_WITH_SERVER_KEY",
"public_url": "<string>",
"created": "<string>",
"updated": "<string>",
"exposed_tools_count": 123,
"mode": "MCP_GATEWAY_MODE_CODE",
"sharing": {
"all_projects": {},
"selected": {
"project_ids": [
"<string>"
]
},
"allow_version_pin": true,
"allow_fork": true,
"auto_grant_new_projects": true
},
"plugins": [
{
"id": "<string>",
"language": "<string>",
"entities": [
"<string>"
],
"on_failure": "<string>",
"threshold": 123,
"mask": [
"<string>"
],
"regions": [
"<string>"
],
"entity_thresholds": {}
}
],
"skill_ids": [
"<string>"
],
"icons": [
{
"src": "<string>",
"mime_type": "<string>",
"sizes": [
"<string>"
],
"theme": "<string>"
}
],
"website_url": "<string>",
"guardrails": [
{
"id": "<string>",
"execute_on": "<string>",
"sample_rate": 123,
"is_guardrail": true,
"options": {}
}
],
"created_by_id": "<string>"
}
}{
"message": "<string>",
"code": 123,
"details": [
"<unknown>"
]
}{
"message": "<string>",
"code": 123,
"details": [
"<unknown>"
]
}Guia relacionado: guia de Gateways MCP. Consulte o guia de Gateways MCP para um passo a passo com exemplos.

