Skip to content

Adopt mcpcompat MetaKeyServerInfo and remove modernServerInfoKey #7033

Open

Description

@jhrozek

Summary

ToolHive duplicates the standard MCP server-info metadata key (modernServerInfoKey) in its Modern response builder, because toolhive-core/mcpcompat/mcp did not export it. toolhive-core now exports mcp.MetaKeyServerInfo (aliasing the go-sdk constant), so the duplicate can be removed.

Blocked on

A toolhive-core release that includes the MetaKeyServerInfo export (commit 7c77e35, in the mcpcompat-meta-comments PR).

Tasks

  • Bump toolhive-core to the release containing mcp.MetaKeyServerInfo
  • Remove modernServerInfoKey and use mcp.MetaKeyServerInfo for metadata maps
  • Keep the literal Go struct tag
  • Add an assertion on both the wire key and the server identity. The core test only checks that the shim equals the SDK constant; it does not pin the protocol literal.

Notes

Additive API in core: no wire or negotiation change, and no dependency upgrade.

Activity

  1. added
    needs-triage
    on Nov 3, 2026
  2. removed
    needs-triage
    on Nov 3, 2026
  3. jhrozek commented on Nov 3, 2026

    @jhrozek
    ContributorAuthor

    also take into account #7032 (comment)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions