"""Agent Identity MCP Server — Identitäts- und Autorisierungssystem für AI-Agents."""

from mcp.server.fastmcp import FastMCP

from src.tools.identity import register_identity_tools

mcp = FastMCP(
    "Agent Identity MCP Server",
    instructions=(
        "OAuth for AI agents — create and manage agent identities, "
        "request and verify authorizations, track trust scores. "
        "All data is stored locally in SQLite."
    ),
)

# Alle Tools registrieren
register_identity_tools(mcp)


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


if __name__ == "__main__":
    main()
