feat: 优化MCP工具调用体验并集成通用适配器

- 静默检查MCP工具可用性,支持提示词注入调用mcp
- 集成UniversalMCPAdapter,支持自动API能力检测和智能降级
- 新增MCP适配器配置项,增强系统兼容性和健壮性
This commit is contained in:
xiamuceer
2025-11-24 11:30:27 +08:00
parent 002a16d259
commit 69e3e46c96
8 changed files with 1085 additions and 50 deletions
+14
View File
@@ -0,0 +1,14 @@
"""MCP适配器模块 - 支持多种AI API的工具调用方式"""
from .base import BaseMCPAdapter, AdapterType
from .prompt_injection import PromptInjectionAdapter
from .function_calling import FunctionCallingAdapter
from .universal import UniversalMCPAdapter
__all__ = [
"BaseMCPAdapter",
"AdapterType",
"PromptInjectionAdapter",
"FunctionCallingAdapter",
"UniversalMCPAdapter",
]