mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
feat: update mcp to 0618 to support output schema
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user