feat: viz mcp aggregator#21
Merged
Merged
Conversation
8ec895a to
b5a3715
Compare
girish
approved these changes
Apr 11, 2026
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.
Description
This PR refactors the MCP server to support dual proxy aggregation, connecting to both Notebook and Visualization MCP sockets simultaneously. It transitions the server from a single-proxy pass-through model to a master-aggregator architecture.
Key Changes
Directory Structure
notebook_mcp/tomcp/to reflect its expanded role as a multi-domain aggregator.package.jsonandrelease-please-config.jsonto point to the newmcp/directory.MCP Server (
mcp/server.ts)server.tsto act as a master MCP server.notebooks-[ide_name]andvisualization-[ide_name]proxies usingStdioClientTransport.ListToolsRequestSchemahandler merges tools from both proxies.CallToolRequestSchemaroutes tool calls to the correct underlying proxy based on a tool ownership map.null, preventing correct fallback behavior.Build and Dependencies
mcp/build.jsto treatcross-spawnand Node.js built-ins as external modules to avoid dynamic require errors in ESM output.cross-spawnas an explicit dependency in the rootpackage.jsonto ensure it is available when running vianpxfrom the git repository.