- Make app/domains/auth/ and app/core/redis.py mypy-clean under strict. - Add mypy-gate.ini and Makefile mypy-gate target; promote typecheck-gate in CI. - Consolidate domains into app/domains/: bulletin, admin, intelligence, markets. - Extract referral domain incl. DeFi partner DEX ref links; keep Telegram bot wired. - Move app/mcp/ package and app/api/v1/mcp/router into app/domains/mcp/. - Archive dead app/mcp_router.py.
33 lines
789 B
Python
33 lines
789 B
Python
"""MCP domain - public API.
|
|
|
|
Phase 4 domain consolidation: app.mcp -> app.domains.mcp.
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
from app.domains.mcp.registry import TOOL_CATEGORIES, get_tool_by_name
|
|
from app.domains.mcp.server import (
|
|
MCP_PROTOCOL_VERSION,
|
|
MCP_SERVER_VERSION,
|
|
TOOL_CATALOG,
|
|
TOOL_DEPRECATED,
|
|
TOOL_SUCCESSORS,
|
|
TOOL_VERSIONS,
|
|
call_tool,
|
|
)
|
|
from app.domains.mcp.x402_mcp_server import TOOLS, handle_mcp_call
|
|
from app.domains.mcp.x402_tool_manager import X402ToolManager
|
|
|
|
__all__ = [
|
|
"MCP_PROTOCOL_VERSION",
|
|
"MCP_SERVER_VERSION",
|
|
"TOOLS",
|
|
"TOOL_CATALOG",
|
|
"TOOL_CATEGORIES",
|
|
"TOOL_DEPRECATED",
|
|
"TOOL_SUCCESSORS",
|
|
"TOOL_VERSIONS",
|
|
"X402ToolManager",
|
|
"call_tool",
|
|
"get_tool_by_name",
|
|
"handle_mcp_call",
|
|
]
|