openapi-schema

mcp/openapi-schema Docker Image

OpenAPI Schema模型上下文协议(MCP)服务器,提供获取和管理OpenAPI schema组件、端点、请求/响应模式等功能的工具,用于解析和操作API规范文档。

7 次收藏下载次数: 0状态:社区镜像维护者:mcp(Model Context Protocol)仓库类型:镜像最近更新:

OpenAPI Schema MCP服务器

OpenAPI Schema模型上下文协议服务器。

https://www.anthropic.com/news/model-context-protocol

特性

属性详情
Docker镜像https://hub.docker.com/repository/docker/mcp/openapi-schema
作者https://github.com/hannesj
代码仓库https://github.com/hannesj/mcp-openapi-schema
Dockerfilehttps://github.com/slimslenderslacks/mcp-openapi-schema/blob/master/Dockerfile
Docker镜像构建方Docker Inc.
Docker Scout健康评分
验证签名COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/openapi-schema --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
许可证

可用工具(10个)

服务器提供的工具简短描述
get-component获取特定组件的详细定义
get-endpoint获取特定API端点的详细信息
get-examples获取特定组件或端点的示例
get-path-parameters获取特定路径的参数
get-request-body获取特定端点的请求体模式
get-response-schema获取特定端点、方法和状态码的响应模式
list-components列出所有模式组件(模式、参数、响应等)
list-endpoints列出所有API路径及其HTTP方法和摘要,按路径组织
list-security-schemes列出所有可用的安全方案
search-schema搜索路径、操作和模式

工具详情

Tool: get-component

获取特定组件的详细定义

参数类型描述
namestring组件名称
openapiSchemaPathstringOpenAPI模式文件的路径
typestring组件类型(如schemas、parameters、responses)

Tool: get-endpoint

获取特定API端点的详细信息

参数类型描述
methodstringHTTP方法
openapiSchemaPathstringOpenAPI模式文件的路径
pathstringAPI路径

Tool: get-examples

获取特定组件或端点的示例

参数类型描述
openapiSchemaPathstringOpenAPI模式文件的路径
typestring要检索的示例类型
componentNamestring 可选组件名称(组件示例必填)
componentTypestring 可选组件类型(组件示例必填)
methodstring 可选HTTP方法(请求/响应示例必填)
pathstring 可选API路径(请求/响应示例必填)
statusCodestring 可选状态码(响应示例用)

Tool: get-path-parameters

获取特定路径的参数

参数类型描述
openapiSchemaPathstringOpenAPI模式文件的路径
pathstringAPI路径
methodstring 可选HTTP方法

Tool: get-request-body

获取特定端点的请求体模式

参数类型描述
methodstringHTTP方法
openapiSchemaPathstringOpenAPI模式文件的路径
pathstringAPI路径

Tool: get-response-schema

获取特定端点、方法和状态码的响应模式

参数类型描述
methodstringHTTP方法
openapiSchemaPathstringOpenAPI模式文件的路径
pathstringAPI路径
statusCodestring 可选状态码

Tool: list-components

列出所有模式组件(模式、参数、响应等)

参数类型描述
openapiSchemaPathstringOpenAPI模式文件的路径

Tool: list-endpoints

列出所有API路径及其HTTP方法和摘要,按路径组织

参数类型描述
openapiSchemaPathstringOpenAPI模式文件的路径

Tool: list-security-schemes

列出所有可用的安全方案

参数类型描述
openapiSchemaPathstringOpenAPI模式文件的路径

Tool: search-schema

搜索路径、操作和模式

参数类型描述
openapiSchemaPathstringOpenAPI模式文件的路径
patternstring搜索模式(不区分大小写)

使用此MCP服务器

json
{
  "mcpServers": {
    "openapi-schema": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-v",
        "/local-directory:/local-directory",
        "mcp/openapi-schema"
      ]
    }
  }
}

https://www.docker.com/blog/the-model-context-protocol-simplifying-building-ai-apps-with-anthropic-claude-desktop-and-docker/

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 openapi-schema 镜像标签

docker pull docker.xuanyuan.run/mcp/openapi-schema:<标签>

DockerHub 原生拉取命令

docker pull mcp/openapi-schema:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告