-
-
Notifications
You must be signed in to change notification settings - Fork 713
feat(web): add HTTP MCP server for dashboard icon search #2885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
e6e1d56
chore(web): add mcp-handler and MCP SDK dependencies
gfrancodev 3ff0f9e
feat(web): add HTTP MCP server for dashboard icon search
gfrancodev 5461468
test(web): add MCP and icon library test coverage
gfrancodev a558e7e
refactor(web): migrate middleware to proxy for Next.js 16
gfrancodev d6db5b7
fix(web): harden build, lint, and server/client boundaries
gfrancodev 14b17a7
chore(web): bump dependencies and document MCP usage
gfrancodev f3c202c
feat(web): add MCP setup UI, server branding, and e2e coverage
gfrancodev 5f2cb5e
feat(web): add PostHog MCP analytics
ajnart 7dd3caf
fix(web): address MCP review findings
ajnart dca8c70
fix(web): honor PostHog ingestion host
ajnart 6049b75
fix(web): address remaining CodeRabbit MCP review findings
gfrancodev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| # Dashboard Icons MCP Server | ||
|
|
||
| Connect AI assistants to [dashboardicons.com](https://dashboardicons.com) via the Model Context Protocol (MCP). | ||
|
|
||
| ## Endpoint | ||
|
|
||
| ``` | ||
| https://dashboardicons.com/api/mcp | ||
| ``` | ||
|
|
||
| Local development: | ||
|
|
||
| ``` | ||
| http://localhost:3005/api/mcp | ||
| ``` | ||
|
|
||
| ## Cursor configuration | ||
|
|
||
| ```json | ||
| { | ||
| "mcpServers": { | ||
| "dashboard-icons": { | ||
| "url": "https://dashboardicons.com/api/mcp" | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ### Stdio-only clients | ||
|
|
||
| Use [mcp-remote](https://www.npmjs.com/package/mcp-remote): | ||
|
|
||
| ```json | ||
| { | ||
| "mcpServers": { | ||
| "dashboard-icons": { | ||
| "command": "npx", | ||
| "args": ["-y", "mcp-remote", "https://dashboardicons.com/api/mcp"] | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## Tools | ||
|
|
||
| ### `search_icons` | ||
|
|
||
| Search icons by name, alias, or category. | ||
|
|
||
| | Parameter | Type | Default | Max | | ||
| |-----------|------|---------|-----| | ||
| | `query` | string | required | 100 chars | | ||
| | `limit` | number | 20 | 50 | | ||
| | `category` | string | optional | 50 chars | | ||
|
|
||
| ### `get_icon` | ||
|
|
||
| Full metadata and CDN URLs for one icon. | ||
|
|
||
| | Parameter | Type | | ||
| |-----------|------| | ||
| | `name` | kebab-case slug | | ||
|
|
||
| ### `get_icon_url` | ||
|
|
||
| Direct CDN URL for one icon. | ||
|
|
||
| | Parameter | Type | Default | | ||
| |-----------|------|---------| | ||
| | `name` | string | required | | ||
| | `format` | `svg` \| `png` \| `webp` | `svg` | | ||
| | `theme` | `default` \| `light` \| `dark` | `default` | | ||
|
|
||
| ### `suggest_icon` | ||
|
|
||
| Fuzzy match from a natural service name (e.g. `"Plex media server"` → `plex`). | ||
|
|
||
| | Parameter | Type | Default | Max | | ||
| |-----------|------|---------|-----| | ||
| | `service_name` | string | required | 100 chars | | ||
| | `limit` | number | 5 | 20 | | ||
|
|
||
| ## Rate limits | ||
|
|
||
| | Scope | Limit | | ||
| |-------|-------| | ||
| | All MCP requests | 60 per minute per IP | | ||
| | Tool calls (`tools/call`) | 30 per minute per IP | | ||
|
|
||
| When exceeded, the server returns HTTP `429` with a `Retry-After` header. | ||
|
|
||
| ## Environment variables | ||
|
|
||
| | Variable | Description | | ||
| |----------|-------------| | ||
| | `MCP_RATE_LIMIT_ENABLED` | Set to `false` to disable rate limiting (local dev only) | | ||
| | `MCP_VERBOSE_LOGS` | Set to `true` for verbose MCP handler logs | | ||
| | `MCP_WARM_CACHE` | Set to `true` to preload metadata on server start | | ||
| | `DASHBOARD_ICONS_METADATA_PATH` | Local `metadata.json` path (development only; blocked in production) | | ||
| | `NEXT_PUBLIC_POSTHOG_KEY` | Enables PostHog MCP analytics using the existing project key | | ||
| | `NEXT_PUBLIC_POSTHOG_HOST` | PostHog ingestion host (defaults to the EU cloud endpoint) | | ||
| | `NEXT_PUBLIC_DISABLE_POSTHOG` | Set to `true` to disable all PostHog capture | | ||
|
|
||
| When enabled, the official `@posthog/mcp` SDK captures MCP lifecycle events, tool calls, latency, responses, and errors. Analytics are flushed after each serverless invocation. | ||
|
|
||
| ## Scope | ||
|
|
||
| v1 covers **native icons** from `metadata.json` only. External sources (selfh.st, LobeHub) are not included. | ||
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.