MCP server

MCP server

Connect an AI assistant to klickops. It works with your permissions, and every action lands in the audit log.

View .md Reviewed against 2026.10.12
On this page

What it is

The MCP server lets an AI assistant operate klickops. The assistant can list your apps and read logs. It can check why a deployment is unhealthy and make changes. It uses the same API as the web interface.

klickops runs the server for you. You don't install anything. Your assistant only needs an address and signs in through your browser. It then acts as you, in one organization you choose. Everything goes through the same checks as in the web interface: your role, your plan's limits and the audit log. The audit log also shows the client's name for every action.

When you'd use it

  • You ask "why is the checkout app unhealthy?" and want an answer based on the real logs.
  • You already work in an assistant and don't want to switch to a browser.
  • You want a suggestion based on real state.
Careful

An assistant with your permissions can do everything you can do. That includes deleting things. If it only needs to answer questions, give it read-only access when you sign in.

Setting it up

  1. Open Resources at the top right, then CLI & MCP.
  2. Under Connect your AI, copy the MCP address.
  3. Pick your client: Claude, Claude Code, Cursor or VS Code. klickops shows you where the address goes.
  4. On first use, the sign-in opens in your browser. You pick the organization there. You can limit the connection to read-only.

Any client that speaks MCP over HTTP with OAuth sign-in only needs the address. A connection ends after 30 days without use, and after 90 days at the latest. After that the client signs in again. You see your connections under Account, Connected apps. You can disconnect them there too.

For scripts and CI, use an organization API token. Send it as Authorization: Bearer.

From Claude's connector directory

In Claude, you can add klickops without copying the address. Search for klickops among Claude's connectors and click Connect. The klickops sign-in opens in your browser, and you pick the organization there. This works in Claude on the web, on the desktop and on mobile.

What the assistant can do

Tools are named after what they do: klickops_list_apps, klickops_get_app_logs, klickops_restart_app, klickops_query_database. Most of the time an assistant only reads. That's the most useful part. When it sees your real state, it doesn't have to guess.

The server lists the most important tools first. The assistant finds all others with klickops_find_tools. It runs them through one of three runners, depending on what the tool does: klickops_run_read_tool for tools that only read, klickops_run_write_tool for changes, klickops_run_destructive_tool for deleting or replacing something. Your assistant can let reads through and ask you before anything is deleted.

The assistant can also make changes. The same permissions apply as for the API. Every tool tells your client whether it only reads or deletes and overwrites. That way the client can ask before risky steps. For a delete that can't be undone, the assistant has to repeat the object's name. Otherwise the server refuses the call.

Put an app online from a chat

An assistant that wrote an app for you can put it online without a repository. It asks klickops for an upload address with klickops_create_source_upload. The address takes one upload within 15 minutes. If the assistant has a shell, it runs the command that comes with the address: it packs the folder and sends it, so the code never passes through the chat. klickops checks the code, keeps it as a version of the app's source, builds it and puts it live. The first upload creates the app.

A new app starts behind sign-in: only your team can open it. Open it to everyone on the app's domain when you're ready.

Without a shell, the assistant changes code with klickops_put_source_files: it sends the files that changed, and every other file stays as it was. It can read a file first with klickops_get_source_files. An app keeps its last 20 versions. The assistant can go back to one with klickops_deploy_source_version, or give you a download link for one.

To see whether the page works, the assistant calls klickops_check_app. It sends one request to the app from inside klickops, so it reaches a private app too, and it shows what came back. After every upload klickops checks the home page by itself. To see the page itself, the assistant calls klickops_get_app_screenshot and gets a small picture of it, as a browser shows the app's address. A picture of a private app needs no password: klickops signs the browser in for that one picture. Fonts or images from other sites don't load in it.

An upload holds at most 50 MiB and 10,000 files and folders. A provider key or a private key in the code stops the upload, because the code is kept and built into the image. Store such values as secrets instead.

Limits and gotchas

  • Secrets stay secret. Tools show key names, never values. The endpoints that return database and bucket passwords are left out on purpose. An assistant can't read your credentials out of klickops.
  • One connection, one organization. If you work in several organizations, connect the client to each one separately.
  • It has no memory. Every call reads the current state. So an assistant won't act on something it saw ten minutes ago.
  • Give as few permissions as possible. Read-only for questions. Full access only when you really want to change something.