Skip to content

feat(mcp): expose server icons, metadata, and ping support#138

Merged
Minitour merged 1 commit into
developfrom
feat/mcp-server-icons-metadata
Jul 24, 2026
Merged

feat(mcp): expose server icons, metadata, and ping support#138
Minitour merged 1 commit into
developfrom
feat/mcp-server-icons-metadata

Conversation

@Minitour

@Minitour Minitour commented Jul 24, 2026

Copy link
Copy Markdown
Member

Summary

  • Expose capa branding in the MCP serverInfo: title, description, websiteUrl, and icons (the favicon, inlined as an SVG data: URI).
  • Bump the initialize protocolVersion to 2025-11-25.
  • Handle ping requests with an empty result (spec liveness check).
  • Use the project name without the trailing path-hash for the server name via a new projectNameFromId helper.

Notes

  • The SVG is imported with with { type: 'text' }, which Bun inlines at build time into a string literal. Verified via a bundle test that the content is embedded, so the --compiled binary contains the icon (no runtime file dependency on assets/favicon.svg).

Test plan

  • bun test src/shared/__tests__/paths.test.ts src/server/__tests__/mcp-handler.integration.test.ts — 31 pass
  • Verify icon/metadata render in an MCP client after a compiled build

Advertise capa's favicon (inlined SVG data-URI), title, description, and
website URL in the MCP serverInfo, bump the protocol version to 2025-11-25,
and handle liveness ping requests. Server name now uses the project name
without the path-hash suffix via projectNameFromId.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Minitour
Minitour merged commit d9b047e into develop Jul 24, 2026
@Minitour
Minitour deleted the feat/mcp-server-icons-metadata branch July 24, 2026 16:17
@cursor

cursor Bot commented Jul 24, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant