Support pluggable session types in MCP server#976
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #976 +/- ##
==========================================
- Coverage 87.79% 86.65% -1.15%
==========================================
Files 26 26
Lines 3769 3806 +37
Branches 503 508 +5
==========================================
- Hits 3309 3298 -11
- Misses 330 356 +26
- Partials 130 152 +22
🚀 New features to boost your workflow:
|
40ea8db to
93847a4
Compare
Replace the hardcoded Session(host=host) with a named session registry backed by Session.get(). Sessions can be configured via: - ~/.batfish/sessions.json config file - register_session MCP tool (dynamic, mid-conversation) - create_server(default_session=...) API (programmatic) - BATFISH_HOST env var (backwards-compatible default) Every tool now accepts an optional `session` parameter (default: "default") instead of `host`, selecting from the registry. New tools: register_session, list_sessions. commit-id:bcfbcb1c
93847a4 to
50be8f9
Compare
dhalperi
commented
Apr 7, 2026
Member
Author
dhalperi
left a comment
There was a problem hiding this comment.
@dhalperi reviewed 4 files and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on dhalperi).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace the hardcoded Session(host=host) with a named session
registry backed by Session.get(). Sessions can be configured via:
Every tool now accepts an optional
sessionparameter (default:"default") instead of
host, selecting from the registry.New tools: register_session, list_sessions.
Stack: