UpdateMcpServer
Updates an MCP Server.
Operation description
Operation description
This API operation allows you to update the configuration of a specified MCP Server, including the service URL, transport protocol, custom request headers, and visibility settings. Fields that are not provided retain their existing values.
Note: When you modify the Visibility parameter, selectively provide ProjectIds or UserIds in VisibilityScope based on the visibility setting to ensure that the correct access control scope is applied.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:UpdateMcpServer |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the MCP Server to update. |
my-mcp-server |
| Url |
string |
No |
The new service URL. The URL must start with |
https://example.com/mcp/sse |
| Transport |
string |
No |
The new transport protocol. |
SSE |
| CustomHeaders |
object |
No |
The new custom request headers (key-value pairs). |
{} |
| Visibility |
string |
No |
The new visibility level. |
TENANT |
| VisibilityScope |
object |
No |
The new visibility scope. Provide the corresponding field based on the Visibility setting. |
|
| ProjectIds |
array |
No |
The list of visible project IDs. This parameter takes effect only when Visibility is set to |
|
|
string |
No |
The list of workspace IDs. |
[3162, 45766, 61258, 68916, 73279] |
|
| UserIds |
array |
No |
The list of visible user IDs. This parameter takes effect only when Visibility is set to |
|
|
string |
No |
The visible user ID. |
[123] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
824F80BA-1778-5D8A-BAFF-668A4D9C4CC7 |
| McpServer |
object |
The MCP Server details. |
|
| Name |
string |
The MCP Server name. |
my-mcp-server |
| GmtCreateTime |
string |
The creation time. The value is a 13-digit number, for example, |
1780555634000 |
| GmtModifiedTime |
string |
The last modification time, in millisecond-level timestamp. |
1780555634000 |
Examples
Success response
JSON format
{
"RequestId": "824F80BA-1778-5D8A-BAFF-668A4D9C4CC7",
"McpServer": {
"Name": "my-mcp-server",
"GmtCreateTime": "1780555634000",
"GmtModifiedTime": "1780555634000"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.