UpdateMcpServer
Updates an MCP server.
Operation description
Request description
Updates the configurations of a specified MCP server, including the service URL, transport protocol, custom request headers, and visibility settings. Fields that are not specified remain unchanged.
Note: When you modify the Visibility parameter, specify 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. Valid values:
|
SSE |
| CustomHeaders |
object |
No |
The new custom request headers in key-value pairs. |
{} |
| Visibility |
string |
No |
The new visibility level. Valid values:
|
TENANT |
| VisibilityScope |
object |
No |
The new visibility scope. Specify the corresponding fields based on the |
|
| ProjectIds |
array |
No |
The list of visible project IDs. This field takes effect when |
|
|
string |
No |
The workspace ID. |
[3162, 45766, 61258, 68916, 73279] |
|
| UserIds |
array |
No |
The list of visible user IDs. This field takes effect when |
|
|
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 details of the MCP server. |
|
| Name |
string |
The name of the MCP server. |
my-mcp-server |
| GmtCreateTime |
string |
The creation time. The value is a 13-digit number, such as |
1780555634000 |
| GmtModifiedTime |
string |
The last modification time as a millisecond 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.