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

stacklok / toolhive / 20102857274
59%

Build:
DEFAULT BRANCH: main
Ran 10 Dec 2025 02:56PM UTC
Jobs 1
Files 398
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

10 Dec 2025 02:55PM UTC coverage: 49.538% (+0.03%) from 49.507%
20102857274

push

github

web-flow
Add audit middleware to vMCP server (#2981)

* Add audit middleware to vMCP server

Integrate the existing ToolHive audit middleware into the Virtual MCP
Server to enable audit logging of MCP operations for security,
compliance, and debugging purposes.

Changes:
  - Add AuditConfig field to vMCP server Config struct
  - Add audit middleware initialization in Start() method
  - Position audit middleware in chain: Auth → Audit → Discovery → Telemetry
  - Use "streamable-http" transport type for vMCP audit events
  - Add unit tests for audit configuration handling

The audit middleware is optional (enabled when AuditConfig is provided)
and uses the existing pkg/audit infrastructure with MCP-specific event
types (mcp_tool_call, mcp_initialize, etc.).

Partially-closes: #2980

* changes from review

---------

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

9 of 11 new or added lines in 1 file covered. (81.82%)

26670 of 53837 relevant lines covered (49.54%)

58.7 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
71.92
3.99% pkg/vmcp/server/server.go
Jobs
ID Job ID Ran Files Coverage
1 20102857274.1 10 Dec 2025 02:56PM UTC 398
49.54
GitHub Action Run
Source Files on build 20102857274
  • Tree
  • List 398
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20102857274
  • 19767615 on github
  • Prev Build on main (#20098459397)
  • Next Build on main (#20103459930)
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