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

stacklok / toolhive / 17666658843
59%

Build:
DEFAULT BRANCH: main
Ran 12 Sep 2025 06:40AM UTC
Jobs 1
Files 234
Run time 1min
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

12 Sep 2025 06:36AM UTC coverage: 40.127% (+0.1%) from 40.031%
17666658843

push

github

web-flow
Add support for Tool Override to CLI. (#1841)

This change adds a new `--tools-override` option to `thv run` and
similar commands. The new option accepts a path to a file containing a
JSON structure like the following

```json
{
  "toolsOverride": {
    "actual-name": {
      "name": "new-name",
      "description": "Overridden description."
    }
  }
}
```

The override file is read once when the MCP server is started, and is
not reloaded on `thv restart`. This behaviour might change in the
future.

Note that Tool Override feature is mostly orthogonal to Tool Filtering
one, with the exception of the name used for filtering.

Specifically, overrides just change the name or description of an
existing tool, but do not limit access to other tools; filtering does
the exact opposite. When both an override and a filter are specified
for the same tool, the name to be used when specifying the filter is
the overridden name. We decided to implement it this way for two
reasons

1. the user is likely to think of tools in the MCP server in terms of
   the new names rather than the actual ones, since the former are
   those visible to the Client, and
2. the MCP spec does not specify means for MCP servers to publish the
   full list of tools without first running it, and determining those
   available requires starting the server itself and issuing a
   `tools/list` call, i.e. require acting as a client.

As a consequence, it's impossible to reliably determine the full list
of tools, and a valid filter in one scenario might not work in another
one.

Fixes #1511

34 of 59 new or added lines in 3 files covered. (57.63%)

3 existing lines in 1 file now uncovered.

12354 of 30787 relevant lines covered (40.13%)

17.04 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
54.7
0.2% pkg/runner/config_builder.go
22
29.65
0.24% cmd/thv/app/run_flags.go

Uncovered Existing Lines

Lines Coverage ∆ File
3
72.39
-1.12% pkg/ignore/processor.go
Jobs
ID Job ID Ran Files Coverage
1 17666658843.1 12 Sep 2025 06:40AM UTC 234
40.13
GitHub Action Run
Source Files on build 17666658843
  • Tree
  • List 234
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17666658843
  • dfd419d9 on github
  • Prev Build on main (#17665054187)
  • Next Build on main (#17668088396)
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