Previz/Developers/Connect a client

    ChatGPT (apps and connectors)

    by the PREVIZ team

    Not yet: ChatGPT's connectors take an address and a sign-in, not a key header, and PREVIZ's sign-in is not open yet.

    Before you start

    Not yetCredential: PREVIZ sign-in (not open yet)
    Server addresshttps://mcp.aimpreviz.comStreamable HTTP, JSON-RPC 2.0. Your key goes in the Authorization header as a bearer token.

    You need a PREVIZ account and an API key. Mint the key in Account → API keys and give it a monthly credit cap: an agent holding the key can spend inside that cap and no further, and a paid tool answers with a quote and runs nothing until it is called again with that quote's token. The key is shown once; keep it in an environment variable named PVZ_KEY, which the snippets below read.

    A key holds only the access classes its owner gave it, set in Account → API keys → the key's Access: a new key holds read and write, and spend needs a monthly credit cap. tools/list shows only the tools a key holds, and a call to any other is refused with INSUFFICIENT_SCOPE. A key made before access classes existed keeps what it could do then (read, write, spend and live) until its owner sets its access; produce is given, never inherited.

    Set it up

    1. 01

      What ChatGPT needs

      ChatGPT adds a remote server from its address in its connector settings (developer mode). It cannot send a custom Authorization header, so a server that wants a key is reachable only once it offers a sign-in. Coming next: Claude.ai and Claude Desktop, which add a server from its address alone. You will add PREVIZ as a custom connector and approve it on a PREVIZ sign-in page — no key to paste. Until that opens, use a client that can send a key.

    2. 02

      What to use today

      The OpenAI Responses API and the Agents SDK both send headers, so a program built on them connects to https://mcp.aimpreviz.com with a key now. See the OpenAI recipe.

    Config formats belong to each client and change with its releases; if a field name above is refused, check the client's own documentation for its current remote-server entry. The address and the header never change.

    Test the connection

    Two free calls prove the whole path: the key, the address, the client and your projects. Neither spends a credit.

    1. Ask for your PREVIZ projects. The client calls list_projects and answers with their names and ids. An empty list means the key reaches no project yet, not that the connection failed.
    2. Ask what a cinematic frame of something would cost in one of them. The client calls plan_quote or generate_frame without a quote token, and answers with a price. Nothing renders and nothing is charged.
    3. If the client reports 401 or unauthorized, the key is missing, mistyped or revoked; if it reports no tools, the address or the transport is wrong. Fix that before anything else.

    What to know

    • PREVIZ does not sell credits inside ChatGPT; buying credits happens on PREVIZ.
    • When sign-in opens, the address to add will be the same one every recipe here names.