AI agent setup
Give your agent one prompt to connect TubeOnAI through MCP or set up the CLI.
Copy the setup prompt and paste it into the agent you want to connect. If you already know which connection you want, add “use MCP” or “use the CLI” to your message.
Open as plain text
Paste the setup prompt into your agent.
Preview the prompt
Set up TubeOnAI for me in this environment. Use the official MCP server or npm CLI and verify access with a read-only account check. 1. Choose the connection - Use the connection I requested. If I didn't specify one, prefer MCP when this client supports remote Streamable HTTP and OAuth. Otherwise use the CLI if this environment has terminal access. - Use the TubeOnAI environment I specify, or use the V2 beta at https://beta.app.tubeonai.com. For MCP, use the exact server URL from that environment's AI tools page. The V2 beta URL is https://beta.app.tubeonai.com/mcp. - Check existing configuration first. Reuse a working connection to the same environment. Ask before replacing a connection that points somewhere else. 2. Set up MCP if selected - In Codex, run: codex mcp add tubeonai --url https://beta.app.tubeonai.com/mcp Then start OAuth: codex mcp login tubeonai - In Claude Code, run: claude mcp add --transport http tubeonai https://beta.app.tubeonai.com/mcp Then use /mcp to authenticate. - For Cursor, VS Code, ChatGPT, Claude Desktop, Gemini CLI, or another host, use its exact steps from https://docs.tubeonai.com/mcp/. For another environment, substitute its exact MCP URL in the commands above. - Let me complete sign-in, choose the workspace, and approve access in the browser. If the host needs to reload before tools are available, tell me how to do it. - Verify the connection by calling get_account once the tool is available. 3. Set up the CLI if selected - Check for Node.js 22 or later. Use npx --yes tubeonai@latest so a global install is optional. - Run the login command with the intended API URL: TUBEONAI_API_URL=https://beta.app.tubeonai.com npx --yes tubeonai@latest login - Keep the login running while I open the link it displays and confirm the device code in the browser. Use the same API URL to verify: TUBEONAI_API_URL=https://beta.app.tubeonai.com npx --yes tubeonai@latest account - Adapt the environment-variable syntax to the current shell. The CLI guide is https://docs.tubeonai.com/cli/. Keep credentials out of chat and source files. Let me complete any sign-in and consent prompts. Use only the account check to verify this setup. Tell me which connection and environment you verified, or exactly which step still needs my input.
What your agent can do
| Connection | What the agent does | What you approve |
|---|---|---|
| MCP | Configures TubeOnAI in a compatible client and checks the connection with get_account. | Sign in, choose a workspace, and approve access in your browser. |
| CLI | Checks Node.js, runs the official npm CLI with the right API URL, and verifies it with tubeonai account. | Open the device sign-in link and confirm the code. |
If your agent cannot edit its own connection settings, it can show you the exact client steps. See MCP client setup and CLI installation.