AI Integration
Connect Nocarta to an AI assistant using MCP (Model Context Protocol), an open standard that lets AI assistants talk to external applications. Nocarta offers two integrations with different scopes — pick the one that fits what you want the assistant to do.
Choose your integration
| Cloud | Desktop | |
|---|---|---|
| What the assistant does | Reads (and, with the right scopes, writes) your data — templates, instances, scripts, profile | Acts as a user — navigates pages, fills forms, clicks, creates and runs scripts |
| Where it runs | Talks to Nocarta's servers over the internet | Talks only to your own computer (loopback) |
| Requires Desktop app | No — any browser | Yes — Nocarta Desktop must be running |
| Authentication | You approve the assistant on a Nocarta page (Claude, ChatGPT), or you create an API token (coding tools) | Short-lived token that rotates every time you enable the server |
| Good for | "Show me my templates," "What fields are in this form?" | "Create a script that converts this CSV and run it," "Open my automation and add a new step" |
The two are independent. You can use either, both, or neither.
Cloud — the Nocarta MCP server
Set up once, works from anywhere. The assistant connects to the Nocarta MCP server at https://app.nocarta.ai/api/v1/mcp. Everything below is also on the Connections → MCP Server tab, where the copy buttons give you each setup ready to paste.
There are two ways to connect. For Claude and ChatGPT, use the first: you approve the assistant on a Nocarta page and there is no secret to copy or keep. Use a token only for a tool that asks for one.
Claude and ChatGPT — approve on Nocarta, no token
Claude (claude.ai and the Claude desktop app)
- On Connections → MCP Server, copy the server address.
- In Claude, open Settings → Connectors and click Add custom connector.
- Enter Nocarta as the name, paste the address and click Add.
- Click Connect. A Nocarta page opens and lists the permissions Claude asks for. Click Authorize.
- Test it — ask Claude: "List my Nocarta templates."
The Claude desktop app does not read remote servers from its configuration file. Add Nocarta as a connector, as above.
ChatGPT
Add a custom connector (ChatGPT may call it an app) and paste the same address. ChatGPT opens the same Nocarta page, where you approve the permissions.
Disconnecting
Every approved assistant is listed under Connected apps on the MCP Server tab. Disconnect ends its access at once.
Coding tools — with an API token
Claude Code, Cursor, Codex and other developer tools connect with an API token. A token is a password to your account: anyone who has it can do what its scopes allow. The same token can also call the REST API under /api/v1/, within the same scopes.
Step 1 — Create an API token
- Go to Connections → MCP Server and click Create a token for … under your tool. The API tab opens a new token form named after the tool. (To create a token for any other use, click New token on the API tab.)
- Fill in:
- Token name — anything memorable, e.g. "Claude Code", "Cursor", "payroll-importer".
- Scopes — tick the permissions this token grants. See the table below.
- Expiration — Never, 30 days, 90 days, 180 days or 1 year. 90 days is the default.
- Click Create. A dialog shows the token once, and below it the setup for your tool with the token already in it. Pick your tool, click Copy, and paste it as Step 2 describes.
Tokens are shown exactly once. The plaintext value starts with nc_token_. Copy it before dismissing the dialog. If you lose it, revoke and create a new one — there's no way to recover the original.
Scopes
Each scope grants exactly one capability. Pick the smallest set you need; create separate tokens with different scopes for different clients.
| Scope | What it grants |
|---|---|
user:read | Read your account profile (name, email, enabled features). |
form_templates:read | List and inspect templates, notebooks, and fields. |
form_templates:write | Create, edit, scan, and delete templates. |
form_instances:read | List and view filled form instances and field values. |
form_instances:write | Create, edit, submit, and bulk-operate on form instances. |
notebooks:write | Create, edit, scan, and save values on notebooks. |
value_sets:read | List and view value sets, entries, search, and export. |
value_sets:read_one | View a single value set and its entries/search/export (no listing). |
value_sets:write | Create, edit, delete value sets, import entries, record usage. |
doc_prep:read | List and view document preparation pipelines and their steps, and read their runs. |
doc_prep:write | Create, edit and archive document preparation pipelines. |
doc_prep:run | Start a run of a pipeline on files the assistant sends. |
media_notes:read | List and view recordings, their transcripts, timings and status (never the media itself). |
media_notes:write | Upload, delete and restore recordings; attach one to the instance it produced. |
messaging:read | View your connected messaging apps, approved senders and messages waiting to be sent. |
messaging:write | Change your messaging app settings and approved senders; record what your messaging apps received and sent. |
automations:read | List and view automations and their scripts, check a script, and read runs. |
automations:write | Create, edit and delete automations and their scripts. |
automations:run | Start runs of your automations. Separate from automations:write, because running acts on outside systems. |
system_scripts:read | List and inspect scripts and their source; check a script; read runs and their outputs. |
system_scripts:write | Create, edit (each edit is a new version) and archive scripts; delete finished runs. |
system_scripts:run | Start and stop script runs on your desktop or a Nocarta Runner. |
capabilities:read | List and view your capabilities, and read the answers of their runs. |
capabilities:write | Create, edit and delete your capabilities. |
recipes:read | List and view recipes and their steps, and read runs. |
recipes:write | Create and edit recipes. |
recipes:run | Start runs of your recipes. Separate from recipes:write, because a run's steps act on your instances, notebooks and outside systems. A run handed instances, notebooks, a template or recordings also needs their read scope. |
partner_apps:read | List and view your Apps, their objects and versions. |
partner_apps:write | Create and edit your Apps, add or remove their objects, and publish versions. |
capabilities:run | Ask your capabilities and Nocarta's about texts and pictures the assistant sends, and about your instances, notebooks and media items when the token also holds their read scope (form_instances:read, form_templates:read, media_notes:read). The answer can contain what those documents say. |
ilvecchio:read | Find videos on the ilvecchio video site, read a video with its comments, read a channel, and list your memberships. |
ilvecchio:write | Comment, report a video or a comment, confirm your age for an age-rated video, and get the Stripe page to join a channel or manage your memberships. |
ilvecchio_studio:read | Read your channels in the creator studio, their statement, their videos with sponsor segments and subtitles, and the comments to moderate. |
ilvecchio_studio:write | Create your channel and change it, change, publish and delete videos, edit sponsor segments and subtitles, and moderate comments. Can be restricted to some of your channels. |
ilvecchio_admin:read | Nocarta staff only: read the review queue of channels, videos and video ad clips. |
ilvecchio_admin:write | Nocarta staff only: decide on videos, channels and video ad clips, and remove a comment. |
remote_execution:read | See where a remote run would land, where your account sends runs, your machines, and whether a Nocarta Runner is up for your account. |
remote_execution:write | Choose where your account's remote runs go, rename or forget your machines, and shut down your Nocarta Runner. |
search:read | Search everything the caller owns by meaning — documents and value-set entries. |
locations:read | See where photos, notes and runs were made. Adds positions only to what another read scope already returns, and lets lists and searches keep what was made near a point or inside a place. |
places:read | See the caller's places: a name, a centre and a radius. |
places:write | Add, rename, move and delete the caller's places. |
indexing:read | Read which of the caller's content is searchable by meaning. |
indexing:write | Turn meaning-search indexing on or off per notebook set, automation set, or template. |
partners:read | List and view partner-enabled templates and their configuration. |
partners:write | Enable and configure partner mode on templates you publish. |
partner_onboarding:read | View partner onboarding/compliance status and guidance. |
partner_onboarding:write | Complete partner onboarding/compliance setup. |
partner_instances:read | Read a partner template's field map. |
partner_instances:write | Create instances via the partner API. |
partner_service:read | View the account-level partner service status. |
partner_service:write | Activate and update partner service settings. |
The super_user scope — use with care
super_user is a wildcard — it grants every other scope at once. To prevent accidental misuse, the UI enforces hard constraints when you tick it:
- Expiration must be 30 or 90 days. "Never", 180 days, and 1 year are disabled while
super_useris selected. - An IP allowlist is required. Enter one CIDR per line (e.g.
203.0.113.42,198.51.100.0/24,2001:db8::/32). Requests from any IP outside the list are rejected with a generic 401 — off-allowlist callers can't tell whether the token exists. Add my IP adds the address Nocarta sees your browser coming from. Allow all addresses adds0.0.0.0/0and::/0, which match every IPv4 and IPv6 address: the token then works from any computer, and the allowlist no longer limits who can use it. - Every request is audited. Each call made with a
super_usertoken is logged with timestamp, method, path, status, and source IP.
Use super_user only for one-off operator tasks or short-lived automation that genuinely needs broad reach. For everything else, pick granular scopes.
Step 2 — Add Nocarta to your tool
The token dialog gives you each of these with your token already in place. The examples below show nc_token_your_token where your token goes. After adding the server, start a new session: tools load MCP servers when a session starts.
Claude Code
Run this in a terminal. It adds Nocarta for all your projects:
claude mcp add --transport http --scope user nocarta https://app.nocarta.ai/api/v1/mcp --header "Authorization: Bearer nc_token_your_token"
To share the server with one project instead, put this in the project's .mcp.json. The line "type": "http" is required: without it Claude Code skips the entry.
{
"mcpServers": {
"nocarta": {
"type": "http",
"url": "https://app.nocarta.ai/api/v1/mcp",
"headers": {
"Authorization": "Bearer nc_token_your_token"
}
}
}
}
Cursor
Put this in ~/.cursor/mcp.json (all projects) or in .cursor/mcp.json in one project. If the file already has an mcpServers section, add only the nocarta entry to it.
{
"mcpServers": {
"nocarta": {
"url": "https://app.nocarta.ai/api/v1/mcp",
"headers": {
"Authorization": "Bearer nc_token_your_token"
}
}
}
}
OpenAI Codex
Add this at the end of ~/.codex/config.toml:
[mcp_servers.nocarta]
url = "https://app.nocarta.ai/api/v1/mcp"
http_headers = { "Authorization" = "Bearer nc_token_your_token" }
Other MCP clients
Any client that supports remote HTTP MCP servers works with the address https://app.nocarta.ai/api/v1/mcp and the header Authorization: Bearer nc_token_…. Most read the .mcp.json form shown under Claude Code.
REST API
The same token can call the REST API under /api/v1/, within the scopes you gave it. This call needs form_templates:read:
curl -H "Authorization: Bearer nc_token_your_token" \
https://app.nocarta.ai/api/v1/form_templates
Finding things by meaning
search_content searches the user's templates, notebooks, form instances and automations by what they are about, not just by name. Use it for open questions — "what do I have about invoices?", "find the notes on the Milan lease" — where you do not already know the item's name. It works across languages: a search for "construction company" finds a supplier recorded as Rossi Costruzioni.
Each hit comes back with a URL, a snippet, and a relevance score. If you already know the name, search_form_templates is a cheaper direct lookup.
| Tool | Scope | Use it when |
|---|---|---|
search_content | search:read | You don't know the name — you know the topic. |
list_places, get_place | places:read | You need the person's named places, for example to filter by one with place (that filter needs locations:read). |
create_place, update_place, delete_place | places:write | The person asks you to add, move or remove one of their places. |
suggest_actions | per resource type | You want the right page to send the user to. |
get_indexing_settings | indexing:read | Checking why a search returned nothing. |
set_indexing_settings | indexing:write | Turning meaning-search on for a template. |
Empty results are usually a switch, not a bug. Meaning-search is opt-in: notebooks, automations, saved images and recordings are on by default, templates are off until switched on per template. Call get_indexing_settings before concluding a user has no matching content — and note that results always fall back to word matching, so you still get hits even when nothing is indexed.
facts (default: off) in the same two tools is not a search switch: when on, each recording, document and image item the user saves on an instance or a notebook is read for facts. The proposals wait on that instance. get_observations returns them as facts with no field_id in an observation whose purpose is "facts"; confirm_fact keeps one, and reject_fact with an empty value discards it. Only kept facts reach the user's General Assistant.
Scripts, automations and where they run
An assistant can write, check and run your automations and your scripts. The run never happens inside the assistant: it goes where you chose in Connections → Remote Execution → Where my automations and scripts run — by default your connected desktop app, or, when none is connected, a Nocarta Runner, a temporary machine Nocarta starts for you and destroys afterwards. You can also send runs to a Nocarta Runner always, to one of your own machines only, or to any of your machines, so several of them run at the same time. The tools return a run to poll, the same way the REST API does.
| Tool | Scope | Use it when |
|---|---|---|
list_automations / get_automation | automations:read | Finding an automation and reading its script and inputs. |
create_automation / update_automation | automations:write | Writing or fixing an automation. Every write returns a check. |
check_automation_script | automations:read | Checking a script before saving it. |
run_automation | automations:run | Starting an automation. Returns the run to poll. |
list_automation_runs / get_automation_run | automations:read | Following a run, reading its output and log. |
list_scripts / get_script | system_scripts:read | Finding a script and reading its source and parameters. |
create_script / update_script | system_scripts:write | Writing or fixing a script. Every edit is a new version. |
check_script | system_scripts:read | Checking a script's syntax before saving it. |
run_script | system_scripts:run | Starting a script with text parameters only. A script with a file parameter needs the REST endpoint, which is the only way to upload file inputs. An optional target sends this one run to nocarta_runner, to any of the user's machines (my_machines), or to one of them (machine:<id>); without it, the script's own setting decides. |
list_script_runs / get_script_run | system_scripts:read | Following a run, reading its exit code, logs and output files. |
stop_script_run | system_scripts:run | Stopping a run that is running or waiting. |
list_capabilities | capabilities:read | Listing your capabilities and Nocarta's. |
run_capability | capabilities:run | Asking a capability about an instance, a notebook, a media item, a text or a picture. Returns the run to poll. |
get_capability_run | capabilities:read | Reading a capability run's answer. |
create_capability / update_capability / delete_capability | capabilities:write | Writing, changing and deleting a capability. |
list_recipes / get_recipe | recipes:read | Finding a recipe and reading its steps and what a run is handed. |
create_recipe / update_recipe | recipes:write | Writing or changing a recipe's steps. The reply says what still keeps it from running. |
run_recipe | recipes:run | Starting a recipe on instances, one item, notebooks or recordings. Returns the run to poll. |
get_recipe_run | recipes:read | Following a run: its status, each step, and a capability step's answer. |
list_partner_apps / get_partner_app | partner_apps:read | Finding one of your Apps and reading its objects, the objects it uses that are not in it, what still keeps a version from being published, and the credentials installers must bind. |
create_partner_app / update_partner_app | partner_apps:write | Creating an App or changing its name, store page fields, tags, platforms or who sees it. The icon, screenshots and video are set on the App's page. |
set_partner_app_objects | partner_apps:write | Adding your own templates, recipes, automations, scripts, capabilities, value sets, document preparations or prompt templates to an App, or removing them. |
publish_partner_app_version | partner_apps:write | Freezing the App's objects into a version. A private or restricted App's version is published at once; a public App's version waits for Nocarta's review. Installing stays the installer's own click in the App Store. |
get_remote_execution_settings | remote_execution:read | Telling the user where a run would land — their desktop app, one of their machines, or a Nocarta Runner — and whether one is up. Also lists the user's machines and their ids. |
set_remote_execution_settings | remote_execution:write | Changing where the user's remote runs go: automatic, nocarta_runner, any of their machines (my_machines), or one machine (machine:<id>). A chosen machine that is not connected, or no connected machine under my_machines, makes runs fail up front with target_offline. |
shut_down_runner | remote_execution:write | Shutting down the user's Nocarta Runner when they are done. |
Secrets decide where a script can run. Tier 1 secrets work everywhere — on the user's machine and on a Nocarta Runner. Tier 2 (master-password) secrets mean the user's own desktop app, open and with the vault unlocked; a Tier 2 script sent to a Nocarta Runner is refused up front with vault_unlock_required. Runs started by an assistant are remote runs, so the script's time limits apply (5 minutes by default, up to 30 on a Nocarta Runner), and a Nocarta Runner offers Shell scripts only bash, python3 and curl. The user's plan sets how many remote runs can go at once; past it, a run is refused with account_limit_exceeded.
The ilvecchio video site
An assistant can find and read videos on the ilvecchio video site, comment, and run your channel in the creator studio. It cannot play a video, and it cannot upload one: a video is uploaded on the site or through the REST API.
| Tool | Scope | Use it when |
|---|---|---|
list_ilvecchio_videos / get_ilvecchio_video / get_ilvecchio_channel | ilvecchio:read | Finding videos, reading a video with its comments, reading a channel. |
list_ilvecchio_memberships | ilvecchio:read | Listing the channels the user is a member of. |
post_ilvecchio_comment / report_ilvecchio_content / confirm_ilvecchio_age | ilvecchio:write | Commenting, reporting a video or a comment, confirming the user's age for an age-rated video. |
get_ilvecchio_membership_link | ilvecchio:write | Giving the user the Stripe page to join a channel or manage memberships. The user pays there, not in the assistant. |
list_ilvecchio_studio_channels / get_ilvecchio_studio_channel / get_ilvecchio_channel_statement | ilvecchio_studio:read | Reading the user's channels and a channel's statement. |
get_ilvecchio_studio_video / list_ilvecchio_channel_comments | ilvecchio_studio:read | Reading a video with its sponsor segments and subtitles; reading the comments to moderate. |
create_ilvecchio_channel / update_ilvecchio_channel / request_ilvecchio_channel_change | ilvecchio_studio:write | Creating the channel, changing its description and blocked words, asking staff for a name, handle or share change. |
update_ilvecchio_video / publish_ilvecchio_video / delete_ilvecchio_video | ilvecchio_studio:write | Changing, publishing and deleting a video. |
save_ilvecchio_sponsor_segment / delete_ilvecchio_sponsor_segment / save_ilvecchio_subtitle | ilvecchio_studio:write | Editing sponsor segments and subtitles. |
moderate_ilvecchio_comment / unblock_ilvecchio_viewer | ilvecchio_studio:write | Approving or removing a comment, blocking its author, unblocking a viewer. |
list_ilvecchio_admin_items / get_ilvecchio_admin_item | ilvecchio_admin:read | Nocarta staff: reading the review queue. |
review_ilvecchio_video / moderate_ilvecchio_channel / review_ilvecchio_ad_clip / remove_ilvecchio_comment | ilvecchio_admin:write | Nocarta staff: deciding on a video, a channel or a video ad clip, removing a comment. For anyone else these tools answer not found. |
The warnings field
Tools that write user content — create_form_instance, update_form_instance, bulk_create_form_instances — may return a warnings array alongside the normal result:
{
"id": "…",
"name": "Invoice 4471",
"warnings": ["Saved. Heads up: this content contains instructions that look aimed at an AI assistant. …"]
}
This means the text you just stored reads like an instruction to an AI rather than ordinary data — the classic shape of a prompt-injection payload. The write still happened; nothing was rejected or altered.
What to do with it: surface it to the user rather than swallowing it. You are writing content that the assistant will later read back, so a payload written through the API is exactly the case a human never sees. The key is absent when there is nothing to report, so you can check for its presence without special-casing an empty array.
Desktop — Full app control
The Local MCP is a small server that runs inside the Nocarta Desktop app. When you enable it, any MCP-compatible AI assistant (Claude Code, Cursor, Continue, and others) can drive your desktop app the same way you do — open pages, fill forms, click buttons, write a script, and run it. It's the way to ask an assistant to do things in Nocarta, not just look at them.
What this is for
Use it when you want an assistant to perform a task end-to-end. Examples that work well:
- "Create a Node script that converts last month's CSV file to JSON and run it."
- "Open the Customers template and fill the first 10 instances with rows from this file."
- "Take a screenshot of every page in the Automations section so I can document them."
Anything you can do as a user, the assistant can do — including making changes. Treat it accordingly.
Security at a glance
- Loopback only. The server listens on
127.0.0.1. Your home network, office network, or anyone else on the internet cannot reach it. Only programs already running on your computer can. - Token-gated. Every request must carry a secret token. The token rotates each time you click Enable.
- Host-header check. Defeats a common browser-side trick where a malicious page tries to talk to your loopback port.
- Local data only. The traffic between your AI assistant and the Local MCP never leaves your computer.
The assistant has the same reach as you do. If you're signed into the desktop, the assistant operates as you. Only enable the Local MCP when you're actively using an assistant; click Disable when you're done.
Step 1 — Enable the Local MCP server
- Open the Nocarta Desktop app and sign in.
- Click Connections in the sidebar and open the Advanced tab.
- Find the Local MCP Server card.
- Click Enable. The status flips to "Running", and a token is generated.
- Click Copy MCP config — this copies a JSON snippet you'll paste into your assistant's settings.
Click Disable any time to stop the server.
Step 2 — Point your AI assistant at it
Paste the snippet you copied into your assistant's MCP configuration. The exact location depends on the assistant:
- Claude Code: a project's
.mcp.json, or~/.claude.jsonfor all projects. The entry must keep its"type": "http"line. - Cursor / Continue / others: see the assistant's documentation for where MCP servers are configured.
Restart the assistant after pasting. The new nocarta tools become available immediately.
The token rotates every time you click Enable. Your assistant automatically picks up the new value on its next call — no need to restart it after a rotation.
What your assistant can do
The Local MCP exposes two tool surfaces. Use app_* to drive the desktop app's own pages directly; use the browser_*/relay tools when you want the assistant to drive the Automation Assistant's own browser (for automating external websites) or hold a natural-language conversation with it.
app_* — direct app control
| Tool | What it does |
|---|---|
app_navigate | Open an app page by its path, e.g. /system_scripts/new. |
app_url | Read the current page's URL and title without navigating. |
app_snapshot | Return a structured outline of the current page — headings, buttons, links, form fields, iframes. The assistant uses this to discover what to interact with. |
app_click | Click a button, link, tab, or other interactive element. |
app_fill | Set the value of a text field, textarea, dropdown, or checkbox. |
app_wait_for | Pause until something changes — an element appears, the URL changes, or a condition becomes true. Keeps the assistant in sync with pages that load progressively. |
app_evaluate | Run a small piece of JavaScript inside the current page and return the result. Escape hatch for cases the other tools don't cover. |
app_screenshot | Capture the current page as an image. Useful for documentation and debugging. |
app_upload_file | Set a file on a file-upload field, given an absolute path on your computer. |
app_drag | Drag from one point to another. For canvas-based editors like scan-area definition. |
app_keyboard | Send keystrokes — e.g. Enter, Escape, Control+s. |
browser_* and relay tools — the Automation Assistant's browser
These drive the Automation Assistant's own automation browser (for automating external sites) or send a message through the assistant's full natural-language chat pipeline — the same as typing into its chat panel yourself:
| Tool | What it does |
|---|---|
browser_open | Open a new browser session at a URL. |
browser_navigate | Navigate the open browser to a URL. |
browser_click | Click an element (CSS selector or visible text). |
browser_fill | Fill an input field. |
browser_snapshot | Get DOM structure, current URL, and title. |
browser_screenshot | Capture the current page as an image. |
browser_back / browser_forward / browser_refresh | History navigation. |
browser_execute_js | Run JavaScript in the page. |
browser_close | Close the automation browser. |
read_table / read_table_pw | Read a table as structured data. |
list_links / list_page_structure | Page introspection. |
find_by_text / click_by_text / fill_by_text | Text-based element interaction. |
select_option | Select a dropdown value. |
switch_to_iframe / exit_iframe | Frame context switching. |
switch_to_table / exit_table | Table cursor mode. |
sleep | Wait. |
send_message | Send any free-text message through the assistant's full chat pipeline — the escape hatch for anything not covered by a dedicated tool (e.g. automation CRUD, "list my automations"). |
Use app_* when you want the assistant to drive a Nocarta page directly (Scripts, Automations, Templates, Settings, instances). Use browser_* when you want it to drive an external site through the Automation Assistant's own browser. Use send_message for anything conversational.
Identifying things on the page
Most tools take a target — the thing on the page you want to act on. You can identify it in any of four ways. Pick exactly one:
testid— a stable identifier set by Nocarta on important elements (e.g.field-name,tab-runs,form-submit). The most reliable option when one's available.selector— a CSS selector. Use this for elements without a testid.text— the exact visible text of a button, link, label, or heading.label— the text of the label associated with an input field (useful when the field itself has no helpful identifier).
If the locator matches multiple elements, pass nth (zero-based) to pick a specific one. Default is the first match.
Working with iframes
Some pages embed iframes (the scan-area editor, for example). To act on something inside an iframe, pass a frame parameter to the tool — a CSS selector for the iframe element. For nested iframes, pass an array of selectors (outer to inner). The assistant doesn't need to "enter" or "exit" frames; every call is independent.
Worked example — create and run a Node script
This sequence drives the entire flow: open the create form, fill it, submit, then run the resulting script. An assistant calls one tool per JSON line:
{ "action": "app_navigate", "params": { "path": "/system_scripts/new" } }
{ "action": "app_snapshot" } // discover testids
{ "action": "app_fill", "params": { "testid": "field-name", "value": "CSV to JSON" } }
{ "action": "app_click", "params": { "testid": "field-kind-node" } }
{ "action": "app_fill", "params": { "testid": "field-source-filename", "value": "main.js" } }
{ "action": "app_fill", "params": {
"testid": "field-source-code",
"value": "module.exports = async function ({ inputDir, outputDir, log }) {\n const fs = require('fs');\n const path = require('path');\n const csv = fs.readFileSync(path.join(inputDir, 'data.csv'), 'utf8');\n const rows = csv.trim().split('\n').map(r => r.split(','));\n fs.writeFileSync(path.join(outputDir, 'data.json'), JSON.stringify(rows, null, 2));\n log('converted ' + rows.length + ' rows');\n};\n"
} }
{ "action": "app_click", "params": { "testid": "field-persist-logs" } } // keep the log output
{ "action": "app_click", "params": { "testid": "form-submit" } }
{ "action": "app_wait_for", "params": { "url": { "regex": "/system_scripts/[0-9a-f-]+$" } } }
// At this point the script exists. Click Run to execute it:
{ "action": "app_click", "params": { "text": "Run" } }
{ "action": "app_wait_for", "params": {
"jsPredicate": "document.querySelector('[data-testid=run-row-status]')?.innerText === 'completed'",
"timeoutMs": 30000
} }
When the wait completes, the Runs tab shows the new run with status, exit code, and any output files. See Scripts for what a Node script's source code can do.
Tips for AI assistants
- Call
app_snapshotearly. It reveals the testids on the current page, so subsequentapp_clickandapp_fillcalls can target reliably instead of guessing. - Wait explicitly between steps that change the page. Use
app_wait_forafter submitting forms or clicking links — pages often load progressively. - Watch the activity log. The Local MCP panel shows every command the assistant just sent, with status and timing. It's the fastest way to see what the assistant did and where it stuck.
- Read error categories. When something fails, the response includes a structured category (e.g.
element_not_found,iframe_not_found,timeout). Treat them as actionable signals, not exceptions.
Known limits
- Biometric / passkey prompts can't be driven by the assistant — by design. If a flow requires your fingerprint or hardware key, you'll have to provide it.
- Cross-origin iframes (embeds from a different domain) are off-limits to the assistant. Standard browser security boundary.
- File uploads require the assistant to use a temporarily attached debugging channel. This won't work while you have the developer tools open on the desktop's main window — close them first, then try the upload again.
Revoking access
Connected assistant (Claude, ChatGPT)
- Go to Connections → MCP Server.
- Under Connected apps, click the disconnect icon next to the assistant.
- Its access ends immediately. To use it again, connect it again.
Cloud token
- Go to Connections → API.
- Find the token in the list and click the revoke icon (⊘) next to it.
- The token's status flips to Revoked and any in-flight or future requests with it are rejected immediately.
Desktop server
- In the desktop app, open Connections → Advanced.
- In the Local MCP Server card, click Disable.
- The server stops. The assistant can no longer reach the desktop until you click Enable again.
Troubleshooting
"Unauthorized" error (cloud)
- Confirm the token is active in Connections → API
- Make sure the full value is pasted — it starts with
nc_token_ - Confirm the header is exactly
Authorization: Bearer nc_token_…(no extra characters) - If the token is
super_user, confirm the calling IP is in the allowlist — off-allowlist requests return a generic 401 indistinguishable from an invalid token.
Assistant says it has no tools
- The token's scopes control which tools appear — check that the scopes match what you need
- Restart your AI client after saving the config
Assistant can't find a document
- Your assistant only sees documents you own or that are shared with you
- Archived templates are excluded by default — ask your assistant to include archived ones
Desktop assistant can't reach the server
- Confirm the Nocarta Desktop app is running and the Local MCP Server card shows "Running".
- Restart your AI assistant after clicking Enable, so it picks up the latest config.
Desktop commands time out
- The desktop window must be visible (not closed or minimized to tray-only).
- For commands that drive the app's main window, make sure you're signed in to Nocarta.
File upload from the assistant fails
- Close the desktop's developer tools window if you have it open, then ask the assistant to retry.
Next Steps
- Scripts Guide — Author and run Node or Shell scripts (great for the Desktop integration)
- Templates — Creating and filling templates
- Secrets Guide — How credentials stay protected
- Automation Guide — Automate browser tasks with the Desktop app
Need More Help?