{
"user_id": "001",
"old_port":"57430",
"data": "openapi: 3.1.0\ninfo:\n title: Example API\n version: 1.0.0\n description: API示例文档\nservers:\n - url: https://api.example.com/v1\n description: 生产环境\npaths:\n /users:\n post:\n summary: 创建用户\n operationId: createUser\n tags: [Users]\n parameters:\n - name: X-Request-ID\n in: header\n description: 请求唯一ID\n required: true\n schema:\n type: string\n format: uuid\n - name: Authorization\n in: header\n description: Bearer token\n required: true\n schema:\n type: string\n example: Bearer <token>\n requestBody:\n description: 用户数据\n required: true\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/User\"\n examples:\n basicUser:\n summary: 基础用户示例\n value:\n name: \"John Doe\"\n email: \"john@example.com\"\n responses:\n '201':\n description: 用户创建成功\n headers:\n Location:\n description: 新用户资源URL\n schema:\n type: string\n format: uri\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/UserResponse\"\n '400':\n description: 无效请求\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/Error\"\n security:\n - BearerAuth: []\ncomponents:\n schemas:\n User:\n type: object\n required: [name, email]\n properties:\n name:\n type: string\n email:\n type: string\n format: email\n UserResponse:\n type: object\n properties:\n id:\n type: string\n createdAt:\n type: string\n format: date-time\n Error:\n type: object\n properties:\n code:\n type: integer\n message:\n type: string\n securitySchemes:\n BearerAuth:\n type: http\n scheme: bearer\n bearerFormat: JWT\n examples:\n InvalidEmail:\n value:\n code: 400\n message: \"邮箱格式无效\""
}
curl --location --request POST 'http://192.168.62.73:5004/client/server/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_id": "001",
"old_port":"57430",
"data": "openapi: 3.1.0\ninfo:\n title: Example API\n version: 1.0.0\n description: API示例文档\nservers:\n - url: https://api.example.com/v1\n description: 生产环境\npaths:\n /users:\n post:\n summary: 创建用户\n operationId: createUser\n tags: [Users]\n parameters:\n - name: X-Request-ID\n in: header\n description: 请求唯一ID\n required: true\n schema:\n type: string\n format: uuid\n - name: Authorization\n in: header\n description: Bearer token\n required: true\n schema:\n type: string\n example: Bearer <token>\n requestBody:\n description: 用户数据\n required: true\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/User\"\n examples:\n basicUser:\n summary: 基础用户示例\n value:\n name: \"John Doe\"\n email: \"john@example.com\"\n responses:\n '\''201'\'':\n description: 用户创建成功\n headers:\n Location:\n description: 新用户资源URL\n schema:\n type: string\n format: uri\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/UserResponse\"\n '\''400'\'':\n description: 无效请求\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/Error\"\n security:\n - BearerAuth: []\ncomponents:\n schemas:\n User:\n type: object\n required: [name, email]\n properties:\n name:\n type: string\n email:\n type: string\n format: email\n UserResponse:\n type: object\n properties:\n id:\n type: string\n createdAt:\n type: string\n format: date-time\n Error:\n type: object\n properties:\n code:\n type: integer\n message:\n type: string\n securitySchemes:\n BearerAuth:\n type: http\n scheme: bearer\n bearerFormat: JWT\n examples:\n InvalidEmail:\n value:\n code: 400\n message: \"邮箱格式无效\""
}'
{
"config": "{\"url\": \"http://172.29.50.10:33427/mcp\", \"transport\": \"streamable-http\", \"server_name\": \"Example API\", \"server_description\": \"API示例文档\"}",
"pid": 8,
"status": "success"
}