Repository navigation
Commit 748315d
authored
feat(mcp): advertise server title, description, website, and icon (#3394)
## Summary
MCP directories and clients score servers on the `Implementation` metadata in the initialize response ([spec 2026-07-28: Implementation](https://modelcontextprotocol.io/specification/2026-07-28/schema#implementation), [Icon](https://modelcontextprotocol.io/specification/2026-07-28/schema#icon)): a human-readable title, a useful description, a public website, and a scalable or >=128px icon. We only sent `name` and `version`.
This adds to the MCP server's `serverInfo`:
- `title`: "ClickStack"
- `description`: a short summary of what the server does
- `websiteUrl`: the ClickStack docs
- `icons`: the HyperDX logo SVG (`sizes: ["any"]`), served by the app at `${FRONTEND_URL}/favicons/hyperdx/favicon.svg`. Omitted when `FRONTEND_URL` is unset, since icon sources must be absolute URLs
Instructions and capabilities are unchanged. All fields exist on the SDK 1.29 `Implementation` type. Covered by `packages/api/src/mcp/__tests__/serverMetadata.test.ts`.
### How to reproduce
**Starting point:** local full stack via `yarn dev` (the MCP server needs the API).
**On `main`:**
1. Run `yarn dev`.
2. Run `npx @modelcontextprotocol/inspector` and connect it to the local MCP endpoint (see `MCP.md`).
3. Check the initialize response: `serverInfo` has only `name` and `version`.
**On this branch:**
1. Repeat the steps above.
2. `serverInfo` now also has `title`, `description`, `websiteUrl`, and `icons`. `tools/list` and instructions match `main`.
### References
- Linear Issue:
- Related PRs:1 parent 85675fc commit 748315d
3 files changed
Lines changed: 90 additions & 10 deletions
File tree
- .changeset
- packages/api/src/mcp
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | | - | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
38 | 62 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
48 | 66 | | |
49 | 67 | | |
50 | 68 | | |
| |||
0 commit comments