Open
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
This pull request introduces integration with MCP servers, enabling external tool execution and orchestration within the runtime system. The changes add support for configuring MCP servers, managing their connections, injecting tool schemas into the LLM, and handling tool calls and results in the agent's workflow. The implementation is modular, with new classes for client management and orchestration, and updates to configuration and runtime initialization to support MCP functionality.
MCP Server Integration and Orchestration
MCPClientManagerand transport support for stdio and HTTP, including tool discovery, schema conversion, and tool call execution (src/mcp_servers/client.py).MCPOrchestratorto manage MCP tool execution, intercept tool calls from LLM output, execute tools concurrently, and re-invoke LLM with tool results (src/mcp_servers/orchestrator.py).load_mcp) to initialize connections based on configuration (src/mcp_servers/__init__.py).Configuration and Runtime Changes
ModeConfigandRuntimeConfigto support MCP server configuration, including parsing and loading from config files (src/runtime/config.py,src/runtime/converter.py). [1] [2] [3] [4] [5] [6] [7]src/runtime/cortex.py). [1] [2] [3] [4]LLM and Action Handling
src/llm/function_schemas.py).src/runtime/cortex.py).Prompt and Tool Description Improvements
src/fuser/__init__.py).These changes collectively enable seamless integration of external MCP tools into the agent's workflow, allowing the LLM to call tools, receive results, and generate informed responses.