Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ICONFONT_COOKIE | No | Environment variable for authentication, required for features like listing projects. Obtain this by copying the EGG_SESS_ICONFONT cookie value from iconfont.cn after logging in. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| iconfont_search_icons | Search for icons in the Iconfont icon library (iconfont.cn). This tool searches the Iconfont database for icons matching the specified query. It provides access to millions of icons from various designers and collections. Args:
Returns: For JSON format: { total: number, page: number, page_size: number, icons: [...] } For markdown: Human-readable list with icon names and IDs Examples:
|
| iconfont_download_icon | Download SVG data for a specific icon from Iconfont. This tool retrieves the SVG content for an icon and optionally saves it to a file. The icon_id can be obtained from the search results. Args:
Returns: For JSON format: { icon_id: string, name: string, svg: string, saved_to: string | null } For markdown: Confirmation message with file path if saved Examples:
|
| iconfont_list_projects | List all projects in the user's Iconfont account. This tool requires authentication via Iconfont cookie. It returns all projects that the user has created or has access to. Args:
Returns: For JSON format: { projects: [{ id, name, icon_count, updated_at }] } For markdown: Human-readable list of projects Note: Requires authentication. Can provide cookie via args, ICONFONT_COOKIE environment variable, or iconfont_login tool. Cookie can be obtained from browser dev tools after logging into iconfont.cn. Examples:
|
| iconfont_login | Authenticate with Iconfont using browser cookie. This tool allows you to login to your Iconfont account to access private projects and features that require authentication. Args:
How to get the cookie:
Returns:
Note: The cookie is stored in memory only and will be lost when the server restarts. For persistent login, set ICONFONT_COOKIE environment variable instead. Examples:
|
| iconfont_auto_login | Automatically open browser to log in to Iconfont and obtain authentication cookie. This tool will:
Returns:
Note: This opens a real browser for secure login. The browser will close automatically after login. This tool may take longer to complete as it waits for manual login. Examples:
|
| iconfont_check_login | Check if currently logged in to Iconfont. Returns:
|
| iconfont_get_project_detail | Get detailed information about a specific Iconfont project. This tool retrieves project details including name, icon count, font family, etc. Results are cached for 5 minutes based on the project's update time to reduce API calls. Args:
Returns: Project details including id, name, icon_count, font_family, created_at, updated_at Examples:
|
| iconfont_project_search_icons | Search for icons within a specific Iconfont project using keyword. This tool searches icons inside a specific project that the user has access to. Requires authentication via Iconfont cookie. Args:
Returns: For JSON format: { total: number, page: number, icons: [...] } For markdown: Human-readable list with icon names and IDs Note: Requires authentication. Can provide cookie via args, ICONFONT_COOKIE environment variable, or iconfont_login tool. Examples:
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |