extract_schemas
Extracts API schemas from source code by auto-detecting format from file contents, supporting MCP, OpenAPI, GraphQL, tRPC, REST, gRPC, Python, Go, and SQL DDL.
Instructions
Extract API schemas from source code. Supports: MCP tools (Zod), OpenAPI/Swagger specs, GraphQL SDL, tRPC routers, REST endpoints (Express/Fastify), gRPC/Protobuf services, Python (FastAPI/Flask decorators), Go (Gin/Chi handlers), and SQL DDL (CREATE TABLE, CREATE TYPE). Auto-detects format from file contents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootDir | Yes | Root directory of server/API source code | |
| include | No | Glob patterns to include (e.g., **/*.ts, **/*.py, **/*.go, **/*.proto, **/*.sql) | |
| exclude | No | Glob patterns to exclude |