-
Notifications
You must be signed in to change notification settings - Fork 6k
Mcp kit #5399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
glide-the
wants to merge
48
commits into
chatchat-space:master
Choose a base branch
from
glide-the:mcp_kit
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Mcp kit #5399
Conversation
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
…nd improving output parsing. Update agent registry to handle MCP connections and streamline tool retrieval. Refactor tests to accommodate new MCP client configurations.
…xecution and output handling. Update agents registry to support MCP tools and improve output parsing in relevant modules.
…ing directory support and refining output parsing logic. Update prompt template to include current working directory as an input variable. Refactor integration tests for improved agent execution and tool handling.
…cal usage rules and improving parameter validation in Pydantic models. Update tool descriptions to emphasize required fields and ensure proper execution format. Streamline chat functionality to support new agent configurations and improve overall tool handling.
…ting. Update parameter validation in knowledge tools to emphasize required fields. Add a new README file for project documentation, detailing installation, configuration, and usage instructions.
…les. Enhance output parsing in PlatformKnowledgeOutputParser to handle additional tool tags, improving overall agent functionality and internal processing.
…t executor setup code, streamlining the return process for model data.
…ks and simplifying the initialization of the agent executor. Streamline the process for setting up the full chain for chat input.
…se operations. Replace the conversation memory handling with direct database interactions for message retrieval and updates. Remove unused conversation buffer memory class to streamline the codebase.
…of BaseToolOutput from langchain_chatchat. This change enhances code consistency and prepares for future tool enhancements.
…EM_PROMPT. Refactor namespace in MCPToolAction for improved clarity and adjust intermediate_steps type in PlatformToolsRunnable to accommodate string outputs.
…sage content before XML wrapping. This change improves the handling of message formatting by removing unnecessary tags, enhancing overall output integrity.
…abase models, and web UI integration. Implement CRUD operations for MCP connections and profiles, enhancing the overall system for managing connections with detailed configurations and settings.
…retrieving, creating, updating, resetting, and deleting MCP profiles. Refactor database interaction to remove session dependency in profile-related functions, enhancing code clarity and maintainability.
… operations and refactoring database interaction to return dictionaries instead of model instances. This improves error handling and response consistency across the API, while also updating the web UI to support editing and deleting connections with better user feedback.
…oved session state handling and validation. Refactor button actions for adding connections and streamline the form submission process, ensuring better user experience and error handling.
… fields, replacing them with server_name and transport. Update related CRUD operations and logging for consistency. Enhance database model to support additional connection configurations and improve web UI for better user experience.
…API routes for improved clarity and maintainability.
… replacing `st.experimental_rerun()` with `st.rerun()` for improved session state handling and consistency in UI behavior.
… command fields, enhancing flexibility in request body. Refactor connection retrieval function for consistency in naming conventions.
…ses instead of HTTP exceptions. Update related database retrieval logic and enhance web UI with toggle functionality for enabling/disabling connections, improving user experience and error handling.
…d database models to streamline connection management. Update related functions and UI components to reflect this change, enhancing clarity and maintainability.
… schemas, API routes, and database models. Update related functions to store command within the config dictionary, enhancing configuration clarity. Adjust web UI to reflect these changes, improving user experience and maintainability.
… schemas and API requests, consolidating it within the config dictionary. Update related functions and the web UI to enhance clarity and maintainability, while improving session state handling for timeout and working directory settings.
… MCP connection support. Update chat function to include use_mcp parameter, allowing for dynamic MCP connection management. Adjust web UI to incorporate MCP usage toggle, improving user experience and flexibility in agent interactions.
…uration based on the presence of tools in the request body. This change enhances the robustness of the chat function by preventing potential errors when no tools are provided.
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.
本次 PR 对项目架构进行了系统性重构,重点在于引入 MCP 工具和连接管理、精简聊天链路、规范提示和工具调用格式,并移除了不再维护的前端代码。这些改动显著提升了代码的可维护性、可扩展性和稳定性。建议合并后配合部署测试,重点关注 MCP 工具调用、数据库会话管理以及新的提示模板在实际应用中的表现。