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

stacklok / toolhive / 21917035694
62%

Build:
DEFAULT BRANCH: main
Ran 11 Feb 2026 06:15PM UTC
Jobs 1
Files 528
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

11 Feb 2026 06:06PM UTC coverage: 61.667% (+0.01%) from 61.653%
21917035694

push

github

web-flow
Add ToolStore interface and refactor DummyOptimizer to use it (#3749)

* Add ToolStore interface and refactor DummyOptimizer to use it

Introduce a ToolStore abstraction that separates tool storage and search
from the Optimizer interface. This lays the foundation for replacing the
in-memory substring matching with a SQLite FTS5 backend in a follow-up PR.

Changes:
- Add ToolStore interface (UpsertTools, Search, Close) in store.go
- Add InMemoryToolStore implementation preserving existing behavior
- Add Close() method to Optimizer interface for lifecycle management
- Refactor DummyOptimizer to delegate search to a shared ToolStore with
  per-instance scope filtering
- Update OptimizerFactory signature to return (Optimizer, error)
- Track session optimizers in Server for cleanup on shutdown
- Update commands.go wiring to create shared InMemoryToolStore
- Add comprehensive tests for InMemoryToolStore

Part of #3731

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Address first review comments

* Simiply DummyOptimizer struct

* Added a vMCP yaml with an example

* Address review about context

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

67 of 82 new or added lines in 4 files covered. (81.71%)

8 existing lines in 4 files now uncovered.

43097 of 69887 relevant lines covered (61.67%)

76.45 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% cmd/vmcp/app/commands.go
2
91.84
2.18% pkg/vmcp/optimizer/dummy_optimizer.go
6
88.89
pkg/vmcp/optimizer/store.go
6
78.42
-0.49% pkg/vmcp/server/server.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
79.58
-0.53% pkg/transport/proxy/httpsse/http_proxy.go
2
57.89
-3.51% pkg/transport/session/sse_session.go
2
71.43
-1.68% pkg/vmcp/k8s/manager.go
2
91.84
2.18% pkg/vmcp/optimizer/dummy_optimizer.go
Jobs
ID Job ID Ran Files Coverage
1 21917035694.1 11 Feb 2026 06:15PM UTC 528
61.67
GitHub Action Run
Source Files on build 21917035694
  • Tree
  • List 528
  • Changed 9
  • Source Changed 3
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21917035694
  • d07ac209 on github
  • Prev Build on main (#21916009151)
  • Next Build on main (#21921569153)
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