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

dcdpr / jp / 16470166745
58%

Build:
DEFAULT BRANCH: main
Ran 23 Jul 2025 12:10PM UTC
Jobs 1
Files 142
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

23 Jul 2025 12:07PM UTC coverage: 39.564% (+0.5%) from 39.049%
16470166745

push

github

web-flow
feat(config, mcp)!: Implement nested inheritance for MCP config (#218)

The previous MCP configuration resolution was based on a simple,
two-level inheritance model that was evaluated at runtime using getter
methods. This approach was brittle and led to complex consumer code.

This commit refactors the configuration loading to use a more robust,
multi-level inheritance model implemented within the `with_fallback`
logic of the partial configuration structs. This centralizes resolution
logic, making it more predictable and simplifying consuming code, as the
final `Config` struct is always fully resolved.

`Tool` configurations now inherit settings through multiple layers of
specificity, from a specific tool on a specific server to global tool
settings on a global server.

BREAKING CHANGE: The inheritance and resolution logic for MCP server and
tool configurations has been completely overhauled.

The previous model used a simple fallback from a specific server/tool
configuration to a global (*) one. The new model implements a more
complex, multi-level inheritance system that correctly merges
configurations from different sources (e.g., user config and default
config).

Users should review their configurations to ensure they are compatible
with the new, more predictable inheritance rules. This may allow for
simplification of existing configurations.

Signed-off-by: Jean Mertz <git@jeanmertz.com>

492 of 533 new or added lines in 8 files covered. (92.31%)

35 existing lines in 3 files now uncovered.

4949 of 12509 relevant lines covered (39.56%)

5.5 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% crates/jp_config/src/fs.rs
1
62.5
0.0% crates/jp_config/src/style.rs
3
86.85
-2.35% crates/jp_config/src/mcp/server.rs
12
0.0
0.0% crates/jp_cli/src/cmd/query.rs
24
0.0
0.0% crates/jp_cli/src/cmd/query/event.rs

Uncovered Existing Lines

Lines Coverage ∆ File
6
38.46
3.36% crates/jp_config/src/mcp/server/tool.rs
14
57.85
-1.61% crates/jp_config/src/map.rs
15
86.85
-2.35% crates/jp_config/src/mcp/server.rs
Jobs
ID Job ID Ran Files Coverage
1 16470166745.1 23 Jul 2025 12:10PM UTC 142
39.56
GitHub Action Run
Source Files on build 16470166745
  • Tree
  • List 142
  • Changed 9
  • Source Changed 9
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16470166745
  • 63a035c8 on github
  • Prev Build on main (#16427905339)
  • Next Build on main (#16470731032)
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