feat: Add MCP services support and enhance migration scripts

- Introduced new MCP services functionality, including management routes and integration with the agent service.
- Updated Docker Compose configuration to include a new SQL migration for MCP services.
- Enhanced Makefile with new migration commands for versioning and creating migrations.
- Improved chat component to handle selected MCP services in message processing.
- Updated migration documentation to reflect new strategies and added MCP services migration files.
This commit is contained in:
wizardchen
2025-11-09 03:27:24 +08:00
parent 83721f98d4
commit 77b6133e2a
34 changed files with 3577 additions and 1063 deletions
+4
View File
@@ -287,11 +287,15 @@ const sendMsg = async (value, modelId = '') => {
// Use agent-chat endpoint when agent is enabled, otherwise use knowledge-chat
const endpoint = agentEnabled ? '/api/v1/agent-chat' : '/api/v1/knowledge-chat';
// Get selected MCP services from settings store (if available)
const mcpServiceIds = useSettingsStoreInstance.settings.selectedMCPServices || [];
await startStream({
session_id: session_id.value,
knowledge_base_ids: kbIds,
agent_enabled: agentEnabled,
summary_model_id: modelId,
mcp_service_ids: mcpServiceIds,
query: value,
method: 'POST',
url: endpoint