Files
codegraph/__tests__
Colby MchenryandClaude Opus 5.5 f4c4dae91c feat(mcp): the server gives hosts its title and icon (#3095)
`initialize` now answers with serverInfo.title "CodeGraph" and one
embedded SVG in serverInfo.icons, on the direct path and from the
daemon proxy, which share SERVER_INFO. A host that shows them can list
CodeGraph by name and logo instead of a plain `codegraph`.

The icon is the site's favicon (site/public/favicon.svg) on a light
tile. The bare mark is dark ink on nothing, and on a dark background
only its two white dots show (checked in a browser at 16 to 64 px). It
is spelled out in the source instead of as a base64 blob, so a reader
can see it is three lines and three circles.

`sizes` is left off the icon on purpose. It's optional and says nothing
about an SVG, and @modelcontextprotocol/sdk 1.18.0 typed it as a string
where the spec settled on an array, so a host on that SDK would fail the
whole handshake on the array form.

Left out from PR #879, on purpose: `_meta.icons` and icons on every
tool. Those add about 1 KB per tool to each tools/list for no host we
could find that needs them; Codex reads serverInfo.icons.

What each host shows, read from its source or binary on 2026-10-30:
- Codex: keeps serverInfo.title and .icons and sends them to its app
  (McpServerStatus.serverInfo); the terminal UI's /mcp doesn't read them.
- opencode: reads serverInfo.title into the server list; its dialogs
  still print the config name, and it doesn't read icons.
- Claude Code 2.1.296: connects fine with these fields (checked with
  `claude mcp list` in a sandbox home), and no read of title or icons
  turns up in its binary, so it keeps showing the config name.
- Cursor: closed source and not on this machine. Its docs mention no
  server title or icon, so this is unverified.

Validation: 3 tests in mcp-initialize fail on main's session and pass
here; mcp-daemon now pins the proxy's serverInfo to the same object.

Reimplements PR #879 by @fedosov.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 18:38:45 +00:00
..