查询mcp server列表

最近更新时间:2026-03-23 17:44:01

我的收藏

1. 接口描述

接口请求域名: apis.tencentcloudapi.com 。

查询mcp server列表

默认接口请求频率限制:20次/秒。

推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:DescribeMcpServers。
Version String 公共参数,本接口取值:2024-08-01。
Region String 公共参数,详见产品支持的 地域列表
Limit Integer 分页大小
示例值:10
Offset Integer 分页偏移量
示例值:0
InstanceID String 实例ID
示例值:ins-xxxxxxxx
Statuses.N Array of String 状态数组:normal正常状态,disabled下线状态
示例值:["normal"]
Keyword String 关键词
示例值:filter
IDs.N Array of String 服务ID数组
示例值:["mcp-xxxxxxxx"]
Modes.N Array of String 模式:proxy代理模式; wrap封装模式;
示例值:["wrap"]
McpSecurityRuleID String 绑定的安全规则ID
示例值:mc-xxxxxxxx
McpSecurityRuleAct String 绑定安全规则的处置动作(填写时McpSecurityRuleID得必填)
示例值:filter
PluginID String 已绑定插件id
示例值:plg-xxxxxxxx

3. 输出参数

参数名称 类型 描述
Data DescribeMcpServersResponseVO mcp server列表
RequestId String 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。

4. 示例

示例1 查询mcp server列表

查询mcp server列表

输入示例

POST / HTTP/1.1
Host: apis.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeMcpServers
<公共请求参数>

{
    "InstanceID": "ins-9c4a1db3",
    "Offset": 0,
    "Limit": 10,
    "Statuses": [],
    "Modes": [],
    "Keyword": "test"
}

输出示例

{
    "Response": {
        "Data": {
            "Total": 1,
            "Items": [
                {
                    "AppID": 1300273807,
                    "Uin": "700001136234",
                    "InstanceID": "ins-9c4a1db3",
                    "Name": "test",
                    "Description": "",
                    "LabelIDs": [],
                    "CategoryIDs": [],
                    "Mode": "proxy",
                    "McpVersion": "2024-11-05",
                    "WrapServices": [],
                    "TargetSelect": "random",
                    "TargetHosts": [
                        {
                            "Host": "127.0.0.1:3002",
                            "Rank": 10
                        }
                    ],
                    "HttpProtocolType": "http",
                    "CheckTargetCertsError": false,
                    "TargetPath": "/sse",
                    "InvokeLimitConfigStatus": false,
                    "InvokeLimitConfig": {
                        "Type": "tokenBucket",
                        "TokenBucketMaxNum": 20000,
                        "TokenBucketRate": 1,
                        "FunnelMaxNum": 20000,
                        "FunnelRate": 1,
                        "SlidingWindowMaxNum": 20000,
                        "SlidingWindowSize": 1,
                        "TimeWindow": 20000,
                        "TimeWindowInterval": 1
                    },
                    "IpWhiteStatus": false,
                    "IpWhiteConfig": {
                        "Ips": [],
                        "EffectType": "always",
                        "EffectTimes": [],
                        "Comment": ""
                    },
                    "IpBlackStatus": false,
                    "IpBlackConfig": {
                        "Ips": [],
                        "EffectType": "always",
                        "EffectTimes": [],
                        "Comment": ""
                    },
                    "CustomHttpHost": "",
                    "HttpHostType": "targetHost",
                    "Timeout": 60,
                    "ID": "mcp-8d5c4195",
                    "Status": "disabled",
                    "Url": "http://test.com/_llmsgw_/mcp?server=mcp-8d5c4195&paasid=app-83a7a4aa",
                    "App": {
                        "ID": "app-83a7a4aa",
                        "Name": "test"
                    },
                    "Catalogs": [],
                    "Labels": [],
                    "ToolNum": -1,
                    "CreateTime": "2025-05-20T08:24:18.702Z",
                    "LastUpdateTime": "2025-05-20T08:42:05.916Z",
                    "McpSecurityRulesVO": [
                        {
                            "ID": "mr-2bdbbf32",
                            "Type": "sensitive_data_check",
                            "BodyType": "",
                            "IconType": "code",
                            "Name": "验证码",
                            "Description": "识别mcp服务调用过程中,响应参数可能存在的验证码",
                            "RiskLevel": "middle",
                            "VersionNumber": "20250509_v1",
                            "Status": "open",
                            "Act": "watch",
                            "SupportActs": [
                                "watch",
                                "desensitization",
                                "filter"
                            ]
                        }
                    ]
                }
            ]
        },
        "RequestId": "3fcd8e59-0c84-434e-9f07-9091f1de997d"
    }
}

5. 开发者资源

腾讯云 API 平台

腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。

API Inspector

用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。

SDK

云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。

命令行工具

6. 错误码

该接口暂无业务逻辑相关的错误码,其他错误码详见 公共错误码