Compare commits

..

1 Commits

Author SHA1 Message Date
Novice
3d02f425d0 chore: fix test cases 2025-10-29 14:51:19 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -271,6 +271,7 @@ class MCPProviderEntity(BaseModel):
def _decrypt_dict(self, data: dict[str, Any]) -> dict[str, Any]:
"""Generic method to decrypt dictionary fields"""
# Lazy import to avoid circular dependency
from core.tools.utils.encryption import create_provider_encrypter
if not data:

View File

@@ -7,6 +7,7 @@ from pydantic import ValidationError
from yarl import URL
from configs import dify_config
from core.entities.mcp_provider import MCPConfiguration
from core.helper.provider_cache import ToolProviderCredentialsCache
from core.mcp.types import Tool as MCPTool
from core.plugin.entities.plugin_daemon import PluginDatasourceProviderEntity
@@ -239,8 +240,6 @@ class ToolTransformService:
user_name: str | None = None,
include_sensitive: bool = True,
) -> ToolProviderApiEntity:
from core.entities.mcp_provider import MCPConfiguration
# Use provided user_name to avoid N+1 query, fallback to load_user() if not provided
if user_name is None:
user = db_provider.load_user()