Usage: cli mcp deploy [OPTIONS]

  Generate an Alibaba Cloud FC deployment artifact.

  Creates a Streamable HTTP ASGI application artifact and prints manual FC
  deployment steps. Automatic FC API deployment is not implemented.

  The artifact contains ``requirements.txt``, ``app.py`` (ASGI entry point), and
  ``config.yaml`` (a YAML deployment manifest with FC function settings and
  environment variables).

  ``--region`` overrides the FC region for this invocation; without it the
  region comes from ``ebx config set region`` / the ``SANDBOX_REGION``
  environment variable and defaults to ``cn-hangzhou``.

  A non-empty Bearer token is required (--generate-token or --auth-token-file).
  POST and DELETE /mcp are implemented. GET /mcp returns 405 until SSE server
  notifications exist. The function environment sets SANDBOX_REGION to the
  selected region.

  Examples:
    ebx mcp deploy --generate-token --api-key $E2B_API_KEY
    ebx mcp deploy --auth-token-file ./token.txt --region cn-shanghai
    ebx mcp deploy --generate-token --output-dir ./deploy-artifact

  Related commands:
    ebx mcp start                 Run the local STDIO server
    ebx mcp status                Inspect MCP authentication state
    ebx config set sandbox_api_key VALUE  Configure sandbox authentication

Options:
  --name TEXT                     FC function name for the artifact.
  -r, --region TEXT               Region override for this command (default:
                                  'ebx config set region' value, else cn-
                                  hangzhou)
  --template TEXT                 Default sandbox template for MCP sessions.
  --memory INTEGER                FC function memory (MB).
  --timeout INTEGER               FC function timeout (s).
  --auth-token-file PATH          Path to a non-empty Bearer token file.
  --generate-token                Auto-generate a random Bearer token.
  --enable-session-affinity / --no-session-affinity
                                  Enable Mcp-Session-Id affinity (requires FC
                                  MCP support).
  --api-key TEXT                  E2B_API_KEY to inject into the FC function
                                  env.
  --custom-domain TEXT            Custom domain for the MCP endpoint.
  --output-dir PATH               Write the FC deployment artifact to this
                                  directory.
  -h, --help                      Show this message and exit.
[exit_code:0]
