Skip to content

Add 11 new MCP tools for diagnostics, BGP RIB, BGP config, and structures#977

Merged
dhalperi merged 1 commit intomasterfrom
spr/master/b9c3b292
Apr 7, 2026
Merged

Add 11 new MCP tools for diagnostics, BGP RIB, BGP config, and structures#977
dhalperi merged 1 commit intomasterfrom
spr/master/b9c3b292

Conversation

@dhalperi
Copy link
Copy Markdown
Member

@dhalperi dhalperi commented Apr 7, 2026

New tools:

  • get_parse_warnings, get_init_issues, get_file_parse_status,
    get_vi_conversion_status, get_vi_conversion_warnings
  • get_bgp_rib (with legacy nexthop column dropping), get_evpn_rib
  • get_bgp_peer_configuration, get_bgp_process_configuration
  • get_defined_structures, get_unused_structures

Prompt:

Add MCP tools for parse warnings, init issues, file parse status,
and bgp rib. Also look through the questions and add any natural
extensions of these.

For routes-style questions, use the same column logic (Next_Hop
only) as routes.

…ures

New tools:
- get_parse_warnings, get_init_issues, get_file_parse_status,
  get_vi_conversion_status, get_vi_conversion_warnings
- get_bgp_rib (with legacy nexthop column dropping), get_evpn_rib
- get_bgp_peer_configuration, get_bgp_process_configuration
- get_defined_structures, get_unused_structures

----

Prompt:
```
Add MCP tools for parse warnings, init issues, file parse status,
and bgp rib. Also look through the questions and add any natural
extensions of these.

For routes-style questions, use the same column logic (Next_Hop
only) as routes.
```

commit-id:b9c3b292
@batfish-bot
Copy link
Copy Markdown

This change is Reviewable

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

❌ Patch coverage is 84.00000% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.58%. Comparing base (11365f1) to head (477afa2).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pybatfish/mcp/server.py 84.00% 8 Missing and 8 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #977      +/-   ##
==========================================
- Coverage   86.65%   86.58%   -0.07%     
==========================================
  Files          26       26              
  Lines        3806     3906     +100     
  Branches      508      527      +19     
==========================================
+ Hits         3298     3382      +84     
- Misses        356      364       +8     
- Partials      152      160       +8     
Files with missing lines Coverage Δ
pybatfish/mcp/server.py 84.63% <84.00%> (-0.22%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dhalperi dhalperi enabled auto-merge (squash) April 7, 2026 22:08
Copy link
Copy Markdown
Member Author

@dhalperi dhalperi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dhalperi reviewed 2 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on dhalperi).

@dhalperi dhalperi merged commit 5ed5594 into master Apr 7, 2026
18 of 19 checks passed
@dhalperi dhalperi deleted the spr/master/b9c3b292 branch April 7, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants