feat: add basic OpenAPI parser and tool generator #1446
+178
β0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
β¨ Feature / Enhancement PR
π Epic / Issue
Link to the epic or parent issue:
Closes # 1361
π Summary (1-2 sentences)
What does this PR add or change?
This PR adds a basic OpenAPI β Tool generator (V1) that parses a user-provided OpenAPI YAML/JSON file, extracts GET endpoints + simple schemas, and automatically generates corresponding REST tools with Bearer auth, saving them into generated_tools/tools.json
parser.py β loads the spec file (YAML/JSON)
Extracts:
GET endpoints only
Simple schemas (flat properties, type: string/integer/boolean)
Query parameters (parameters)
Converts parsed data into a normalized format for the generator
π§ͺ Checks
make lintpassesmake testpassesπ Notes (optional)
Design sketch, screenshots, or extra context.
Example.yaml

Parsed file to JSON

If the change introduces or alters an architectural decision, add or update an ADR in
docs/docs/adr/and link it here._%% Example diagram - delete if not needed flowchart TD A[Client] -->|POST /completions| B(MCPGateway) B --> C[Completion Service]