"""MCP (Model Context Protocol) adapter package.

Bridges external MCP tool servers into the CleverAgents ToolRegistry
via ``MCPToolAdapter``.  Includes ``MCPRefreshHook`` for wiring
``notifications/tools/list_changed`` events to ``SkillRegistry.refresh_all()``.

Lifecycle management is provided by ``McpClient`` (lazy start, auto-stop,
health monitoring) and ``McpRegistry`` (namespace-isolated server tracking).
Sandbox path rewriting is provided by ``SandboxPathRewriter``.
"""

from cleveragents.mcp.adapter import (
    MCPCapabilityMetadata,
    MCPServerConfig,
    MCPToolAdapter,
    MCPToolDescriptor,
    MCPToolResult,
)
from cleveragents.mcp.client import McpClient, McpClientConfig, McpClientState
from cleveragents.mcp.refresh_hook import MCPRefreshHook
from cleveragents.mcp.registry import McpRegistry
from cleveragents.mcp.sandbox import SandboxPathRewriter, SandboxPathRewriterConfig

__all__ = [
    "MCPCapabilityMetadata",
    "MCPRefreshHook",
    "MCPServerConfig",
    "MCPToolAdapter",
    "MCPToolDescriptor",
    "MCPToolResult",
    "McpClient",
    "McpClientConfig",
    "McpClientState",
    "McpRegistry",
    "SandboxPathRewriter",
    "SandboxPathRewriterConfig",
]
