查询 ApiMcpServerCore。
接口说明
该接口查询的是公开信息,不涉及账号特殊归属等信息,故不支持授权。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /apimcpservercore HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| id |
string |
是 |
唯一 id |
v6ZZ7ftCzEILW*** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| requestId |
string |
请求 ID。 |
9BFC4AC1-6BE4-5405-BDEC-CA288D404812 |
| id |
string |
API MCP Core 服务 ID。 |
v6ZZ7ftCzEILW*** |
| oauthClientId |
string |
选择自定义 OAuth 配置时的自定义 OAuth Client ID。
|
403*************370 |
| createTime |
string |
API MCP 服务器的创建时间。 |
2025-02-07T02:17:46Z |
| vpcWhitelists |
array |
每一个限定的 VPC 白名单,值为来源 VPC ID。 |
|
|
string |
每一个限定的 VPC 白名单,值为来源 VPC ID。 |
vpc-j6cgd2if5lg**0xs6m5se |
|
| enableAssumeRole |
boolean |
是否开启多账号访问。 |
true |
| assumeRoleOverridePolicy |
string |
角色扮演时的权限策略 |
{\"Version\":\"1\",\"Statement\":[]} |
| assumeRoleName |
string |
开启多账号访问进行跨账号操作时,扮演的目标账号 RAM 角色名称。 |
test |
| publicAccessType |
string |
公网访问类型:允许公网访问、不允许公网访问、继承账号配置。
|
public |
| enableCustomVpcWhitelist |
boolean |
是否开启自定义 VPC 白名单,不开启则跟随账户级别的配置。 |
true |
| urls |
object |
MCP Core 服务 连接信息。 |
|
| sse |
string |
SSE 协议连接信息。 |
https://mcpserverinner-pre.cn-zhangjiakou.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/sse |
| mcp |
string |
streamable HTTP 协议连接信息,推荐使用。 |
https://mcpserverinner-pre.cn-zhangjiakou.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/mcp |
| vpcSse |
string |
VPC 下 SSE 协议连接地址。 |
https://openapi-mcp-cn.vpc-proxy.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/sse |
| vpcMcp |
string |
VPC 下 streamable HTTP 协议连接地址。 |
https://openapi-mcp-cn.vpc-proxy.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/mcp |
| requiredRamPolicy |
string |
使用该 MCP Core 服务所需的 RAM 策略。 |
{"Version":"1","Statement":[{"Effect":"Allow","Action":["ecs:Describe*"],"Resource":"*"}]} |
示例
正常返回示例
JSON格式
{
"requestId": "\t\n9BFC4AC1-6BE4-5405-BDEC-CA288D404812\n",
"id": "v6ZZ7ftCzEILW***",
"oauthClientId": "403*************370",
"createTime": "2025-02-07T02:17:46Z",
"vpcWhitelists": [
"vpc-j6cgd2if5lg**0xs6m5se"
],
"enableAssumeRole": true,
"assumeRoleOverridePolicy": "{\\\"Version\\\":\\\"1\\\",\\\"Statement\\\":[]}",
"assumeRoleName": "test",
"publicAccessType": "public",
"enableCustomVpcWhitelist": true,
"urls": {
"sse": "https://mcpserverinner-pre.cn-zhangjiakou.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/sse",
"mcp": "https://mcpserverinner-pre.cn-zhangjiakou.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/mcp",
"vpcSse": "https://openapi-mcp-cn.vpc-proxy.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/sse",
"vpcMcp": "https://openapi-mcp-cn.vpc-proxy.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/mcp"
},
"requiredRamPolicy": "{\"Version\":\"1\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"ecs:Describe*\"],\"Resource\":\"*\"}]}"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Missing.Id | Id is mandatory for this action. | 缺少必填参数Id。 |
| 500 | InternalServerError | The request has failed due to a temporary failure of the server. | 由于服务器暂时故障,请求失败。 |
| 404 | NotFound.ApiMcpServer | Specified MCP server not found. | 指定id的MCP服务不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。