feat: update mcp to 0618 to support output schema

This commit is contained in:
Novice
2025-09-10 17:27:11 +08:00
parent cbc0e639e4
commit aa44c38b58
11 changed files with 235 additions and 91 deletions

View File

@ -298,6 +298,17 @@ class MCPToolManageService:
mcp_provider.tools = "[]"
db.session.commit()
@classmethod
def clear_mcp_provider_credentials(
cls,
mcp_provider: MCPToolProvider,
):
mcp_provider.tools = "[]"
mcp_provider.encrypted_credentials = "{}"
mcp_provider.updated_at = datetime.now()
mcp_provider.authed = False
db.session.commit()
@classmethod
def _re_connect_mcp_provider(cls, server_url: str, provider_id: str, tenant_id: str):
# Get the existing provider to access headers and timeout settings

View File

@ -254,6 +254,7 @@ class ToolTransformService:
description=I18nObject(en_US=tool.description, zh_Hans=tool.description),
parameters=ToolTransformService.convert_mcp_schema_to_parameter(tool.inputSchema),
labels=[],
output_schema=tool.outputSchema,
)
for tool in tools
]