ModifyDataAgentMcp
接口说明
修改 MCP 配置信息
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| WorkspaceId |
string |
是 |
工作空间 ID |
e3p***v4 |
| McpServerId |
string |
是 |
MCP Server 的 Id |
6126jk***h2 |
| Name |
string |
否 |
MCP 名称 |
Efficiency Diagnostics V3 |
| Description |
string |
否 |
产物的简要描述,可能为空。 |
project name pass the check |
| Enable |
boolean |
否 |
是否可用 |
true |
| Headers |
string |
否 |
请求头设置 |
{"Authorization":"Bearer ***"} |
| TransportType |
string |
否 |
传输通道类型。取值 streamablehttp/sse |
sse |
| Endpoint |
string |
否 |
MCP 实例的连接地址 |
http://***.com/mcp |
| NeedUidInHeader |
boolean |
否 |
请求头是否携带 aliyun uid |
true |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
67E910F2-***-695C |
| Data |
any |
返回更新后的 MCP 信息 |
{ "headers":"{}", "creator":"201***81", "gmtModified":"2026-08-04T03:17:33.000+00:00", "gmtCreated":"2026-08-04T03:17:32.000+00:00", "netType":"public", "description":"", "needUidInHeader":false, "type":0, "uuid":"83w***1cls", "workspaceUuid":"e3p***av4", "endpoint":"http://***/sse1", "enable":true, "name":"test123", "transportType":"sse", "state":"ready", "region":"cn-hangzhou" } |
| Success |
boolean |
请求是否成功,返回值如下:true:请求成功 false:请求失败 |
true |
| ErrorCode |
string |
错误码,请求异常时返回 |
DMS-DA-40114 |
| ErrorMessage |
string |
调用失败时,返回的错误信息 |
Specified parameter Tid is not valid. |
示例
正常返回示例
JSON格式
{
"RequestId": "67E910F2-***-695C",
"Data": "{\n\t\t\t\"headers\":\"{}\",\n\t\t\t\"creator\":\"201***81\",\n\t\t\t\"gmtModified\":\"2026-08-04T03:17:33.000+00:00\",\n\t\t\t\"gmtCreated\":\"2026-08-04T03:17:32.000+00:00\",\n\t\t\t\"netType\":\"public\",\n\t\t\t\"description\":\"\",\n\t\t\t\"needUidInHeader\":false,\n\t\t\t\"type\":0,\n\t\t\t\"uuid\":\"83w***1cls\",\n\t\t\t\"workspaceUuid\":\"e3p***av4\",\n\t\t\t\"endpoint\":\"http://***/sse1\",\n\t\t\t\"enable\":true,\n\t\t\t\"name\":\"test123\",\n\t\t\t\"transportType\":\"sse\",\n\t\t\t\"state\":\"ready\",\n\t\t\t\"region\":\"cn-hangzhou\"\n\t\t}",
"Success": true,
"ErrorCode": "DMS-DA-40114",
"ErrorMessage": "Specified parameter Tid is not valid."
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。