mcp-use
Version:
Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents, Clients and Servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.
22 lines • 972 B
TypeScript
/**
* Favicon detection utilities for MCP servers
* @module favicon-detector
*/
/**
* Determine whether a domain refers to a local or private server.
*
* @param domain - Hostname or IPv4 address to evaluate
* @returns `true` if `domain` is `localhost` or belongs to common private/loopback IPv4 ranges (`127.*`, `10.*`, `192.168.*`, `172.*`), `false` otherwise
*/
export declare function isLocalServer(domain: string): boolean;
/**
* Detects and retrieves the favicon for an MCP server.
*
* Attempts the server host and its base domain (when different), skipping local/private hosts,
* and returns the favicon as a base64 data URL if found.
*
* @param serverUrl - The MCP server URL or host (e.g., "https://mcp.linear.app/mcp" or "mcp.linear.app")
* @returns The base64-encoded favicon data URL if detected, `null` otherwise
*/
export declare function detectFavicon(serverUrl: string): Promise<string | null>;
//# sourceMappingURL=favicon-detector.d.ts.map