feat(mcp): add minimal Python MCP client for reactome-mcp integration#127
Open
GovindhKishore wants to merge 1 commit intoreactome:mainfrom
Open
feat(mcp): add minimal Python MCP client for reactome-mcp integration#127GovindhKishore wants to merge 1 commit intoreactome:mainfrom
GovindhKishore wants to merge 1 commit intoreactome:mainfrom
Conversation
Author
|
Hi @adamjohnwright , this PR adds a minimal Python MCP client as a foundation for integrating the |
This was referenced Mar 10, 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.
Summary
Adds a minimal Python MCP integration layer under
src/mcp/that allows the Reactome Chatbot to communicate with thereactome-mcpserver over JSON-RPC stdio.Closes #126
Motivation
The
reactome-mcpserver exposes 53 live tools covering search, pathway queries, enrichment analysis, entity lookup, and more. These tools query Reactome APIs directly, meaning they always return current data regardless of when embeddings were last built. The chatbot currently has no way to talk to this server. This PR adds the foundation that makes all future MCP-based features possible.This PR does not wire MCP into the LangGraph agent or add query routing - that is follow-up work. The sole purpose here is a working, tested communication layer between Python and the MCP server.
Changes
mcp_process_manager.pyasyncio.create_subprocess_execterminate(), falls back tokill()after 5 secondsmcp_client.pycall_tool()convenience method for cleaner tool invocationTesting
Tested locally by starting the server programmatically and calling
tools/listandreactome_search.tools/listconfirmed all 53 tools are accessible.reactome_searchoutput viacall_tool():AI Usage Transparency
AI tools were used during development and drafting. All code was manually reviewed and tested locally.