Sign up (with export icon)

Set up your environment

Show the table of contents

Before you can use Coauthor, contact us to turn it on for your CKEditor Cloud Services environment, or to get a license key with Coauthor for your CKEditor Collaboration Server On-Premises. Then add DocumentCompare to your editor bundle, and find the MCP address that your agent connects to.

The three steps of setup: Coauthor is turned on for your environment, your editor bundle has DocumentCompare, and your agent connects to the MCP address. Then the edits or suggestions arrive in the document.

To try it in a few minutes instead, follow the Quick start.

Add DocumentCompare to your editor bundle

Cloud Services runs your editor bundle in every session. Coauthor checks and applies your agent’s edits with that editor. So your bundle needs CKEditor 5 v49.0.0 or later, with these premium features:

  • DocumentCompare, always. Coauthor reads the document and applies the edits with this plugin. Without it, a session cannot open. If the editors of a live document still use a bundle without DocumentCompare, the session fails at once with HTTP 400 bundle-missing-plugin.
  • TrackChanges, if your agent’s edits should arrive as suggestions.
  • Comments, if your documents have comments.

Add these plugins to your existing editor configuration. If you have no bundle build yet, start from the upload script in the Quick start, and add the plugins of your editor to it. Then build the bundle and upload it under a new version, as Editor bundle describes. With Collaboration Server On-Premises, send it to POST <APPLICATION_EXTERNAL_ENDPOINT>/api/v5/<environmentId>/editors on your own server. Sign the request with an API secret of the environment, as Request signature describes. You manage API secrets in the Management Panel.

The version that a session runs depends on the type of document:

  • A live document: the session runs the version that your editors use.
  • An uploaded document: your backend picks the version when it opens the session.
  • A snapshot: your backend picks the version too. Pick the version of the editor that took the snapshot.

Document types describes the three types.

Find the MCP address

Your agent connects to the MCP address of your environment:

https://<organizationId>.cke-cs.com/toolkit/v1/environments/<environmentId>/mcp
  • <organizationId> is the first part of the host name of your Cloud Services addresses. For the token URL https://17717-dev.cke-cs.com/token/dev/XXX, it is 17717-dev.
  • <environmentId> is the ID of your environment in the Customer Portal.

With Collaboration Server On-Premises, the address starts with the public URL of your server. It is the same as APPLICATION_EXTERNAL_ENDPOINT, if you set it:

<APPLICATION_EXTERNAL_ENDPOINT>/toolkit/v1/environments/<environmentId>/mcp

For example, https://cs.example.com/toolkit/v1/environments/<environmentId>/mcp. Find <environmentId> in the Management Panel.

In both cases, your backend opens, applies, and closes sessions at the same address, without /mcp at the end.

Next steps