• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 26915584011 / 1
66%
main: 66%

Build:
DEFAULT BRANCH: main
Ran 03 Jun 2026 10:04PM UTC
Files 747
Run time 23s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Jun 2026 09:58PM UTC coverage: 65.86% (+0.01%) from 65.848%
26915584011.1

push

github

web-flow
Define VMCP core interface and Config contract (#5450)

* Define VMCP core interface and Config contract

Establish the contract-only first step of the vMCP New/Serve split: the
identity-parameterized VMCP domain interface and the core Config struct
of collaborators. This is the domain boundary that New(cfg) -> VMCP and
the decorators will consume; no implementation yet.

Implements issue #5434:
- Add pkg/vmcp/core with the VMCP interface (ListTools/CallTool/List+
  Read/List+GetPrompt/Lookup{Tool,Resource,Prompt}/Close), identity an
  explicit *auth.Identity on every data method, never read from context.
- Encode the full behavioral contract in the interface doc comment
  (anonymous nil identity, decorators subtract-only, read-only args/meta,
  nil ResourceReadResult.Meta).
- Declare Config with typed collaborator fields; no construction logic.
- No mcp-go types cross the boundary (anti-pattern #5).

The core lives in pkg/vmcp/core rather than root pkg/vmcp because Config
references aggregator/router/composer/health/authz, all of which import
pkg/vmcp; a root-package Config would create an import cycle.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Fix VMCP doc-comment godoc link and line citation

Addresses stacklok/toolhive#5450 review comments:
- LOW pkg/vmcp/core/core.go (3351574912): replace the unresolvable
  [pkg/vmcp/session/types.ShouldAllowAnonymous] godoc link (package not
  imported) with plain prose so it no longer renders as literal brackets.
- LOW pkg/vmcp/core/core.go (3351574935): drop the rot-prone types.go:556-561
  line citation in favor of the self-maintaining [vmcp.ResourceReadResult].Meta
  doc link.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

66410 of 100835 relevant lines covered (65.86%)

62.2 hits per line

Source Files on job 26915584011.1
  • Tree
  • List 747
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 26915584011
  • 255686a5 on github
  • Prev Job for on main (#26912592654.1)
  • Next Job for on main (#26918946871.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc