Skip to content

Add favicon support for MCP server#23

Merged
RadCod3 merged 4 commits intomainfrom
feat/#18
Jan 6, 2026
Merged

Add favicon support for MCP server#23
RadCod3 merged 4 commits intomainfrom
feat/#18

Conversation

@RadCod3
Copy link
Owner

@RadCod3 RadCod3 commented Jan 6, 2026

Adds favicon icon support through two complementary approaches:

  • Native FastMCP icons parameter for MCP protocol integration (data URI embedded)
  • Custom HTTP route serving /favicon.ico at root level for client requests

This ensures the LamPyrid server icon displays correctly in Claude Desktop and other MCP clients.

Changes:

  • Add favicon assets (PNG and ICO format)
  • Register icon with FastMCP using icons parameter
  • Add custom /favicon.ico route using @mcp.custom_route() decorator
  • Create utils.py module for organizing custom HTTP routes

Resolves #18

While the native fastmcp api supports adding icons, it seems claude desktop shows icons as found in the default http /favicon.ico route at the moment. To handle this a custom favicon route was added
Copilot AI review requested due to automatic review settings January 6, 2026 18:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds favicon support for the LamPyrid MCP server through two complementary mechanisms: native FastMCP icon registration using data URIs and a custom HTTP route for serving /favicon.ico. The implementation ensures the server's icon displays correctly in Claude Desktop and other MCP clients.

Key changes:

  • Created utils.py module for organizing custom HTTP routes
  • Registered favicon with FastMCP using the icons parameter with data URI embedding
  • Added custom /favicon.ico route to serve the icon file directly

Reviewed changes

Copilot reviewed 2 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/lampyrid/utils.py New module containing favicon serving route and route registration function
src/lampyrid/server.py Added favicon icon initialization with FastMCP and registered custom HTTP routes
assets/favicon.png New PNG favicon asset (48x48)
assets/favicon.ico New ICO favicon asset
assets/logo-flame.png New flame logo asset (binary file)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@RadCod3 RadCod3 merged commit 215b119 into main Jan 6, 2026
3 checks passed
@RadCod3 RadCod3 deleted the feat/#18 branch January 8, 2026 16:45
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.

Add favicon for Claude Desktop connector icon

1 participant