Skip to content

mcp-trino-v0.6.2

Choose a tag to compare

@github-actions github-actions released this 16 Feb 19:59
· 19 commits to main since this release
Immutable release. Only release title and notes can be modified.
4c1cf86

What's New

Default Icons for All Tools

All 7 Trino tools now include a default SVG icon in tools/list responses. MCP clients that support icons (e.g., Claude Desktop) will render these alongside tool names, improving visual discoverability.

Tools with icons: trino_query, trino_explain, trino_list_catalogs, trino_list_schemas, trino_list_tables, trino_describe_table, trino_list_connections

Icon Customization API

A new 3-level priority chain lets consumers override icons at any level:

  1. Per-tool via WithIcon() tool option — highest priority
  2. Toolkit-wide via WithIcons() toolkit option — override specific tools by name
  3. Built-in default — all tools get the Trino SVG automatically
// Override a specific tool's icon at registration time
toolkit := tools.NewToolkit(client, cfg,
    tools.WithIcons(map[tools.ToolName][]mcp.Icon{
        tools.ToolQuery: {{Source: "https://example.com/custom.svg", MIMEType: "image/svg+xml"}},
    }),
)

This follows the same resolution pattern already used by WithDescriptions() and WithAnnotations().

For mcp-data-platform Users

The mcp-data-platform icons middleware can override these defaults via YAML configuration — no code changes needed:

icons:
  enabled: true
  tools:
    trino_query:
      src: "https://example.com/custom-trino.svg"
      mime_type: "image/svg+xml"

Files Changed

File Change
icons/trino.svg New — default Trino tool icon
pkg/tools/icons.go New — icon resolution with 3-level priority chain
pkg/tools/icons_test.go New — comprehensive tests for all priority levels
pkg/tools/toolkit.go Add icons map to Toolkit struct
pkg/tools/options.go Add WithIcons() and WithIcon() options
pkg/tools/options_test.go Tests for new options
pkg/tools/{query,explain,connections,schema}.go Add Icons field to all 7 tool registrations

Upgrading

This is a backward-compatible minor release. No configuration changes are required. Icons appear automatically in tools/list responses — clients that don't support icons simply ignore the field.

go get github.com/txn2/mcp-trino@v0.6.2

Changelog

  • feat: add default icons for all tools (#38)

Full diff: v0.6.1...v0.6.2

Installation

Claude Desktop (macOS/Windows)

Download the .mcpb bundle for your platform and double-click to install:

  • macOS Apple Silicon (M1/M2/M3/M4): mcp-trino_0.6.2_darwin_arm64.mcpb
  • macOS Intel: mcp-trino_0.6.2_darwin_amd64.mcpb
  • Windows: mcp-trino_0.6.2_windows_amd64.mcpb

Homebrew (macOS)

brew install txn2/tap/mcp-trino

Claude Code CLI

claude mcp add trino \
  -e TRINO_HOST=your-trino-host \
  -e TRINO_USER=your-user \
  -- mcp-trino

Docker

docker pull ghcr.io/txn2/mcp-trino:v0.6.2

Verification

All release artifacts are signed with Cosign. Verify with:

cosign verify-blob --bundle mcp-trino_0.6.2_linux_amd64.tar.gz.sigstore.json \
  mcp-trino_0.6.2_linux_amd64.tar.gz