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

stacklok / toolhive / 18851856932

27 Oct 2025 06:29PM UTC coverage: 47.434% (-0.04%) from 47.476%
18851856932

push

github

web-flow
Add Virtual MCP Server routing interfaces and domain model (#2333)

* Add Virtual MCP Server routing interfaces and domain model

Implement foundational domain interfaces for Virtual MCP Server (vMCP)
following Domain-Driven Design principles. This enables parallel
implementation of vMCP features across multiple teams.

Package structure:
- pkg/vmcp/types.go: Shared domain types (BackendTarget, Tool, etc.)
- pkg/vmcp/errors.go: Common domain errors
- pkg/vmcp/router/: Request routing interfaces
- pkg/vmcp/aggregator/: Capability aggregation interfaces
- pkg/vmcp/auth/: Authentication interfaces (incoming & outgoing)
- pkg/vmcp/composer/: Workflow engine interfaces
- pkg/vmcp/config/: Platform-agnostic configuration model
- pkg/vmcp/cache/: Token caching interfaces

Key design decisions:
- Shared types in root package avoid circular dependencies
- Extensible authentication via Strategy interface
- BackendDiscoverer abstraction enables CLI and K8s implementations
- RoutingTable maps capabilities to backends (composite tools excluded)
- Configuration model matches proposal YAML structure

Related: #2106

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

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

* Address PR feedback on vMCP routing interfaces

Changes:
- Use ConflictResolutionStrategy enum instead of string in ResolvedTool
- Remove specific auth strategy examples from OutgoingAuthenticator docs
  until design decisions are finalized

Addresses feedback from:
- yrobla: Use typed enum for conflict resolution strategy
- jhrozek: Defer auth strategy details until design is complete

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

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

---------

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

0 of 6 new or added lines in 1 file covered. (0.0%)

18 existing lines in 2 files now uncovered.

19075 of 40214 relevant lines covered (47.43%)

15.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/pkg/vmcp/cache/cache.go


Source Not Available

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