- 文档首页
AgentKit
AgentKit
用户指南
网关
附录
MCP 服务 API 文件规范与示例
MCP 服务 API 文件规范与示例
AgentKit 支持将存量API快速转换为 MCP 服务,方便智能体直接调用。本文将介绍 API 转换为 MCP 服务所需的文件规范,并提供代码示例。
API 文件需要符合以下规范。
JSON 格式的 POST 请求示例如下。
"operationId": "weather",
"summary": "check the weather",
"description": "weather",
"description": "weather",
最近更新时间:2026.09.20 19:18:57