Skip to content

CI: run MCP conformance suite against ToolHive (thv run) #5803

Closed

Description

@jhrozek

Goal

Continuously verify that ToolHive's proxy/transport layer is faithful to the MCP
specification by running the upstream MCP conformance suite
against a ToolHive deployment in CI. This gives the epic (#5743) an automated,
spec-authored compliance signal that regresses loudly.

Background

ToolHive is a proxy in front of MCP servers, so pointing the conformance suite at
a thv run endpoint measures the composition ToolHive proxy ∘ server. Using the
conformance repo's own reference server (which implements the required fixtures)
isolates ToolHive's contribution.

A manual characterization run established:

  • Reference server direct = 44/44 (--suite all).
  • Through thv run (CLI proxy) = 44/44 — the CLI proxy is transport-transparent.

Proposed change

A per-PR CI job that:

  • packages the conformance repo's reference server dynamically (cloned at a pinned
    version, built into a container image),
  • runs it through thv run --transport streamable-http,
  • runs the active suite against the proxied /mcp endpoint, gated by an
    expected-failures.yaml baseline (empty — any drop is a real regression),
  • plus a task conformance target for local runs.

A single CONFORMANCE_VERSION pins both the npm tool and the git server source
(repo tags map 1:1 to npm versions), keeping fixtures and tool in lockstep.

Scope

  • In: CLI (thv run) path, active suite.
  • Out (follow-ups):
    • k8s operator proxy — it rewrites the outbound Host header to the upstream
      Service identity, which breaks MCP servers that validate Host per the spec's
      DNS-rebinding guidance. Needs a fix before a k8s conformance gate is meaningful.
    • stdio→streamable-http bridge — the reference server is HTTP-only; covering
      the bridge needs a stdio fixture server.

Local branch: mcp-conformance-ci (PR to follow).

Activity

  1. added
    needs-triage
    on Jul 14, 2026
  2. added a commit that references this issue on Jul 15, 2026
    794bcb4
  3. self-assigned this
    on Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

needs-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions