← スキル一覧に戻る

api-schema-analyzer
by vanman2024
⭐ 0🍴 0📅 2026年1月25日
SKILL.md
name: api-schema-analyzer description: Analyze OpenAPI and Postman schemas for MCP tool generation. Use when analyzing API specifications, extracting endpoint information, generating tool signatures, or when user mentions OpenAPI, Swagger, API schema, endpoint analysis. allowed-tools: Bash, Read, Write
API Schema Analyzer
This skill analyzes OpenAPI/Swagger and Postman collection schemas to extract endpoint information for generating MCP tools.
Instructions
Analyzing OpenAPI Schemas
-
Load OpenAPI Spec
- Use script:
scripts/analyze-openapi.py <openapi.json|yaml> - Extracts: endpoints, methods, parameters, request/response schemas
- Use script:
-
Generate Tool Signatures
- Use script:
scripts/generate-tool-signatures.py <openapi.json> --lang=python|typescript - Creates: Function signatures with type hints from schema
- Use script:
Analyzing Postman Collections
-
Parse Collection
- Use script:
scripts/analyze-postman.py <collection.json> - Extracts: requests, parameters, headers, auth requirements
- Use script:
-
Map to MCP Tools
- Use script:
scripts/map-to-mcp-tools.py <collection.json> --output=tools.json - Creates: MCP tool definitions with parameter mapping
- Use script:
Available Scripts
scripts/analyze-openapi.py- Parse OpenAPI specs (v2, v3)scripts/analyze-postman.py- Parse Postman collectionsscripts/generate-tool-signatures.py- Generate function signaturesscripts/map-to-mcp-tools.py- Map API endpoints to MCP toolsscripts/extract-schemas.sh- Extract request/response schemas
Examples
Example 1: Analyze OpenAPI Spec
# Extract all endpoints and parameters
./scripts/analyze-openapi.py api-spec.json
# Generate Python tool signatures
./scripts/generate-tool-signatures.py api-spec.json --lang=python
Example 2: Map Postman to MCP
# Analyze Postman collection
./scripts/analyze-postman.py my-api.json
# Generate MCP tool mappings
./scripts/map-to-mcp-tools.py my-api.json --output=mcp-tools.json
Requirements
- Python 3.7+ with
pyyaml,jsonschemapackages - Valid OpenAPI v2/v3 spec or Postman collection
- jq for JSON processing
Success Criteria
- ✅ Schema parsed successfully
- ✅ All endpoints extracted with full details
- ✅ Parameter types correctly identified
- ✅ Tool signatures generated with proper types
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です