Connect external AI tools

Connect Claude, ChatGPT, Copilot Studio, Claude Code, Codex or another AI tool that supports MCP: paste one address and approve. Access keys are the fallback.

You can use OpenLoc from an AI tool that supports MCP, such as Claude, Claude Desktop, ChatGPT, Copilot Studio, Claude Code or Codex. The tool connects through MCP (Model Context Protocol), signs in as you, and gets the same actions as the built-in assistant, with your role, in one organization. Members of a vendor organization connect the same way, with a smaller set of actions: see In a vendor organization. A customer connects too, with a smaller set: see What a connected tool can do. The built-in assistant stays closed to customers.

Connect Claude or ChatGPT

  1. Open your avatar menu at the top right and click MCP settings. A customer can also use the portal's From AI chat tab.
  2. Under Choose your AI tool, click Claude or ChatGPT. Its numbered steps start with the MCP server address: your OpenLoc address followed by /mcp, {app_url}/mcp. Click Copy.
  3. Click Open Claude connectors or Open ChatGPT plugins and paste the address there:
    • Claude (on the web or in Claude Desktop): paste it as the server URL, click Add, then Connect.
    • ChatGPT: click Add, then Add custom MCP server. Paste the address as the server URL, choose OAuth, create and install it.
  4. The tool opens OpenLoc. Approve access.

Then ask something simple, such as "List my tasks in OpenLoc".

On a Claude Team or Enterprise plan, an Owner of your Claude organization adds the connector once, under Organization settings > Connectors. Each member then clicks Connect under Customize > Connectors and signs in as themselves. If ChatGPT does not let you add a custom MCP server, ask your ChatGPT workspace admin.

Connect Copilot Studio

An agent you build in Copilot Studio can use OpenLoc as a tool, and so can Microsoft 365 Copilot and Teams where that agent is published. Copilot Studio reaches OpenLoc over the internet, so your OpenLoc address must be a public https address.

  1. On MCP settings, click Copilot and copy the MCP server address with Copy, as above.
  2. Click Open Copilot Studio and open your agent.
  3. Open Tools, click Add a tool, then New tool, then Model Context Protocol.
  4. Paste the address as the Server URL. Under authentication, choose OAuth 2.0, then Dynamic discovery. Leave everything else empty and click Create.
  5. Create the connection when Copilot Studio asks. It opens OpenLoc: approve access.

Connect Claude Code or Codex

Run the commands for your tool in a terminal. Your browser then opens OpenLoc to approve access.

claude mcp add --transport http --scope user openloc {app_url}/mcp
claude mcp login openloc
codex mcp add openloc --url {app_url}/mcp

Claude Code: --scope user makes OpenLoc available in every folder; start a new session to use it, and run claude mcp list to check. Codex: if the browser does not open, run codex mcp login openloc. The Codex CLI, the Codex IDE extension and the ChatGPT desktop app share this setup.

Connect another AI tool

Most tools that support MCP with sign-in (OAuth) connect the same way. Look in its settings for a custom MCP server, connector or integration.

  1. Add a new one and paste the MCP server address from the More tile on MCP settings: {app_url}/mcp. The address field may be called server URL, endpoint or remote URL.
  2. If the tool asks how to authenticate, choose OAuth or sign-in. Leave client ID and secret empty: the tool registers itself.
  3. Approve access in OpenLoc.

If sign-in does not work, or the tool can only send a fixed token, use an access key instead.

Approve access

The tool opens an OpenLoc page that reads … wants access to OpenLoc. Sign in first if OpenLoc asks.

  1. Read the box: Read-only access or Read and write access. The tool decides which one it asks for.
  2. Check where OpenLoc sends the approval: claude.ai for Claude, chatgpt.com for ChatGPT, global.consent.azure-apim.net for Copilot Studio, and localhost or 127.0.0.1 with a port for Claude Code and Codex. Only continue if you recognize it.
  3. Under Organization, pick the organization the tool works in.
  4. Click Approve.

The tool appears under Connected on MCP settings. To use another organization, connect again and pick it.

Use an access key instead

Use an access key only for a tool that cannot sign in, or for your own scripts and agents. A key is a secret: anyone who has it acts as you. Do not add one to a Claude connector: on a Team or Enterprise plan, everyone who uses that connector would act as you.

  1. Click API in the left navigation. The form is under Your keys.
  2. Enter a Name, such as "My script", choose when it Expires (30 days to 1 year), and set Access to Read only or Read and write.
  3. Click Create access key, copy the key from the yellow box, then click Done. It is shown only once; if you lose it, revoke it and create a new one.

Give the key to the tool as a bearer token:

claude mcp add --transport http --scope user openloc {app_url}/mcp --header "Authorization: Bearer <your access key>"
export OPENLOC_KEY="<your access key>"
codex mcp add openloc --url {app_url}/mcp --bearer-token-env-var OPENLOC_KEY

A key belongs to you and to the organization you created it in. The same key works with the OpenLoc API.

Fix connection problems

What you see What to do
You are in the Playground. Leave it to connect an app. Leave the Playground, then connect again from the tool.
An OpenLoc page that reads Can't authorize this request Close the window and connect again from the tool.
This action needs write access. Reconnect and approve write access. The tool signed in with read-only access. Disconnect it under Connected on MCP settings, connect again from the tool, and approve Read and write access.
writes require user confirmation or a token with write access The access key is Read only. Create a Read and write key and give it to the tool.
The tool cannot connect with an access key, or Claude Code shows Failed to connect The key is wrong, expired or revoked. Check its status on the API page, and create a new key if needed.
The tool shows another organization's work Disconnect it and connect again, picking the right organization. An access key works only in the organization where you created it.
you can reach this only while you have an open task on it; openloc_list_my_tasks lists yours You work in a vendor organization and have no open task on that job. Ask the tool to list your tasks and work from one of them.
the organization you work for allows online work only: open the task in the CAT editor; files can't be downloaded The client keeps your vendor organization online only. Work in the CAT editor.
vendor organizations can't use this tool You work in a vendor organization, and this action is not available there. See In a vendor organization.
too many requests for this key — slow down and retry The tool sent too many requests at once. Wait a few seconds and try again.
Translation memory search is unavailable. Try again later. A tool that reads TM matches, applies the translation memory or pre-translates a project could not search the memory. Try again later.

Review and revoke access

Access keys

  1. Click API in the left navigation. With no keys yet, the list reads No MCP/API access keys created yet.
  2. Each key shows its status (Active, Expired or Revoked), its access level, the first characters of the key, when it was last used, and when it expires.
  3. Click the trash icon to revoke a key. Revoking is immediate and cannot be undone.

Connected AI tools

  1. Open MCP settings and look at Connected. With no AI tools yet, it reads No AI tools connected yet. Once you approve an AI tool in OpenLoc, it appears here.
  2. Each AI tool shows its name, its access level, when it connected, and when it was last used.
  3. Click Disconnect and confirm. The AI tool's access to this organization stops at once. You can connect it again from the AI tool any time.

Setting a new password with Forgot password? disconnects all your connected AI tools, in every organization. Connect each one again from the AI tool. Your access keys keep working.

Changing your sign-in email with Change sign-in email in Settings → Profile also disconnects all your connected AI tools. It also turns your access to every organization off until an owner or admin there enables it, so connect again after that.

What a connected tool can do

The tools follow your role.

Role Read
Owner, admin, project manager Projects: projects (with their MT router and the engine each target language goes to), files, jobs and their steps, segments and their history, comments, analyses, progress and project history. Resources: memories and their entries and imports, TM search and matches, term bases, terms and concepts, TM profiles. Setup: MT engines, MT routers, AI prompts, engines and routers, provider connections, steps, workflows, templates, QA profiles, segmentation profiles, file configurations, labels and customers. Team and analytics: members and vendor organizations, with their language pairs (as source→target) and the steps and domains they may take, invites (project managers see only linguist invites), productivity, what needs attention, analytics metrics, dashboards and saved analyses. Files: download links for source files, translated files, TMX and term exports. Reported issues: your organization's, with their conversations. You: your profile, notifications and theme. Docs pages.
Linguist Your tasks; a job's details, steps, analysis and TM leverage; segments and their history; comments; TM search and matches; term lookup; QA report; a machine translation preview; segmentation profiles, a preview of how one splits a text, and their SRX export; file configurations; download links for the source and translated file; the issues you reported, with their conversations; your profile, notifications and theme; docs pages.
Customer Docs pages, and Translate text (openloc_translate_text), which translates a text at once as the portal does and needs write access. Nothing else.

With write access (an access key with Read and write, or a connected AI tool approved with write access), a connected tool makes the same changes as the built-in assistant in write mode, with the same split by role — see the list.

Each invite in the list shows its kind: an invite into this organization, or an invite to set up a vendor organization, with the vendor's name. A tool can revoke either, but it only invites members. A vendor organization is set up with Invite vendor on the Vendors list of the People tab of the Organization page.

An owner or admin's tool with write access disables a member with Disable member (openloc_disable_member) and enables them with Enable member (openloc_enable_member), under the rules in Disable a member by hand. Disabling takes two calls like a delete. List members shows a disabled flag on each member.

An owner, admin or project manager's tool can send a task to a vendor organization instead of a person. It lists the vendors that take work (status Testing or Active) with List vendor organizations (openloc_list_vendor_orgs), then passes a vendor's id as vendor_org_id instead of user_id to Assign job (openloc_assign_job) or Assign step (openloc_assign_step), or as default_vendor_org_id instead of default_assignee on a workflow step. A task with a vendor shows vendor_org_id and vendor_org_name in the job and step lists; the vendor's people and the vendor's own due date are not shown. They also show where the vendor's answer stands: vendor_answer (waiting, proposed, accepted or declined), vendor_sent_at, and, for a proposal, vendor_proposed_deadline. A declined task is back with you and shows declined_by_vendor_name and vendor_decline_reason. A project manager's tool with write access approves or rejects a proposed deadline with Approve or reject a vendor's deadline (openloc_answer_vendor_deadline), passing job_id, step_assignment_id and approve. Approving sets the step's deadline and accepts the task; rejecting keeps the deadline and the vendor answers again. The vendor is notified.

An owner or admin's tool with write access sets a vendor organization's status with Set vendor status (openloc_set_vendor_status): vendor_org_id, status (testing, active, on_hold, disabled or archived) and an optional note of up to 500 characters. For on_hold, on_hold_until is an optional future date and time (RFC 3339) when the vendor is disabled by itself; the vendor keeps its open tasks while on hold. Only Testing and Active vendors take new tasks. Disabled and Archived end the vendor's access and bring its open tasks back with nobody on them. It takes two calls like a delete; the first lists the effects. See customers and vendors for the vendor organization itself.

An owner or admin's tool with write access sets which workflow steps and which Domain label values a member or a vendor organization may take: Set member steps and domains (openloc_set_member_limits, with user_id) and Set vendor steps and domains (openloc_set_vendor_limits, with vendor_org_id). Each takes step_definition_ids from List workflow step definitions and domain_value_ids from List labels. The tool sends the complete lists, which replace the stored ones; an empty list means any. List members and List vendor organizations show them as limits. Assign job and Assign step refuse, with the reason, a task the person or vendor may not take: see Assign a person to a step.

Long lists come in pages. List project files (openloc_list_files, newest first) and List members (openloc_list_members, by name) return up to 200 entries (50 by default) and, when there are more, has_more set to true and a next_cursor. The tool passes it back as cursor to get the next page.

A translation memory holds confirmed and pending entries, as described in Pending entries. Get TM matches (openloc_get_tm_matches) and Search TM (openloc_search_tm) mark a pending hit with pending set to true; they offer it only for the project the tool works in. List TM entries (openloc_list_tm_entries) takes an optional status, confirmed or pending, and returns both when it is omitted. It also takes an optional updated_by: only the entries whose updated_by is exactly that value, as each entry shows it. Both combine with the language and text filters. Each entry shows its status and, when a project wrote it, its project_id. The entry counts a tool reports hold confirmed entries only.

In analytics, a tool can group a chart by any project label, the built-in Domain label or one of your organization's own, and use a label as a dashboard or chart filter control. It names a label as label:<id>, with the id from List labels (openloc_list_labels), in the dimensions and filters of a metrics query or chart and in the controls of the dashboard and chart filter tools.

List segments returns each segment's text and, when it has inline tags, source_rich_text and target_rich_text with the tags in place. has_target says whether the segment has a target, so a segment with only tags, or a target made only of tags, does not look empty. Save draft and Save drafts batch take rich_text for such a segment, sent with an empty text; every other segment needs text. Confirming a segment with only tags and no text confirms its tags.

A tool cannot change a segment someone else has open in the editor. Tools that change many segments skip it and report it as held; an XLIFF re-import counts it as skipped_held and lists the keys in skipped_held_keys. The previews of a clear and of a re-import say these segments are kept.

An XLIFF re-import reads each segment's status from the file, as Update from file does in the app — see Update a task from an edited file. An XLIFF that is not an export of this file is refused with the reason, in the preview too: none of its units is in the file, or most matched units have another source text (whitespace ignored). The result counts segments whose text is the same but whose status the file changes as status_changed, segments it locks as locked, segments it unlocks as unlocked, and locks it leaves out as locks_not_applied (keys in locks_not_applied_keys), because only a project manager, admin or owner can lock. Lowering an approved segment's status, like changing its text, needs force, and so does unlocking a locked segment; until then the result counts them in skipped_approved and skipped_unlock (keys in skipped_unlock_keys), and with force it counts the approved segments it gave a new text or a lower status in approved_overwritten. With keep_locks, the segments the file would unlock stay locked, are counted in skipped_locked and need no force; approved segments the file changes still do.

For a reviewer without a CAT tool, the export tools (Export job, Export file) take format review_docx: a Word table with the source, the target and a comment for each segment. The link is the result; include_content returns no text for it. Re-import XLIFF or review file (openloc_reimport_xliff) accepts the edited .docx as well as an XLIFF. A review file carries no statuses, so changed segments become Draft, or are confirmed with confirm_changed; a confirmation from a file stays out of translation memory until a person confirms it or a manager runs Save to TM. reviewer names the person outside OpenLoc, who is kept in the segment history and as the author of their comments. The reviewer's comments become segment comments, counted in comments; List comments shows the reviewer as external_author. A row with a broken tag, or that matches no segment, is not imported: the result counts them in rejected and lists each in rejected_rows with its number, its key when it matched a segment, and a reason of tags, source_changed, unknown_row or duplicate. The preview reports the same counts. When someone approves or locks one of the file's segments between the preview and the confirmation, nothing is written and the result says stale: call again without confirm_token for a new preview.

For a translator who works in Trados, the export tools take format sdlxliff: an SDLXLIFF file to translate in Trados. The link is the result; include_content returns no text for it. Re-import XLIFF or review file imports the translated file back.

When a tool completes a step, it can pass a comment for the next assignee, like Comment for next assignee in the editor — see Complete a step.

Comments on a segment form threads (Comment on a segment). List segment comments (openloc_list_comments) gives a reply the thread_id of the thread's first comment, and marks that first comment resolved (with resolved_at) when the thread is resolved. A deleted first comment that still has replies shows deleted set to true and no text. on_source or on_target holds the words of the segment the thread points at. A mention shows as @Name. Add segment comment (openloc_add_comment) takes reply_to, the comment_id of a comment in the thread, to reply; without it the comment starts a new thread. A reply to a resolved thread reopens it. To mention a member who works on the segment, write @[user:<id>] in the text, with the id from List members; that person is notified. Resolve a comment thread (openloc_resolve_comment) resolves a thread, or reopens it with reopen set to true. It takes the first comment's id and is open to every role that can write. The notification preferences tool also takes email_comments, the Comments email setting.

A project a tool creates needs a workflow: the tool picks one from your workflows, or uses a template that brings one. Without either, creating the project fails with workflow_id is required, and a draft project cannot be published until it has a workflow. A template can be saved without a workflow; each project made from it then picks one.

The template tools take and show a domain: the template's Domain label value, one of the values listed by List labels (openloc_list_labels). It is matched without regard to case, an unknown value is an error, and an empty one clears it.

A connected tool cannot use files attached in OpenLoc's own assistant. To add a document to a project, an owner, admin or project manager's tool sends the file's text instead: plain text, HTML, Markdown, MDX, JSON, XLIFF, PO/POT, Apple strings or XML, up to 1 MB. It becomes a project file like an upload on the project page. Upload Word, PDF and Excel files, and anything larger, on the project page. The same way back: a tool can read an exported file's text, for these formats or a bilingual XLIFF, up to 1 MB, in the target languages the user may export.

Every role can also report an issue to the support team, even with read access only. Like the changes below, it takes two calls: the first shows you the report, the second sends it. With write access, a tool also replies to the issues you can see, confirms a fix and updates an issue, as on the Reported issues page: its kind, severity and areas (the reporter, or an owner, admin or project manager; an issue has one or more areas, and the tool sends the whole list, which replaces the current ones), and its title and description (the reporter only; the description is replaced whole, so the tool shows you the new text before saving). A reply or an edit reaches the support team. It cannot delete an issue. See Report an issue.

Changes that need a second call

A delete, a clear, a confirm, a find and replace, an XLIFF re-import, a chart edit, a change to a project's workflow, an invite to the organization, a vendor status change, and an edit to settings other things use (an engine, router, workflow, step, template, QA profile, TM profile, segmentation profile, file configuration or a member's role) take two calls:

  1. The first call changes nothing. It returns a preview of what would happen, with knock-on effects such as how many projects use the thing, and a confirm_token.
  2. The tool shows you the preview. Only after you approve does it call again with the confirm_token and the same arguments. That call makes the change.

A confirm_token works only for that tool, those arguments, you and this organization, and it expires after 10 minutes. After that, or if any argument changes, the tool must ask for a fresh preview. Deletes are marked as such, so an AI tool that asks you before risky actions asks here too.

Find and replace leaves locked segments out by default. With include_locked set, an owner or admin also replaces in them, which unlocks them; for anyone else they are left as they are. The preview says which applies. Locking a segment through a tool needs a project manager, admin or owner and approves it; anyone who may edit a segment may unlock it.

Set up AI prompts, engines and workflows

A connected tool can build the AI configuration a project runs on, in the order the app uses: a system prompt, an AI engine that binds it to a provider connection, a router that decides which engine each target language reaches, and then either a workflow step (for a review engine) or a project (for a translation engine). An engine is never used directly — a router always sits in between:

Ask for what you want and the tool lists what already exists before creating anything — the built-in prompt templates and the standard Translation and Review steps are usually enough to build on.

Creating and editing prompts, and creating, editing and deleting AI engines and AI routers, is owner or admin only, matching the AI engines and prompts page. A project manager can build, edit and delete MT engines, MT routers, steps and workflows, but not prompts, AI engines or AI routers, and gets a message saying so.

When a tool creates or previews a prompt, it picks the type: mt, qe, ape, qe_ape or comment. A comment prompt (Comment only) leaves a remark for the linguist and never changes a segment. The prompt list filter qe_ape returns every review prompt, comment-only ones included. When a tool runs an AI step again (openloc_rerun_ai_step), the result counts the segments left with a comment in commented, next to auto_approved and needs_review.

A tool can edit a prompt you already have: its instructions, what each segment carries with it, and the rules for particular languages. It cannot change the prompt's type — engines are built on it — and it cannot touch the built-in templates, which stay read-only. The context and the language rules are replaced rather than added to, so a tool that changes one of them sends the whole set back. The same applies to the document context (none, nearby segments or the whole file), how many nearby segments (1 to 10) and the number of TM matches sent (1 to 5): leave one out when updating and it returns to its default. A prompt preview also shows the document context it would send.

A connected tool never adds a provider connection, because that means handling an API key — add it once on the provider's page under Integrations, and the tool picks it from the connections that already exist. A tool only builds engines on engine keys, not on a provider's assistant key. For a Microsoft Azure key, the models a tool can pick are the deployments listed on that key's connection, so add a deployment there before a tool can build an engine on it. Pointing a project at an MT router replaces whatever router the project followed before.

A tool can also set a QA profile's number format by language and what the Placeables and Whitespace checks compare or report. It sends the whole setting of that check back, because that replaces the stored one.

Every role can list and read file configurations, the named import options for one file format; the tools and their fields call them filter profiles (filter_profile). An owner, admin or project manager's tool creates (from options, or as a copy of another one; copy a built-in to change it), renames, edits and deletes the organization's own; the built-in ones are read-only. An edit replaces the configuration's whole options. Project settings and templates take filter_profile_ids, a map from format (html, xlsx, json_i18n, po, txt, markdown, xml) to a configuration's id, where 0 goes back to the format's Default, and return the choice per format as filter_profiles. The older inline_html input still works: true picks each string format's Default, false its Plain text strings configuration, and filter_profile_ids wins per format. A choice or a configuration change reaches only files uploaded afterwards. Deleting a configuration sends the projects that use it back to the format's Default, and a configuration a template uses cannot be deleted.

Running QA from a tool works exactly like the button in the app, ignored findings included — see The AI assistant.

The three docs tools — List docs pages (openloc_list_docs), Search docs (openloc_search_docs) and Get docs page (openloc_get_doc_page) — are available to every role, so the AI tool can explain OpenLoc to you from the manual.

An owner, admin or project manager's tool with write access can write a job's or a file's segments to the translation memory: Save job to TM (openloc_save_job_to_tm) and Save file to TM (openloc_save_file_to_tm). Both return the segments written, the ones the memories already held unchanged, the ones skipped by reason, and the languages that have no memory with Write. By default they write only segments a person approved; include_unconfirmed also writes translated segments that are not confirmed. Save file to TM writes every target language of the file; target_languages limits it to the listed ones, and a language with no job in the file is an error. Segments an AI step or the assistant approved are written only when the project's or template's tm_save_auto_approved setting is on, which project and template settings tools read and change.

Search TM (openloc_search_tm) matches the query anywhere in an entry by default. With whole_word set to true, only entries where the query stands as a word of its own match: "chin" does not match "watching". It is the same as Whole words in the editor's concordance search.

A connected tool cannot reopen a completed task, delete a project or a file, handle keys, reach another organization, or do more than your role allows — the same limits as the built-in assistant, listed under What the assistant cannot do. A segment it confirms stays out of the translation memory until a person confirms it (or a manager's Save to TM writes it, see above) — see why.

In a vendor organization

Every member of a vendor organization, whatever their role, can connect an AI tool on MCP settings or create a key on API. The OpenLoc API stays closed to vendor organizations.

The built-in assistant works for every vendor role too, with the same reach.

What the client allows

The client decides, for your vendor organization, whether you may use AI tools over MCP, the assistant, and changes to its jobs through them; see Limit a vendor's AI access. With MCP off, a call is refused with vendor_mcp_off; with changes off, the tool only reads the client's jobs.

The tool and the assistant work on the client's jobs for tasks you hold:

A vendor admin or project manager also gets:

If the client keeps your vendor organization online only, Export job (openloc_export_job), Export file (openloc_export_file) and Download source (openloc_download_source) are refused, with any key or connection. Every other tool works as before, the read tools included.

Applying or previewing machine translation, clearing a whole job, job analysis, re-running AI and every project or configuration tool are not available.

Every tool call is written to an audit trail, including refused ones. The arguments are not stored, so source text is not kept in that log.

Related