Skip to content

feat(router): expose prompt-to-query via MCP - #3158

Merged
wilsonrivera merged 6 commits into
wilson/cosmo-335-cosmo-cloud-prompt-to-query-via-mcp-productfrom
alberto/router-575-router-mcp-query-generation-support
Oct 6, 2026
Merged

wilsonrivera merged 6 commits into
wilson/cosmo-335-cosmo-cloud-prompt-to-query-via-mcp-productfrom
alberto/router-575-router-mcp-query-generation-support

docs(router): document query generation tool

30969f3
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Oct 6, 2026 in 1s

63.89% (target 30.00%)

View this Pull Request on Codecov

63.89% (target 30.00%)

Details

Codecov Report

❌ Patch coverage is 41.25000% with 94 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.89%. Comparing base (08ac9a1) to head (30969f3).

Files with missing lines Patch % Lines
router/pkg/mcpserver/server.go 66.66% 23 Missing and 9 partials ⚠️
router/internal/controlplane/transport.go 0.00% 22 Missing ⚠️
router/internal/prompttoquery/client.go 0.00% 22 Missing ⚠️
router/core/supervisor_instance.go 0.00% 12 Missing ⚠️
router/core/router.go 0.00% 4 Missing and 1 partial ⚠️
router/core/graph_server.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                                       Coverage Diff                                        @@
##           wilson/cosmo-335-cosmo-cloud-prompt-to-query-via-mcp-product    #3158      +/-   ##
================================================================================================
- Coverage                                                         64.59%   63.89%   -0.71%     
================================================================================================
  Files                                                               755      280     -475     
  Lines                                                             56858    32763   -24095     
  Branches                                                           6002        0    -6002     
================================================================================================
- Hits                                                              36726    20933   -15793     
+ Misses                                                            17413    10252    -7161     
+ Partials                                                           2719     1578    -1141     
Files with missing lines Coverage Δ
router/core/router_config.go 93.97% <ø> (ø)
router/internal/jwt/claims.go 60.00% <ø> (ø)
router/pkg/config/config.go 84.68% <ø> (ø)
router/pkg/mcpserver/auth_middleware.go 92.85% <100.00%> (+0.07%) ⬆️
router/core/graph_server.go 85.72% <0.00%> (ø)
router/core/router.go 71.22% <0.00%> (-0.21%) ⬇️
router/core/supervisor_instance.go 14.38% <0.00%> (-0.62%) ⬇️
router/internal/controlplane/transport.go 0.00% <0.00%> (ø)
router/internal/prompttoquery/client.go 0.00% <0.00%> (ø)
router/pkg/mcpserver/server.go 78.55% <66.66%> (-1.23%) ⬇️

... and 485 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.