"""Test that all 6 tools are registered on the MCP Creator server."""

from mcp_creator.server import mcp


def test_all_tools_registered():
    tool_names = set(mcp._tool_manager._tools.keys())
    expected = {
        "check_pypi_name",
        "scaffold_server",
        "add_tool",
        "build_package",
        "publish_package",
        "generate_launchguide",
    }
    assert expected.issubset(tool_names), f"Missing tools: {expected - tool_names}"


def test_tool_count():
    assert len(mcp._tool_manager._tools) == 6
