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

stacklok / toolhive / 18687983454
59%

Build:
DEFAULT BRANCH: main
Ran 21 Oct 2025 02:56PM UTC
Jobs 1
Files 283
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

21 Oct 2025 02:51PM UTC coverage: 47.422% (+0.8%) from 46.664%
18687983454

push

github

web-flow
Add MCPRemoteProxy CRD controller for remote MCP server proxying (#2226)

* Add MCPRemoteProxy CRD and controller for remote MCP server proxying

Implements the MCPRemoteProxy custom resource to enable Kubernetes-based
proxying of remote MCP servers with authentication, authorization, audit
logging, and tool filtering. This brings feature parity with the existing
CLI 'thv run <remote-url>' capability to the Kubernetes operator.

Organizations can now deploy centralized remote MCP proxies in Kubernetes
to gain visibility, policy enforcement, and audit trails for employee
interactions with external SaaS MCP services (e.g., Salesforce MCP, GitHub MCP).

Key features:
- Validates incoming OAuth tokens (JWT or introspection)
- Extracts user identity from validated tokens for policy enforcement
- Applies existing ToolHive middleware (authz, audit, tool filtering, telemetry)
- Optional token exchange when IDP federation exists
- Stateless, horizontally scalable architecture
- User-configurable transport (SSE or streamable-http)

Implementation includes:
- MCPRemoteProxy CRD with comprehensive validation
- Controller with refactored, maintainable code structure
- Common helpers shared with MCPServer controller
- Comprehensive unit tests (20+ test functions, 60+ test cases)
- Generated CRD manifests and API documentation

Related proposal: docs/proposals/THV-2151-remote-mcp-proxy.md

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>

* Fix CI: Update chainsaw tests and bump operator chart version

Updates chainsaw E2E test assertions to include MCPRemoteProxy RBAC
permissions, and bumps operator chart version to 0.2.24 for the new
controller and RBAC changes.

Changes:
- Add mcpremoteproxies RBAC assertions to multi-tenancy test
- Add mcpremoteproxies RBAC assertions to single-tenancy test
- Bump operator chart version from 0.2.23 to 0.2.24

🤖 Gen... (continued)

864 of 1134 new or added lines in 7 files covered. (76.19%)

6 existing lines in 1 file now uncovered.

18284 of 38556 relevant lines covered (47.42%)

15.82 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
53.48
-1.57% cmd/thv-operator/controllers/mcpserver_controller.go
8
0.0
0.0% cmd/thv-operator/main.go
20
86.79
13.59% cmd/thv-operator/controllers/common_helpers.go
20
90.7
cmd/thv-operator/controllers/mcpremoteproxy_deployment.go
36
79.66
cmd/thv-operator/controllers/mcpremoteproxy_runconfig.go
178
63.67
cmd/thv-operator/controllers/mcpremoteproxy_controller.go

Uncovered Existing Lines

Lines Coverage ∆ File
6
64.89
-6.38% pkg/secrets/keyring/keyctl_linux.go
Jobs
ID Job ID Ran Files Coverage
1 18687983454.1 21 Oct 2025 02:56PM UTC 283
47.42
GitHub Action Run
Source Files on build 18687983454
  • Tree
  • List 283
  • Changed 7
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18687983454
  • 9d1cd8c3 on github
  • Prev Build on main (#18684290682)
  • Next Build on main (#18688077172)
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