Overview
Automagik Tools converts OpenAPI specifications into MCP tools. This guide helps troubleshoot common issues encountered during conversion and validation.Spec Loading Errors
Cannot Find OpenAPI Spec
Problem:FileNotFoundError: spec.json not found
Solutions:
Invalid JSON/YAML Format
Problem:JSONDecodeError or YAMLError when loading spec
Solutions:
Validate JSON
Validate JSON
Validate YAML
Validate YAML
Convert YAML to JSON
Convert YAML to JSON
Authentication Required for Spec
Problem: Cannot fetch remote OpenAPI spec (401/403) Solutions:Validation Errors
Missing Required Fields
Problem:ValidationError: Missing required field: info.title
Required OpenAPI Fields:
Invalid OpenAPI Version
Problem:Error: OpenAPI version 2.0 not supported
Solution:
Invalid Schema References
Problem:Error: Cannot resolve reference: #/components/schemas/User
Causes and Solutions:
- Missing Schema Definition
- Incorrect Reference Path
- External References
Invalid Data Types
Problem:Error: Invalid type: datetime (expected: string, number, boolean, etc.)
OpenAPI Supported Types:
Conversion Issues
Large Spec Timeout
Problem: Conversion times out with very large OpenAPI specs Solutions:Split Into Multiple Specs
Split Into Multiple Specs
Remove Unused Endpoints
Remove Unused Endpoints
Simplify Schemas
Simplify Schemas
Complex Nested Objects
Problem: Deeply nested schemas cause conversion issues Solution:Missing Endpoints
Problem: Some API endpoints not appearing as tools Causes and Solutions:HTTP Method Not Specified
HTTP Method Not Specified
No operationId
No operationId
Missing Response Schema
Missing Response Schema
Custom Authentication Schemes
Problem: Complex auth not supported Supported Auth Types:- API Key
- Bearer Token
- Basic Auth
- OAuth 2.0 (Limited)
- Custom signature schemes
- Multiple auth methods combined
- Dynamic token refresh
Schema Validation Issues
Circular References
Problem:Error: Circular reference detected in schema
Solution:

