markhoerth opened a new pull request, #159:
URL: https://github.com/apache/gravitino-playground/pull/159

   ### What changes were proposed in this pull request?
   
   Adds a second MCP server alongside the existing Gravitino MCP server, giving 
an AI agent a natural-language SQL path to the playground's Trino coordinator. 
The Gravitino MCP server exposes governed metadata; the Trino MCP server 
executes queries across the federated catalogs.
   
   The server (ghcr.io/tuannvm/mcp-trino) runs as a new service in 
docker-trino-mcp-override.yaml, published on host port 8001, and speaks 
streamable HTTP at /mcp. It rides the same MCP toggle as the Gravitino MCP 
server: on by default, excluded with --disable-mcp.
   
   Changes:
   - docker-trino-mcp-override.yaml: new Trino MCP service, depends on Trino
   - playground.sh: include the override when MCP is enabled
   - README.md: reorganized MCP section covering both servers, plus connection 
instructions for Claude Code, Claude Desktop, and other clients
   
   ### Why are the changes needed?
   
   The playground already ships a Gravitino MCP server for governed metadata, 
but there is no path for an agent to run SQL against the federated catalogs. 
This adds that query capability, so the playground demonstrates both governed 
metadata access and natural-language querying over the same catalogs.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes:
   - A new Trino MCP server on host port 8001 (streamable HTTP at /mcp), up by 
default and excluded with --disable-mcp.
   - README documentation for connecting Claude Code, Claude Desktop, and other 
MCP clients to both servers.
   
   No changes to existing APIs or property keys.
   
   ### How was this patch tested?
   
   - Full stack comes up healthy with the new playground-trino-mcp container.
   - `curl -i http://localhost:8001/mcp -H "Accept: application/json, 
text/event-stream"` returns HTTP 200 with a text/event-stream response.
   - Connected and ran federated queries across catalogs from both Claude Code 
and Claude Desktop.
   - `bash -n playground.sh` and `docker compose -f docker-compose.yaml -f 
docker-mcp-override.yaml -f docker-trino-mcp-override.yaml config` both pass.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to