"""MCP Server 适配层"""

from __future__ import annotations

import logging

logger = logging.getLogger(__name__)


class MCPServer:
    """标准 MCP Server，将注册工具映射为 MCP Tool"""

    def __init__(self, port: int = 8001) -> None:
        self.port = port

    async def start(self) -> None:
        """启动 MCP Server"""
        # TODO: 接入 MCP SDK，暴露 tools/list 和 tools/call
        logger.info(f"MCP Server placeholder on port {self.port}")

    async def refresh_tools(self) -> None:
        """注册表变更时刷新 MCP Tool 列表"""
        # TODO: 重新加载注册表
        pass
