# Copyright 2025 Softwell S.r.l.
# Licensed under the Apache License, Version 2.0

"""Run MCP demo as standalone ASGI app (no AsgiServer).

Usage:
    python examples/mcp_demo/run_standalone.py

Test with curl:
    curl -s -X POST http://localhost:8000/ \
      -H 'Content-Type: application/json' \
      -d '{"jsonrpc":"2.0","id":1,"method":"initialize"}' | python -m json.tool
"""

import uvicorn

from mcp_demo_app import Application

app = Application(mcp_name="mcp-demo", mcp_version="0.1.0")


if __name__ == "__main__":
    uvicorn.run(app, host="127.0.0.1", port=8000)
