PUT /accounts/{account_id}/access/ai-controls/mcp/portals/{id}
Updates an MCP portal configuration.
Servers
- https://api.cloudflare.com/client/v4
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id |
String | Yes | |
account_id |
String | Yes |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
secure_web_gateway |
Boolean | No |
Route outbound MCP traffic through Zero Trust Secure Web Gateway. Default value: false |
name |
String | No |
Display name for the MCP portal. |
description |
String | No |
Optional description of the MCP portal. |
allow_code_mode |
Boolean | No |
Deprecated: use |
code_mode |
String | No |
Code Mode policy for this portal. Valid values:
|
servers[] |
Array | No |
MCP servers attached to the portal and their portal-specific settings. |
servers[].default_disabled |
Boolean | No |
Disable this server by default for clients connecting through the portal. |
servers[].on_behalf |
Boolean | No |
Use end-user OAuth credentials when connecting this server to the portal. |
servers[].updated_tools[] |
Array | No |
Portal-specific tool overrides. |
servers[].updated_tools[].name |
String | Yes |
Name of the tool or prompt capability to override. |
servers[].updated_tools[].description |
String | No |
Custom description exposed for the capability. |
servers[].updated_tools[].enabled |
Boolean | No |
Whether the capability is available through the MCP server. |
servers[].updated_tools[].alias |
String | No |
Custom name exposed for the capability. |
servers[].updated_prompts[] |
Array | No |
Portal-specific prompt overrides. |
servers[].updated_prompts[].name |
String | Yes |
Name of the tool or prompt capability to override. |
servers[].updated_prompts[].description |
String | No |
Custom description exposed for the capability. |
servers[].updated_prompts[].enabled |
Boolean | No |
Whether the capability is available through the MCP server. |
servers[].updated_prompts[].alias |
String | No |
Custom name exposed for the capability. |
servers[].server_id |
String | Yes |
Unique identifier for the MCP server. |
hostname |
String | No |
Hostname where the MCP portal is available. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.