refactor(agents): group MCP tools into shared/tools/mcp/ subpackage

The three MCP siblings (mcp_client/mcp_tool/mcp_tools_cache) served one
objective but sat loose at the top of shared/tools. Grouped them into an
mcp/ package and dropped the redundant prefix: client.py, tool.py, cache.py.
Updated all importers (routes, mcp_tools subagent, e2e fake patch targets,
unit test) to the new paths.
This commit is contained in:
CREDO23 2026-06-04 20:35:38 +02:00
parent 8d0090c6a1
commit c51aca6ccc
9 changed files with 23 additions and 16 deletions

View file

@ -21,7 +21,7 @@ from sqlalchemy.ext.asyncio import AsyncSession
from app.agents.multi_agent_chat.constants import (
CONNECTOR_TYPE_TO_CONNECTOR_AGENT_MAPS,
)
from app.agents.shared.tools.mcp_tool import load_mcp_tools
from app.agents.shared.tools.mcp.tool import load_mcp_tools
from app.db import SearchSourceConnector
logger = logging.getLogger(__name__)