
hannesj/mcp-openapi-schema
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
hannesj/mcp-openapi-schema는 MCP 서버 후보가 https://github.com/hannesj/mcp-openapi-schema.에서 수입되었습니다
개요
hannesj/mcp-openapi-schema는 MCP 서버 후보가 https://github.com/hannesj/mcp-openapi-schema.에서 수입되었습니다
개요(AI 번역)
OpenAPI 스키마 정보를 Claude와 같은 대형 언어 모델(LLMs)에 노출하는 모델 Context Protocol (MCP) 서버. 이 서버는 LLM이 전문 도구 세트를 통해 OpenAPI 사양을 탐구하고 이해할 수 있습니다.
특징
- 명령줄 인수를 통해 지정된 OpenAPI 스키마 파일 (JSON 또는 YAML)을로드하십시오.
- API 경로, 작업, 매개 변수 및 스키마 탐색
- 상세한 요청 및 응답 schemas보기
- 구성요소 정의 및 예제 보기
- 전체 API 사양 검색
- 더 나은 LLM comprehension를 위한 YAML 체재에 있는 응답을 얻으십시오
사용법
명령줄
MCP 서버를 특정 스키마 파일로 실행:
Claude 데스크탑 통합
Claude Desktop을 사용하여이 MCP 서버를 사용하려면 claude_desktop_config.json] 구성 파일을 편집하십시오.
구성 파일의 위치:
- macOS/리눅스:
~/Library/Application Support/Claude/claude_desktop_config.json - 윈도우:
$env:AppData\Claude\claude_desktop_config.json
Claude 코드 통합
Claude Code CLI를 사용하여 MCP 서버를 사용하려면 다음 단계를 따르십시오.
-
**클래드 코드에 OpenAPI Schema MCP 서버를 추가 **
-
** MCP 서버를 등록 **
-
명세.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
OpenAPI Schema Model Context Protocol Server
A Model Context Protocol (MCP) server that exposes OpenAPI schema information to Large Language Models (LLMs) like Claude. This server allows an LLM to explore and understand OpenAPI specifications through a set of specialized tools.
Features
- Load any OpenAPI schema file (JSON or YAML) specified via command line argument
- Explore API paths, operations, parameters, and schemas
- View detailed request and response schemas
- Look up component definitions and examples
- Search across the entire API specification
- Get responses in YAML format for better LLM comprehension
Usage
Command Line
Run the MCP server with a specific schema file:
# Use the default openapi.yaml in current directory
npx -y mcp-openapi-schema
# Use a specific schema file (relative path)
npx -y mcp-openapi-schema ../petstore.json
# Use a specific schema file (absolute path)
npx -y mcp-openapi-schema /absolute/path/to/api-spec.yaml
# Show help
npx -y mcp-openapi-schema --help
Claude Desktop Integration
To use this MCP server with Claude Desktop, edit your claude_desktop_config.json configuration file:
{
"mcpServers": {
"OpenAPI Schema": {
"command": "npx",
"args": ["-y", "mcp-openapi-schema", "/ABSOLUTE/PATH/TO/openapi.yaml"]
}
}
}
Location of the configuration file:
- macOS/Linux:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
$env:AppData\Claude\claude_desktop_config.json
Claude Code Integration
To use this MCP server with Claude Code CLI, follow these steps:
-
Add the OpenAPI Schema MCP server to Claude Code
# Basic syntax claude mcp add openapi-schema npx -y mcp-openapi-schema # Example with specific schema claude mcp add petstore-api npx -y mcp-openapi-schema ~/Projects/petstore.yaml -
Verify the MCP server is registered
# List all configured servers claude mcp list # Get details for your OpenAPI schema server claude mcp get openapi-schema -
Remove the server if needed
claude mcp remove openapi-schema -
Use the tool in Claude Code
Once configured, you can invoke the tool in your Claude Code session by asking questions about the OpenAPI schema.
Tips:
- Use the
-sor--scopeflag withproject(default) orglobalto specify where the configuration is stored - Add multiple MCP servers for different APIs with different names
MCP Tools
The server provides the following tools for LLMs to interact with OpenAPI schemas:
list-endpoints: Lists all API paths and their HTTP methods with summaries in a nested object structureget-endpoint: Gets detailed information about a specific endpoint including parameters and responsesget-request-body: Gets the request body schema for a specific endpoint and method
설치
npx -y mcp-openapi-schema /ABSOLUTE/PATH/TO/openapi.yaml설정
{
"mcpServers": {
"OpenAPI Schema": {
"command": "npx",
"args": ["-y", "mcp-openapi-schema", "/ABSOLUTE/PATH/TO/openapi.yaml"]
}
}
}