Skip to content

Add Spotify artwork to MCP resource responses - #43

Merged
austin-smith merged 1 commit into
mainfrom
show-mcp-album-art
Aug 7, 2026
Merged

austin-smith merged 1 commit into
mainfrom
show-mcp-album-art

Conversation

@austin-smith

Copy link
Copy Markdown
Owner

Summary

  • add opt-in include_artwork support to the MCP get_resource tool for tracks and albums
  • return original Spotify-hosted image bytes as an MCP image content block alongside metadata, attribution, and an Open Spotify link
  • bound artwork downloads by approved CDN hosts, redirects, timeout, payload size, and validated image type
  • document the capability and cover default, error, redirect, payload, MIME, attribution, and byte-preservation behavior

Why

Spotify resource metadata exposed album details but the MCP result discarded the image data, so clients could not directly show album art. This keeps artwork opt-in and attached to the existing resource response while preserving the text-only default.

Validation

  • bun test — 1,055 passed
  • bun run typecheck
  • bun run engine:test — 28 passed
  • cargo fmt --manifest-path native/Cargo.toml --check
  • cargo clippy --manifest-path native/Cargo.toml --all-targets -- -D warnings
  • git diff --check

@austin-smith
austin-smith marked this pull request as ready for review August 7, 2026 06:50
@austin-smith austin-smith changed the title Return Spotify artwork from get_resource Add Spotify artwork to MCP resource responses Aug 7, 2026
@austin-smith
austin-smith merged commit cf94fbf into main Aug 7, 2026
5 checks passed
@austin-smith
austin-smith deleted the show-mcp-album-art branch August 7, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant