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

stacklok / toolhive / 24566568053

17 Apr 2026 01:04PM UTC coverage: 66.277% (-0.007%) from 66.284%
24566568053

push

github

web-flow
Add pkg/vmcp/cli/init.go for vMCP config scaffolding (#4903)

Implement Init(ctx, InitConfig) which discovers running workloads in a
named ToolHive group via an injected Discoverer, renders a commented
starter YAML config pre-populated with one backend entry per accessible
workload, and writes the result to a file (0o600) or an io.Writer.

Workloads returning nil from GetWorkloadAsVMCPBackend are skipped with
a debug log. Empty groups produce a valid YAML skeleton with backends: [].

Includes unit tests covering writer output, file output, nil-backend
skipping, empty groups, discovery errors, YAML validity (loader +
validator), file permissions, and input validation edge cases.

Closes #4882

Co-authored-by: taskbot <taskbot@users.noreply.github.com>

63 of 83 new or added lines in 1 file covered. (75.9%)

18 existing lines in 4 files now uncovered.

57714 of 87080 relevant lines covered (66.28%)

63.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

79.38
/pkg/transport/proxy/httpsse/http_proxy.go


Source Not Available

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