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

stacklok / toolhive / 25009717270
67%

Build:
DEFAULT BRANCH: main
Ran 27 Apr 2026 05:32PM UTC
Jobs 1
Files 670
Run time 2min
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

27 Apr 2026 05:27PM UTC coverage: 66.214% (-0.03%) from 66.245%
25009717270

push

github

web-flow
Add `thv registry convert` command (#5071)

Add a one-shot migration helper that converts a legacy ToolHive
registry JSON file into the upstream MCP registry format, with
ToolHive-specific fields preserved on the publisher-provided
extension of each upstream server entry. Reads from --in or stdin,
writes to --out, stdout, or in place with a .bak backup.

The CLI is a thin wrapper around `pkg/registry.ConvertJSON`, which
produces schema-validated upstream JSON. In-place writes go through
a temp file + fsync + rename so a crash mid-write can't corrupt the
input, and the helper refuses to clobber an existing .bak so a
previous good copy is never silently destroyed.

This lands ahead of the legacy-format removal (separate PR) so the
migration error users will see there can point at this command.

74 of 145 new or added lines in 2 files covered. (51.03%)

6 existing lines in 1 file now uncovered.

59430 of 89755 relevant lines covered (66.21%)

62.16 hits per line

Uncovered Changes

Lines Coverage ∆ File
65
39.25
cmd/thv/app/registry_convert.go
6
84.21
pkg/registry/convert.go

Coverage Regressions

Lines Coverage ∆ File
6
76.15
-5.5% pkg/secrets/keyring/keyctl_linux.go
Jobs
ID Job ID Ran Files Coverage
1 25009717270.1 27 Apr 2026 05:32PM UTC 670
66.21
GitHub Action Run
Source Files on build 25009717270
  • Tree
  • List 670
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25009717270
  • 7c9f6b98 on github
  • Prev Build on main (#25006281594)
  • Next Build on main (#25010200036)
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