Add favicon support for both Cloudflare Workers and Node.js#4
Merged
MahammadNuriyev62 merged 3 commits intomasterfrom Feb 10, 2026
Merged
Add favicon support for both Cloudflare Workers and Node.js#4MahammadNuriyev62 merged 3 commits intomasterfrom
MahammadNuriyev62 merged 3 commits intomasterfrom
Conversation
Serves the project icon at /favicon.ico (multi-size ICO) and /favicon.svg so Google's favicon service can discover it for the MCP Directory listing. https://claude.ai/code/session_01TF2N6ru2CZX9Uy4xdfBKgf
- Add public/favicon.ico and public/favicon.svg as actual files - Cloudflare Worker: use [assets] in wrangler.toml for automatic static serving - Node.js server: read favicon files from disk via fs.readFileSync - Remove src/icon.ts (base64 blob no longer needed) https://claude.ai/code/session_01TF2N6ru2CZX9Uy4xdfBKgf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR adds favicon support to the MCP server, providing both ICO and SVG formats for better branding and user experience. The implementation works across both Cloudflare Workers and Node.js HTTP server environments.
Changes
New file:
src/icon.ts- Contains icon assets:ICON_SVG: An SVG favicon featuring a stylized eye/bracket design with dark background and light blue accentICON_ICO_BASE64: Base64-encoded ICO file with multiple resolutions (16x16, 32x32, 64x64 PNG images)Updated
src/index.ts(Cloudflare Workers):Updated
src/main.ts(Node.js HTTP server):Implementation Details
Cache-Control: public, max-age=86400for optimal cachinghttps://claude.ai/code/session_01TF2N6ru2CZX9Uy4xdfBKgf