# Changelog
## v0.1.2 (2023-06-01)
### โจ New Features
- **Integrated LLM API**: Added a native REST API endpoint to the MCP server for direct LLM queries
- **Built-in FastAPI Endpoint**: Port 8001 now exposes a JSON API for running SQL queries without wrapper scripts
- **Query Endpoint**: Added `/api/query` endpoint for executing SQL against Trino with JSON responses
### ๐ Documentation
- Updated README with API usage instructions
- Added code examples for the REST API
## v0.1.1 (2023-05-17)
### ๐ Bug Fixes
- **Fixed Trino client catalog handling**: The Trino client now correctly sets the catalog in connection parameters instead of using unreliable `USE catalog` statements.
- **Improved query execution**: Queries now correctly execute against specified catalogs.
- **Added error handling**: Better error handling for catalog and schema operations.
### ๐ Documentation
- Added detailed documentation about transport options and known issues.
- Created test scripts demonstrating successful MCP-Trino interaction.
- Documented workarounds for MCP 1.3.0 SSE transport issues.
### ๐งช Testing
- Added `test_mcp_stdio.py` for testing MCP with STDIO transport.
- Added catalog connection testing scripts and diagnostics.
### ๐ง Known Issues
- MCP 1.3.0 SSE transport has issues with client disconnection.
- Use STDIO transport for reliable operation until upgrading to a newer MCP version.