"""Agent Commerce MCP Server — Kaufprotokoll für AI-Agents."""

from mcp.server.fastmcp import FastMCP

from src.tools.commerce import register_commerce_tools

mcp = FastMCP(
    "Agent Commerce MCP Server",
    instructions=(
        "Agent commerce protocol — enables AI agents to create purchase intents, "
        "compare offers, track purchases, and verify merchants. "
        "All data is stored locally in SQLite."
    ),
)

# Alle Tools registrieren
register_commerce_tools(mcp)


def main():
    """Server starten."""
    mcp.run(transport="stdio")


if __name__ == "__main__":
    main()
