-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
mcp service draft #647
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
base: dev
Are you sure you want to change the base?
mcp service draft #647
Conversation
feat: improved ui and some optimizations
|
@cashmeredev is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review by RecurseML
🔍 Review performed on 2387004..22ce3bc
✨ No bugs found, your code is sparkling clean
✅ Files analyzed, no issues (3)
• surfsense_backend/app/agents/services/__init__.py
• surfsense_backend/app/agents/services/mcp_service.py
• surfsense_backend/pyproject.toml
⏭️ Files skipped (1)
| Locations |
|---|
surfsense_backend/uv.lock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pr for mcp service
Description
Motivation and Context
FIX #
Screenshots
API Changes
Change Type
Testing Performed
Checklist
High-level PR Summary
This PR introduces MCP (Model Context Protocol) server integration to the agent system. It adds a new
MCPServiceclass that can load user-specific MCP server configurations from the database and expose their tools to the agent's toolset. The changes include a new database modelMCPServerConfigfor storing user-specific server configurations (supporting both stdio and HTTP transports), a service layer for managing MCP clients, and integration into the existing tool registry system. Thelangchain-mcp-adaptersdependency is added to enable the integration.⏱️ Estimated Review Time: 5-15 minutes
💡 Review Order Suggestion
surfsense_backend/pyproject.tomlsurfsense_backend/app/db.pysurfsense_backend/app/agents/services/__init__.pysurfsense_backend/app/agents/services/mcp_service.pysurfsense_backend/app/agents/new_chat/tools/registry.pysurfsense_backend/uv.lock