#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = ["mcp>=1.2", "pydantic>=2.11"]
# ///
"""On-PATH MCP-server entry for the cc-session-core plugin's `bin/`.

Loads ``cc_session_core`` from the plugin's bundled ``src/`` (resolved relative to this
file, so it works without an install and without CLAUDE_PLUGIN_ROOT).
"""
import sys
from pathlib import Path

sys.path.insert(0, str(Path(__file__).resolve().parent.parent / "src"))

from cc_session_core.interface.mcp import main  # noqa: E402

if __name__ == "__main__":
    main()
