
kadykov/mcp-openapi-schema-explorer
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
кадыков/mcp-openapi-schema-explorer - кандидат на сервер MCP, импортированный из https://github.com/kadykov/mcp-openapi-schema-explorer.
Обзор
кадыков/mcp-openapi-schema-explorer - кандидат на сервер MCP, импортированный из https://github.com/kadykov/mcp-openapi-schema-explorer.
Обзор (машинный перевод)
Сервер MCP (Model Context Protocol), обеспечивающий токен-эффективный доступ к спецификациям OpenAPI (v3.0) и Swagger (v2.0) через MCP Resource Templates.
##Цель проекта
Основная цель этого проекта - позволить клиентам MCP (например, Cline или Claude Desktop) исследовать структуру и детали больших спецификаций OpenAPI без необходимости загружать весь файл в контекстное окно LLM. Это достигается путем раскрытия частей спецификации через MCP Resource Templates, которые обеспечивают параметризованные шаблоны доступа для исследования данных только для чтения.
Этот сервер поддерживает спецификации загрузки как из локальных путей файлов, так и из удаленных URL-адресов HTTP/HTTPS. При загрузке спецификации Swagger v2.0 автоматически преобразуются в OpenAPI v3.0.
Примечание: ** Этот сервер предоставляет ** шаблоны ресурсов (не предварительно перечисленные ресурсы). Клиенты MCP получают доступ к этим шаблонам с помощью метода протокола resources/templates/list. Для получения дополнительной информации о шаблонах ресурсов см. документацию MCP Resource Templates.
Почему MCP Resource Templates?
Модельный контекстный протокол определяет как Ресурсы, так и Инструменты.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
MCP OpenAPI Schema Explorer
An MCP (Model Context Protocol) server that provides token-efficient access to OpenAPI (v3.0) and Swagger (v2.0) specifications via MCP Resource Templates.
Project Goal
The primary goal of this project is to allow MCP clients (like Cline or Claude Desktop) to explore the structure and details of large OpenAPI specifications without needing to load the entire file into an LLM’s context window. It achieves this by exposing parts of the specification through MCP Resource Templates, which provide parameterized access patterns for read-only data exploration.
This server supports loading specifications from both local file paths and remote HTTP/HTTPS URLs. Swagger v2.0 specifications are automatically converted to OpenAPI v3.0 upon loading.
Note: This server provides resource templates (not pre-enumerated resources). MCP clients access these templates through the
resources/templates/listprotocol method. For more information about resource templates, see the MCP Resource Templates documentation.
Why MCP Resource Templates?
The Model Context Protocol defines both Resources and Tools.
- Resources: Represent data sources (like files, API responses). They are ideal for read-only access and exploration by MCP clients.
- Resource Templates: A special type of resource that uses parameterized URIs (e.g.,
openapi://paths/{path}/{method}), allowing dynamic access without pre-enumerating all possible values.
- Resource Templates: A special type of resource that uses parameterized URIs (e.g.,
- Tools: Represent executable actions or functions, often used by LLMs to perform tasks or interact with external systems.
Установка
npx -y mcp-openapi-schema-explorer@latest <path-or-url-to-spec> --output-format yamlКонфигурация
{
"mcpServers": {
"My API Spec (npx)": {
"command": "npx",
"args": [
"-y",
"mcp-openapi-schema-explorer@latest",
"<path-or-url-to-spec>",
"--output-format",
"yaml"
],
"env": {}
}
}
}