Skip to main content

Connect an AI agent with MCP

Add TaskJuice as an MCP server in Claude, ChatGPT, or any MCP-capable agent so it can run and build your workflows.

TaskJuice ships a managed MCP (Model Context Protocol) server. Add it to Claude, ChatGPT, or any MCP-capable agent, and the agent can run your published workflows, check on runs, and — when you allow it — build new workflows, publish them, and turn them on, handing you only the steps that need a person.

There is one address for every connection. Each connection works in one account, the one you choose when you sign in, and only in the workspaces of that account you can access. Someone with only workspace access who belongs to one workspace is limited to that workspace, so a client you give an assistant can never see another client's work.

Get your connection URL

  1. Open the Assistants page

    Go to AI → Assistants and open the Connect tab. You need an account admin or owner role. The tab shows one connection URL. The scope picker at the top switches between Whole account and each workspace; it filters what the tabs show, and the URL stays the same. The AI assistants card in Workspace settings → General links there too.

  2. Copy the URL

    The URL is the same for every account (if your organization uses a connector domain, the tab shows your own address instead, with the same /mcp path):

    https://mcp.taskjuice.ai/mcp

    The URL doesn't name an account or a workspace. You choose the account when you sign in (see the next step), and the connection then works across every workspace of that account your user can access. Tools take a workspace argument to pick the workspace when the account has more than one (see One connection for every client).

  3. Add the server in your agent

    In Claude, ChatGPT, or another MCP client, add a new MCP server (also called a connector) and paste the URL. The agent opens a TaskJuice sign-in in your browser. Sign in with your normal TaskJuice account. On the Connect screen (its heading names the assistant, for example Connect Claude), if you belong to more than one account, choose the account under Account: the assistant works only in the account you choose. If you belong to one account, the screen names it and there is nothing to choose. Then select Continue. The connection gets the access level described in Choose what a connection can do. To work in another account too, connect the assistant again and choose that one.

    There is no token to copy for this flow. Access follows your TaskJuice user: the agent can never do more than you can in the app, narrowed to the account you chose and to the connection's access level.

    The screen marks every assistant Unverified, because an assistant chooses its own name when it registers, and says where your browser goes after you continue: a website (for example claude.ai), an app on this device, or an app that opens its own links, together with any website that app passes you on to (for example cursor: links to anysphere.cursor-retrieval). If you did not just start connecting an assistant, or the destination is not the one you expect, select Deny.

  4. Confirm the tools appear

    Ask the agent to list its tools. You should see whoami, find, and describe at minimum; run_workflow, control_run and decide_task if the connection is at Runner or above (control_run is not offered to a client's own sign-in); get_skill when managed skills are open to the connection (every plan, in good standing; not for someone with only workspace access on an account address); and, for a connection of someone with an account role on a plan with authoring, the authoring tools its level allows (table_rows from Viewer, the draft tools, validate_draft, preview_mapping, the step test test_step, create_folder, move_document and edit_table from Editor, and preview_publish, publish, set_workflow_state, delete_workflow and create_variable at Manager). A Runner connection that meets those conditions sees 8 tools (10 where Databases is turned on); a Manager connection sees 21 (24 where Databases is turned on). Ask it to call whoami to see exactly what it is connected as. No workflow appears as its own tool: the agent finds your exposed workflows with find and runs one with run_workflow.

Choose what a connection can do

Every connection, a sign-in connection or an API key, acts as a real person and can never do more than that person can do in the app. Each connection also has an access level. From lowest to highest:

Access levelWhat it lets the assistant do
ViewerFind and read the workflows, runs, forms, tables, databases, documents and app connections the person can see, and read table and database rows. Changes nothing.
RunnerAlso start, stop, resume and retry workflow runs, approve or reject steps waiting for the person's approval (recorded as them), and add, change and delete table and database rows. Runs can send messages and change records in connected apps.
EditorAlso create and edit drafts, test one step of a draft, create folders, move documents into folders inside their own, create tables and change their columns, and draft structure changes to a connected database. Testing a step runs it for real, so it can send messages and change records in connected apps.
ManagerAlso make a new folder Private, publish workflows, forms and chatbots, add workspace variables that are not secret, turn workflows on or off, choose which ones assistants can use, and delete workflows that are turned off. Hard to undo.

What a connection may do with any one item is the lowest of four things:

  • The person's own access to the item. A Manager connection publishes only the workflows its person can publish, and runs only the workflows they can run.
  • The level the connection was allowed (see below).
  • The person's assistant limit on the account. An account Owner or Admin sets it for each person, in the table on the Access tab of AI → Assistants or on the person's page. Only the Owner changes the Owner's own limit. Owners and Admins start at the same as their own access. New members and guests start at the limits under Rules for everyone on the same tab: Limit for new members (Up to Runner unless you change it) and Limit for guests (Read only unless you change it, and never above Runner). When it is Off, no assistant can connect for that person.
  • The connection's workspaces. A connection acts only in the workspaces it was allowed.

Your plan and role still apply: the authoring tools need a plan that includes authoring and someone with an account role. Someone with only workspace access never builds or publishes, whatever the level.

Three things to know before you allow a level:

  • Viewer still shows a lot. A run includes its output, which can hold data from your connected apps, and the assistant can read the rows of every table it can see. At Editor and above it can also read each step's full input and output. On a plan with authoring, a connection made by someone with an account role can also read drafts and every workflow's status and runs, not only the exposed ones, in every workspace the connection covers. A run list with no workflow filter still shows only exposed workflows' runs.
  • Editor can act in your connected apps. Testing a step (test_step) runs that one step for real, the same as the Test step button in the editor: an email step sends the email and an HTTP step makes the request, with the workspace's connections. Choose Viewer for an assistant that must not send or change anything.
  • Some changes take effect straight away. Tables have no draft, so a table or row change an assistant makes is live as soon as it saves; deleting rows or removing columns takes a confirm step that lists what will be lost. Saving a draft that changes which form a live form-triggered workflow listens to also takes effect straight away, the same as in the editor. Deleting a workflow is permanent: it takes the confirm step first, and only a workflow that is turned off can be deleted.

The Published tools tab in AI → Assistants shows the level each tool needs, for example Needs Editor.

Where the level comes from:

  • Sign-in connections — the Access choice on the Connect screen, which offers only the levels your assistant limit allows and starts at the highest of them, and the Workspaces you leave ticked there (every workspace of the account you can view, up to 100, is ticked to start). A lower limit applies at once. To pick a different level or workspaces, remove the connector in the assistant and connect again.
  • API keys — the Access choice in the Create key dialog: Viewer, Runner, Editor or Manager, Runner by default. A key can't be above its creator's assistant limit, and its level is fixed when it is created: to change it, create a new key and revoke the old one. See API keys for headless agents.

Connections made before access levels existed must be replaced once. A sign-in connection made before then is refused with reconnect_required until you remove the connector in the assistant and connect again. API keys made before then were revoked: create a new key at the level you want.

Make a workflow available to AI assistants

Agents can't find or run a workflow until you expose it. Exposing makes it findable with find and runnable with run_workflow. Each one is an explicit opt-in, made from the workflow editor. You need a workspace admin role, and the workflow must be published — agents can only run its active version.

  1. Open the workflow and choose “Make available to AI assistants…”

    In the editor, open the ⋯ menu in the header and select Make available to AI assistants…. If the item is grayed out, the tooltip says why — usually the workflow has not been published yet.

  2. Turn on the switch and write a description

    Flip Make this workflow available on, then write the Description for AI assistants — that text is what the agent reads in find and describe when choosing a workflow for a task, so describe what the workflow does and what input it expects. Leave it blank and agents see the workflow's own description (if it has one), shown in the field.

  3. Check the slug and input

    The dialog shows the Slug agents pass to run_workflow — a name derived from the workflow's title. If another exposed workflow shares the title, both slugs get a distinguishing suffix, so exposing or hiding one can change the other's slug. The Input line shows what the workflow accepts, derived automatically with no extra setup: a form-triggered workflow exposes its exact published form fields; a webhook-triggered workflow exposes the fields its nodes actually read (reference $trigger.email anywhere and agents see an email field, described with the node that uses it); app triggers expose their declared payload shape. describe also returns a ready-made example input for every exposed workflow, so agents send correctly shaped input on the first call. Only a workflow whose input can't be derived — say, a manual trigger whose nodes read no trigger fields — accepts any JSON object.

Once a workflow is exposed, a small robot icon appears in the editor header — click it any time to reopen the dialog.

Two things follow from the slug tracking the workflow title, and they are worth knowing before you rely on a slug:

  • Renaming the workflow changes its slug. Any prompt or saved instruction that names the old slug stops finding it.
  • Exposure survives edits. When you edit and republish an exposed workflow — or apply a template update — the new version stays exposed with the same description. You never need to re-expose after a change.

Turning the switch off removes the workflow from every agent within 30 seconds.

Let an agent build workflows

Agents can also draft workflows if you have an account role, your plan includes authoring, and the connection is at Editor or above. Publishing, turning workflows on and off, and exposing them need Manager (see Choose what a connection can do). The agent works in a real draft — the same one you see in the editor:

  1. The agent creates a draft (create_workflow_draft) and gets back an editor link.
  2. It searches the app catalog for the steps it needs and reads their schemas (find, describe). It can also read your forms' fields, your tables' columns and your Library's templates, and check whether your app connections still work. It proposes changes (propose_changes), and validates the draft (validate_draft) — every change passes the same validation the in-app AI drafter uses, so the agent cannot save a broken graph.
  3. The agent previews the publish (preview_publish): what going live will do — including anything turning the workflow off cannot undo — and the setup steps a person still has to take, each with a link to where they finish it: the workflow's Setup page for connecting an app, otherwise the exact node in the editor.
  4. You follow those links to connect apps, attach keys, or pick a phone number. The agent never touches a credential.
  5. The agent publishes (publish), then checks the workflow's deployment status with describe until every trigger is live. It can also turn workflows on and off and expose them to assistants (set_workflow_state).

To change a workflow that is already published, the agent opens a draft of it (create_workflow_draft with workflowId), proposes changes and publishes again. The live version keeps running until then. See Change a published workflow.

One connection for every client

An organization doesn't need a connection per client. One sign-in connection builds in any workspace of its account:

  • A call about an existing workflow, draft or table works in that item's own workspace. The agent doesn't need to name a workspace for it.
  • Making something new, or searching what one workspace can reach (the app catalog, connections, tables), names the workspace with workspace set to its slug. If the account has only one workspace, the agent can leave it out.
  • Nothing is guessed. If the account has more than one workspace and the agent leaves workspace out, nothing is created. The call answers with the list of workspaces, so the agent can ask you which client the work is for:
// create_workflow_draft({ "name": "New patient intake" })
{
  "ok": false,
  "code": "invalid-arguments",
  "retryable": true,
  "message": "This account has 2 workspaces. Say which one this workflow is for.",
  "hint": "Ask the person which workspace this is for, then call create_workflow_draft again with workspace set to that workspace's slug.",
  "details": {
    "workspaces": [
      { "name": "Acme Dental", "slug": "acme-dental" },
      { "name": "Sunrise Spa", "slug": "sunrise-spa" },
    ],
    "truncated": false,
  },
}

Every new draft names the workspace it was created in. A workflow in one client's workspace can only ever use the app connections that workspace can reach.

An agent can also build a form for a workflow to start from: it creates a draft form (create_workflow_draft with type: "form"), adds its fields (propose_changes), previews it and publishes it (preview_publish and publish), then adds a Form Submission trigger to the workflow. It edits draft forms only, and the workflow can't publish until the form is published. See Build a form.

The agent can also read, add, change and delete table rows (table_rows) and, at Editor, create tables and change their columns (edit_table). Tables have no draft, so these changes are live as soon as they save. Deleting rows or removing a column takes a confirm step: the first call changes nothing and lists what will be lost, and the assistant is asked to show you that list before it confirms. See Build and fill tables.

Publishing a workflow over MCP applies the same checks as the editor's Publish button: you need Manager access to the workflow and access to everything it uses (each app connection, table, database and sub-workflow), your plan's limits apply, and if your account requires two-factor authentication, the connection must have been made after you verified it (see MCP tools and limits for the reconnect steps).

An API key can author and publish too, at the level it was created with: every connection acts as a real person, so every change is attributed to them.

API keys for headless agents

For automation that cannot open a browser to sign in, create a static API key:

  1. In AI → Assistants, open the Access tab and select Create key.
  2. Scope it to a workspace or the whole account, and choose its Access: Viewer, Runner, Editor or Manager (Runner by default). Choose Viewer for a key that can only look. Optionally set an expiry date, a daily call cap, and a workflow allowlist. With an allowlist, the key can only reach the listed workflows. A key's access can't be changed after it's created.
  3. Copy the key when it is shown. It appears exactly once — only a hash is stored, so a lost key means revoking it and creating a new one.

The agent sends the key as a bearer token to https://mcp.taskjuice.ai/mcp. A key acts as the person who created it: it can never do more than they can, never more than its access level, and never more than their assistant limit. A key works in its own account, and a key scoped to a workspace works in that workspace only. To keep a headless agent to one client's work, scope its key to that client's workspace. Someone with only workspace access can't create keys, and a key stops working when the person who created it leaves the account.

A key can do what its creator can do

A leaked Runner key can trigger the workflows its creator can run in its scope (bound by its cap and your plan's daily budget), stop, resume or retry their runs (bound only by the account's hourly limit), decide approvals waiting for its creator, and change table rows. An Editor key can also change drafts, and a Manager key can publish. Even a Viewer key can read runs and table rows and spend your account's shared daily budget. Give every key the lowest level it needs and a daily call cap. Revocation takes effect within 30 seconds.

See what's connected

The Access tab in AI → Assistants lists each person with their assistant limit, the assistants and API keys connected for them, and when one was last used, followed by the API keys table, where account Owners and Admins see and can revoke every key in the account. Revoke a person's signed-in assistant from their page under Team → Members. A signed-in agent also loses access when you disconnect it from the agent's own settings, when the user's access changes, or when the user changes or resets their password or uses Sign out everywhere. The agent must then be connected again.

If it doesn't work

  • The agent's connection fails before sign-in — check the URL. It is exactly https://mcp.taskjuice.ai/mcp, or your connector domain followed by /mcp; the Connect tab is the source of truth. Addresses that named an account or a workspace after /mcp/ no longer work: remove that connector and add it again with the URL from the Connect tab.
  • Connected to the wrong account — remove the connector and add it again, then pick the account on the Connect screen. A connection made through an agency's connector domain can only connect to that agency's account.
  • The browser says "This connection request isn't supported" — the assistant asked to connect in a way the server does not accept. Connections must use the standard sign-in flow with PKCE (a one-time code check that current versions of Claude, ChatGPT, Cursor and VS Code all use). Update the assistant, then remove the connector and add it again.
  • find doesn't return a workflow — the workflow needs Make this workflow available turned on (the ⋯ menu in its editor), it must be published, and your connection's scope must include its workspace. API keys with an allowlist only see listed workflows. Running it with run_workflow also needs a connection at Runner or above and Runner access to that workflow.
  • A call answers that a tool was retired — the assistant is using an old tool list. The answer names the replacement; reconnect the connector to refresh its list. Retired tools lists every old name and what replaced it.
  • Calls return rate-limited — check whether the response says to retry after a wait or that a daily limit resets at midnight UTC. An hourly bound clears within the hour: the assistant retries after the wait it states. A daily limit does not clear until midnight UTC, so the assistant stops and tells you. Where raising it helps, the response links the billing page to raise the plan's limit; when an API key's own daily cap was reached, it links AI → Assistants, where you can create a key with a higher cap. See MCP tools and limits for the numbers.
  • Authoring tools are missing — authoring requires an account role (someone with only workspace access can't author) and a plan that includes it. On top of that, each tool needs a level: the draft tools (create_workflow_draft, propose_changes), test_step, create_folder, move_document and edit_table need Editor, and preview_publish, publish, set_workflow_state and delete_workflow need Manager. Ask the assistant to call whoami first: access.level is the level the connection was allowed and access.limit is your assistant limit. If the limit is below what you need, an account Owner or Admin can raise it; then reconnect a sign-in connection and choose that level under Access, or create a new key at that level.
  • decide_task is missing or refuses an approval — deciding approvals needs a connection at Runner or above, and the decision is recorded as the person the connection acts as (for an API key, its creator). An approval you can't decide — another workspace's, one only a client may decide, or one whose workflow this connection can't see — answers not-found. A run you started answers self-approval-forbidden unless no one else can approve it: ask a teammate to decide it.
  • A tool is refused, or you don't know why one is missing — ask the assistant to call whoami. It reports the account and workspace the connection is on, the business profile, the connection's access (its level, your assistant limit, its workspaces and the most it may do on each kind of item), and the calls left today (not shown to someone with only workspace access). A call to a tool the connection's level does not allow comes back as entitlement-denied with details.requiredLevel naming the level it needs. A tool outside the plan, role, or credential answers that it is not available. A skills request names its own reason instead: the plan, the account's billing, or someone with only workspace access who belongs to several workspaces, so there is no one workspace to narrow to.
  • The connection is refused with reconnect_required, assistant_access_off or key_owner_left — reconnect_required: the sign-in connection was made before access levels; remove the connector in the assistant and connect again. assistant_access_off: your assistant limit on this account is Off; an account Owner or Admin can change it. key_owner_left: the API key's creator is no longer part of the account; create a new key.
  • Publishing is refused with mfa-step-up-required — your account requires two-factor authentication and the connector was added before you verified it. Remove the connector in the assistant, add it again, and complete the two-factor check at sign-in.

Next steps

Was this helpful?