Skip to main content

Connect JeremyAI to Viktor

Let your workers hand tasks to Viktor and get the results back in chat — with one Custom MCP connection and a scoped Viktor API key.

M
Written by Michael Dallara

Connect Viktor to JeremyAI once, and your workers can hand tasks to Viktor and get the results back right in chat. Viktor does the work across the tools already connected to your Viktor workspace. The connection uses Viktor's own MCP server and a scoped API key, and takes about five minutes.

Before you start

  • A Viktor paid plan or Enterprise. API keys aren't available on the free plan. Upgrade here if needed.

  • A JeremyAI account on your instance's web app (for example https://jeremy.utari.ai), signed in.

  • A decision on which worker gets Viktor. Only that worker can use the connection.

  • Tools connected inside Viktor. Viktor can only work in apps your Viktor workspace has already connected.

  • Treat the API key like a password. Grant only the scopes you need, and don't paste it anywhere public.

Step 1 — Create a scoped Viktor API key

  1. In Viktor, open Settings → API Keys.

  2. Generate a personal or team key. Name it something you'll recognize, for example JeremyAI.

  3. Grant scopes. The minimum for handing Viktor a task is threads:create, runs:create and runs:read.

  4. Copy the key and keep it safe for Step 3.

Viktor only shows JeremyAI the tools the key's scopes allow. Add more scopes only for the tools you want:

To let your worker…

Add scope

Tools it unlocks

Hand Viktor a task and wait for the result

threads:create, runs:create, runs:read

ask_viktor, create_thread, wait_for_run, get_run, get_run_result, cancel_run

Follow up in an existing Viktor thread

messages:create

send_message

Browse past threads and messages

threads:read, messages:read

list_threads, get_thread, list_messages, list_runs

Download files Viktor produces

files:read

get_file_download_url

See which apps Viktor is connected to

integrations:read

list_integrations, list_integration_tools

Run Python scripts in Viktor's sandbox

scripts:execute

run_script and related tools

A practical starting set is the three minimum scopes plus messages:create and files:read.

Step 2 — Add the Custom MCP server

  1. In JeremyAI, open Integrations in the sidebar and click Add Custom MCP.

  2. Choose which worker gets Viktor and click Continue.

  3. Give the server a short name, for example Viktor.

  4. For the MCP Server URL, paste: https://api.viktor.com/mcp

Step 3 — Add the authorization header

  1. Expand Add Headers (optional).

  2. Name the header Authorization, exactly like that, with a capital A.

  3. For the value, type the word Bearer, one space, then paste your Viktor API key. Nothing else.

Viktor also accepts x-api-key as the header name, with the key alone as the value.

Step 4 — Connect and choose tools

  1. Click Connect to MCP Server. The green banner means JeremyAI reached Viktor and loaded the tools your key allows.

  2. Keep the tools you want your worker to have, then click Add MCP Server. The connection now appears under Custom MCP Servers, and you can adjust its tools anytime with Configure tools.

Step 5 — Test it

  1. Open a chat with the worker you connected and ask: Call Viktor's whoami tool. It should report the key type, scopes and rate limits.

  2. Then try it on real work:

    • Ask Viktor to summarize this week's new leads from our CRM.

    • Have Viktor check which integrations it's connected to.

    • Ask Viktor to analyze this month's revenue and list the biggest changes.

  3. Longer tasks can take a minute or two. If your worker says the wait timed out, ask it to keep waiting on the same run instead of asking again.

Tips

  • Use a team key if several people's workers should share the same Viktor access. Use a personal key to keep it tied to you.

  • One worker per connection. To give another worker access, add the Custom MCP again for that worker.

  • Rotate the key if it's ever exposed. Revoke it in Viktor's API Keys settings, create a new one, and paste it into the header value in JeremyAI.

Troubleshooting

  • "Connect to MCP Server" fails (401 or 403) — check the URL is exactly https://api.viktor.com/mcp, the header value is Bearer + space + key with no quotes or trailing spaces, and your Viktor workspace is on a paid plan.

  • It connects, but few or no tools appear — the key is missing scopes. Add them in Viktor, then refresh with Configure tools.

  • A tool returns missing_scope — add the scope named in the error to the key.

  • thread_busy — Viktor is still working in that thread. Wait for it to finish before following up.

  • rate_limit_exceeded — wait a moment and retry. Limits scale with your Viktor plan.

  • Viktor says it can't reach an app — connect that app inside Viktor first.

Disconnecting

  1. In Viktor, open Settings → API Keys and revoke the JeremyAI key.

  2. In JeremyAI, remove Viktor from Custom MCP Servers on the Integrations page.

Support

Stuck on any step? Reach out to us through the messenger and we'll help you get set up.

Did this answer your question?