Skip to content

Add icon support for MCP servers #1040

@koshak01

Description

@koshak01

Description:

I've implemented an MCP server using the rust-sdk and it works correctly when connected to Claude Desktop. However, there's no way to display a custom icon for the server.
Looking at the ServerInfo struct in initialize(), there's no icon field available:

fn get_info(&self) -> ServerInfo {
    ServerInfo {
        protocol_version: ProtocolVersion::LATEST,
        capabilities: ServerCapabilities::builder()
            .enable_tools()
            .enable_completions()
            .enable_logging()
            .enable_experimental()
            .enable_prompts()
            .build(),
        server_info: Implementation {
            name: "mcp.xxxxxxxxxx".to_string(),
            version: env!("CARGO_PKG_VERSION").to_string(),
        },
        instructions: Some(rules),
        // Missing: icon field
    }
}

Request:
Add icon field to ServerInfo struct to support custom server icons in Claude Desktop interface.

ServerInfo {
    // ... existing fields
    icon: Some("https://example.com/icon.png".to_string()), // or data URI
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions