Skip to content

[fel] Enhanced MCP Client and Server Interaction with Tool Management Improvements#141

Merged
CodeCasterX merged 1 commit intoModelEngine-Group:3.5.xfrom
CodeCasterX:fel-enhancement-tool
May 27, 2025
Merged

[fel] Enhanced MCP Client and Server Interaction with Tool Management Improvements#141
CodeCasterX merged 1 commit intoModelEngine-Group:3.5.xfrom
CodeCasterX:fel-enhancement-tool

Conversation

@CodeCasterX
Copy link
Member

This commit introduces several enhancements to the MCP (Model Communication Protocol) client and server interaction, focusing on improving tool management and communication capabilities. Key changes include:

  1. ToolInfo Interface Expansion:
    • Added a new static method parseIdentifier to parse tool identifiers into namespace and tool name components, enhancing tool identification and management.
  2. MCP Client Enhancements:
    • Updated the DefaultMcpClient class to support more robust initialization and communication with the MCP server.
    • Introduced new methods for handling Server-Sent Events (SSE) and improved error handling for tool calls.
    • Enhanced the callTool method to return results directly and manage pending requests more efficiently.
  3. MCP Server Adjustments:
    • Modified the McpServer interface and its implementations to better support tool addition and retrieval.
    • Updated the DefaultMcpServer to provide a more structured server schema and improved tool registration logic.
  4. Weather Service Example:
    • Introduced a new weather service example (WeatherService and WeatherServiceImpl) to demonstrate tool implementation and usage within the MCP framework.
  5. Code Structure and Cleanup:
    • Reorganized and cleaned up code in various classes to improve readability and maintainability.
    • Removed deprecated or unused code related to the MCP server entity.
  6. Dependency and Plugin Updates:
    • Added new dependencies and updated plugins in the pom.xml file to support the enhanced MCP functionality.
  7. Test Code Updates:
    • Expanded test cases for the MCP client and server to ensure compatibility and functionality of the new features.

These changes collectively enhance the MCP framework's ability to manage and interact with tools, providing a more robust and flexible platform for model communication and execution.

… Improvements

This commit introduces several enhancements to the MCP (Model Communication Protocol) client and server interaction, focusing on improving tool management and communication capabilities. Key changes include:
1. ToolInfo Interface Expansion:
   - Added a new static method parseIdentifier to parse tool identifiers into namespace and tool name components, enhancing tool identification and management.
2. MCP Client Enhancements:
   - Updated the DefaultMcpClient class to support more robust initialization and communication with the MCP server.
   - Introduced new methods for handling Server-Sent Events (SSE) and improved error handling for tool calls.
   - Enhanced the callTool method to return results directly and manage pending requests more efficiently.
3. MCP Server Adjustments:
   - Modified the McpServer interface and its implementations to better support tool addition and retrieval.
   - Updated the DefaultMcpServer to provide a more structured server schema and improved tool registration logic.
4. Weather Service Example:
   - Introduced a new weather service example (WeatherService and WeatherServiceImpl) to demonstrate tool implementation and usage within the MCP framework.
5. Code Structure and Cleanup:
   - Reorganized and cleaned up code in various classes to improve readability and maintainability.
   - Removed deprecated or unused code related to the MCP server entity.
6. Dependency and Plugin Updates:
   - Added new dependencies and updated plugins in the pom.xml file to support the enhanced MCP functionality.
7. Test Code Updates:
   - Expanded test cases for the MCP client and server to ensure compatibility and functionality of the new features.
These changes collectively enhance the MCP framework's ability to manage and interact with tools, providing a more robust and flexible platform for model communication and execution.
@CodeCasterX CodeCasterX added this to the 3.5.0 milestone May 27, 2025
@CodeCasterX CodeCasterX requested review from loveTsong and wuayee May 27, 2025 08:29
@CodeCasterX CodeCasterX self-assigned this May 27, 2025
@CodeCasterX CodeCasterX added the type: enhancement A general enhancement label May 27, 2025
@CodeCasterX CodeCasterX added this to Nova May 27, 2025
@CodeCasterX CodeCasterX added the in: fel Issues in FEL(FIT Expression for LLM) modules label May 27, 2025
@CodeCasterX CodeCasterX merged commit 1d72d81 into ModelEngine-Group:3.5.x May 27, 2025
1 check passed
@github-project-automation github-project-automation bot moved this to Done in Nova May 27, 2025
Yager-42 pushed a commit to Yager-42/fit-framework that referenced this pull request Aug 16, 2025
… Improvements (ModelEngine-Group#141)

This commit introduces several enhancements to the MCP (Model Communication Protocol) client and server interaction, focusing on improving tool management and communication capabilities. Key changes include:
1. ToolInfo Interface Expansion:
   - Added a new static method parseIdentifier to parse tool identifiers into namespace and tool name components, enhancing tool identification and management.
2. MCP Client Enhancements:
   - Updated the DefaultMcpClient class to support more robust initialization and communication with the MCP server.
   - Introduced new methods for handling Server-Sent Events (SSE) and improved error handling for tool calls.
   - Enhanced the callTool method to return results directly and manage pending requests more efficiently.
3. MCP Server Adjustments:
   - Modified the McpServer interface and its implementations to better support tool addition and retrieval.
   - Updated the DefaultMcpServer to provide a more structured server schema and improved tool registration logic.
4. Weather Service Example:
   - Introduced a new weather service example (WeatherService and WeatherServiceImpl) to demonstrate tool implementation and usage within the MCP framework.
5. Code Structure and Cleanup:
   - Reorganized and cleaned up code in various classes to improve readability and maintainability.
   - Removed deprecated or unused code related to the MCP server entity.
6. Dependency and Plugin Updates:
   - Added new dependencies and updated plugins in the pom.xml file to support the enhanced MCP functionality.
7. Test Code Updates:
   - Expanded test cases for the MCP client and server to ensure compatibility and functionality of the new features.
These changes collectively enhance the MCP framework's ability to manage and interact with tools, providing a more robust and flexible platform for model communication and execution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: fel Issues in FEL(FIT Expression for LLM) modules type: enhancement A general enhancement

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant