> ## Documentation Index
> Fetch the complete documentation index at: https://docs.acedata.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Maestro MCP integration guide

> maestro MCP server integration

Maestro can create finished videos from a creative brief, or adapt, edit, or continue previous video projects. Each creative task produces one language version.

## Connect to the Hosted Service

In a client that supports remote MCP, add a **Streamable HTTP** server at `https://maestro.mcp.acedata.cloud/mcp`. When using OAuth, choose to sign in to Ace Data Cloud and confirm authorization in your browser.

| Client | How to connect |
| - | - |
| Claude / Claude Desktop | Add a custom connector under “Customize → Connectors”, enter the hosted URL, and sign in. |
| Claude Code | Run `claude mcp add --transport http --scope user maestro https://maestro.mcp.acedata.cloud/mcp`, open `/mcp` in the session, select the server, and complete authorization. |
| Cursor | Create an HTTP server in the MCP settings, enter the hosted URL, and follow the prompts to sign in when connecting. |
| VS Code | Run **MCP: Add Server** from the Command Palette, select HTTP, and enter the hosted URL. You can then use **MCP: List Servers** to check the status. |

In Codex CLI, run the following command, then enter `/mcp` in the session to view the server.

```bash theme={null}
codex mcp add maestro --url https://maestro.mcp.acedata.cloud/mcp
codex mcp login maestro
```

To use a fixed credential, add the request header `Authorization: Bearer &lt;应用 API Key>` in the client's private settings and confirm that the application is authorized to call the selected API. You can create or copy a key in the console under “Applications → General Applications → Key Management”. [Application Console](https://platform.acedata.cloud/console/applications)

### Use an Application Key in Gemini CLI and OpenCode

First, save the application API key as the client environment variable `ACEDATACLOUD_API_TOKEN`. The following commands use macOS or Linux shell quoting.

| Client | How to connect |
| - | - |
| Gemini CLI | Run `gemini mcp add --scope user --transport http maestro https://maestro.mcp.acedata.cloud/mcp --header 'Authorization: Bearer ${ACEDATACLOUD_API_TOKEN}'` and check with `gemini mcp list`. |
| OpenCode 2.x | Run `opencode mcp add maestro --global --url https://maestro.mcp.acedata.cloud/mcp --header 'Authorization=Bearer {env:ACEDATACLOUD_API_TOKEN}'`, then run `opencode reload` and `opencode mcp list`. |

In OpenCode 1.x, configure `type: "remote"`, the hosted URL, and `oauth: false` for this service in the `mcp` object of your personal `opencode.json`. Set the `Authorization` request header to `Bearer {env:ACEDATACLOUD_API_TOKEN}`. [OpenCode 1.x configuration](https://opencode.ai/v1/docs/mcp-servers/)

## Local stdio integration

After installing [uv](https://docs.astral.sh/uv/getting-started/installation/), a local client can launch the MCP process using standard input and output. The process sends Maestro requests to Ace Data Cloud.

Claude Desktop users can open the local MCP configuration from the developer settings, merge the server entry below, replace the placeholder in their personal configuration with the application API key in plain text, and then restart the client. Clients that support private environment variables can also inject `ACEDATACLOUD_API_TOKEN` from a credential manager.

```json theme={null}
{
  "mcpServers": {
    "maestro": {
      "command": "uvx",
      "args": [
        "mcp-maestro"
      ],
      "env": {
        "ACEDATACLOUD_API_TOKEN": "YOUR_API_KEY"
      }
    }
  }
}
```

[mcp-maestro installation package](https://pypi.org/project/mcp-maestro/)

## Initial verification

Open the client's MCP tool list and confirm that `maestro_create_video`, `maestro_get_task`, and `maestro_list_tasks` are available. To verify account read access, use `maestro_list_tasks` to query your most recent task. An empty list is also a valid result.

## Tools and usage examples

| Action | Tools and parameters |
| - | - |
| Create a video from a brief | Use `action="generate"` with `maestro_create_video`, and describe the audience, storyboard, and delivery requirements in `prompt`. Optionally specify `duration`, `aspect`, and an output language. |
| Modify a previously completed video | Continue using `maestro_create_video`, set `action` to `remix`, `edit`, or `extend`, and use `ref_task_id` to reference the original task. |
| Retrieve a completed video | Use `maestro_get_task` to query a `task_id`. Use `maestro_list_tasks` to view recent tasks for the current account. |

For example: "Create a 30-second vertical coffee-brewing tutorial in Chinese, showing the steps of weighing the beans, pouring the water, and serving the coffee in sequence, with brief captions for each step." After confirming the production requirements, submit one `maestro_create_video` and save the returned `task_id`. Query using `maestro_get_task` until `status` is `succeeded` or `failed`. On success, read the completed video link from `response.data.variants`; on failure, check the task's error message.

See the API documentation for parameter and result formats: [Video production](https://platform.acedata.cloud/documents/maestro-videos), [Task queries](https://platform.acedata.cloud/documents/maestro-tasks).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.