Add Mapbox icon to the MCP server #93
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Mapbox Server Icon with Light and Dark Theme Support
This PR implements MCP server icons at the correct architectural level (server initialization) with both light and dark theme variants.
What's Implemented
✅ Server-Level Icons - Icons are added to the
McpServerconstructor per MCP specification✅ Theme Support - Both light and dark variants for different UI contexts
✅ Base64 SVG Data URIs - Logos embedded directly, no external files needed
✅ Official Mapbox Branding - Uses official Mapbox logo assets
Implementation Details
Icons are configured in
src/index.tsat server initialization:Architecture
This follows the MCP specification where icons are part of the
ImplementationSchemaat the server level, not individual tool definitions.Why server-level?
ImplementationSchema(server metadata)Assets
assets/mapbox-logo-black.svg- For light theme backgroundsassets/mapbox-logo-white.svg- For dark theme backgroundsTesting
To see the icons in Claude Desktop or other MCP clients:
Build the server:
Connect the server to your MCP client
Look for the Mapbox logo in the client's server list/connection UI
Note: Icon support varies by client. Claude Desktop and other modern MCP clients that support the full MCP specification will display the appropriate themed icon.
SDK Update
Also updates
@modelcontextprotocol/sdkto 1.25.2 (CVE fix) which includes improved icon support.Files Changed
src/index.ts- Added icons array to server initializationassets/mapbox-logo-black.svg- Black logo for light themesassets/mapbox-logo-white.svg- White logo for dark themespackage.json&package-lock.json- SDK version bump to 1.25.2patches/@modelcontextprotocol+sdk+1.25.2.patch- Updated SDK patch🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com