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

stacklok / toolhive / 45903316458
75%

Build:
DEFAULT BRANCH: main
Ran 26 Nov 2026 10:24PM UTC
Jobs 1
Files 1086
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

26 Nov 2026 10:12PM UTC coverage: 74.926% (+0.08%) from 74.844%
45903316458

push

github

web-flow
Let operators set the instructions MCP endpoints return (#7280)

* Let operators set MCP server instructions

MCP clients add a server's instructions to the model's context while
the server is connected. Operators need to add policy or usage
guidance there without rebuilding the server, and ToolHive had no way
to do it.

Add an optional instructions field (mode, value) to MCPServer,
MCPRemoteProxy and VirtualMCPServer, backed by a type in
pkg/mcp/instructions that the CRDs, the RunConfig and the vMCP config
share. A new middleware sets the instructions of successful initialize
and server/discover results: replace returns the value, and append and
prepend join it to the server's text with a blank line. It reads JSON
and event-stream bodies, including the legacy SSE GET stream, and
passes every other response through unread.

The operator maps the field into the RunConfig, vMCP applies the same
middleware to its endpoint, and thv run gains --instructions-file and
--instructions-mode.

Signed-off-by: Aron Gates <aron@muonspace.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Count InstructionsConfig in the SDK schema test

The SDK publishes the new InstructionsConfig schema, so the deliberate
schema count in the generated-invoker contract test moves to 211.

Signed-off-by: Aron Gates <aron@muonspace.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Retrigger CI after a Go proxy download failure

Signed-off-by: Aron Gates <aron@muonspace.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Bound and trim instructions values

A value is now used without leading and trailing white space, so a file
that ends in a newline or a YAML block adds no blank line. A value that
is only white space, or longer than 65536 characters, is rejected by
Validate and by the CRD schema. The RunConfig ConfigMap holds the value
twice, and the bound keeps both copies well under the 1 MiB limit.

A VirtualMCPServer may set spec.instructions ... (continued)

640 of 713 new or added lines in 19 files covered. (89.76%)

1 existing line in 1 file now uncovered.

104332 of 139247 relevant lines covered (74.93%)

983.29 hits per line

Uncovered Changes

Lines Coverage ∆ File
54
90.64
pkg/mcp/instructions_middleware.go
8
46.05
0.0% cmd/thv-operator/api/v1beta1/zz_generated.deepcopy.go
4
85.0
-0.26% pkg/runner/middleware.go
2
66.46
0.82% cmd/thv/app/run_flags.go
2
84.31
0.02% pkg/runner/config_builder.go
2
86.63
-0.19% pkg/vmcp/server/server.go
1
37.7
-0.07% pkg/vmcp/cli/serve.go

Coverage Regressions

Lines Coverage ∆ File
1
94.25
0.0% pkg/authserver/storage/memory.go
Jobs
ID Job ID Ran Files Coverage
1 45903316458.1 26 Nov 2026 10:24PM UTC 1086
74.93
GitHub Action Run
Source Files on build 45903316458
  • Tree
  • List 1086
  • Changed 25
  • Source Changed 22
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45903316458
  • 4b9f6783 on github
  • Prev Build on main (#45887516421)
  • Next Build on main (#45963066522)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc