智信-agent
  1. MCP管理
智信-agent
  • 文件分析
    • 文件解析接口
      POST
    • 文本分段测试接口
      POST
    • 二进制文件
      POST
  • 知识库管理
    • 知识库初始化
      POST
    • 知识库召回测试
      POST
    • 知识库查询
      POST
    • 知识库文件添加
      POST
  • 工作流
    • AI生成prompt
      POST
    • 工作流运行
      POST
    • 单节点运行
      POST
    • 工作流保存接口
      POST
  • MCP管理
    • 建立MCP服务器
      POST
    • MCP服务器工具的添加
      POST
    • MCP服务器工具的删除
      POST
    • MCP服务器工具的修改
      POST
    • 修改服务器名称和描述
      POST
    • 关闭MCP服务器
      POST
    • 查看所有的工具
      POST
    • 查询当前活跃的mcp服务器信息
      GET
    • 使用指定工具
      POST
  • 数据库开发
    • 数据库内部接口
      • 接口整合
      • 自然语言及SQL执行
      • schma查询
      • 单表的字段描述查询
      • all
    • 数据库工作流运行
      • 数据库工作流保存
      • 数据库单节点运行
  • mineru
    POST
  1. MCP管理

MCP服务器工具的删除

开发中
开发环境
http://172.29.50.10:2333
开发环境
http://172.29.50.10:2333
POST
http://192.168.62.73:5004/server/tool/delete

请求参数

Body 参数application/json
tool_name
array[string]
工具名称列表
必需
待删除的工具列表
config
string 
config文件
必需
user_id
string 
用户id‘
必需
data
string 
该工具集的openapi文档
必需
示例
{
  "user_id": "001",
  "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": {
    "transport": "streamable-http",
    "url": "http://127.0.0.1:58922/mcp"
  },
  "tool_name": [
    "createUser"
  ]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://192.168.62.73:5004/server/tool/delete' \
--header 'Content-Type: application/json' \
--data-raw '{
  "user_id": "001",
  "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": {
    "transport": "streamable-http",
    "url": "http://127.0.0.1:58922/mcp"
  },
  "tool_name": [
    "createUser"
  ]
}'

返回响应

🟢200成功
application/json
Body
status
string 
状态
必需
示例
{
    "message": "工具已删除",
    "status": "success"
}
修改于 2025-06-20 08:36:12
上一页
MCP服务器工具的添加
下一页
MCP服务器工具的修改
Built with