---
title: "OAuth & MCP"
description: "Sign-in for other services and agents, and the MCP servers the app uses."
url: "https://cyantula.app/docs/apps/access/oauth/"
updated: "2026-12-03"
---

For app publishers

Sign-in for other services and agents, and the MCP servers the app uses.

### What this is

This page holds two switches about how people and programs sign in to your app.

The first makes your app sign visitors in through cyantula, using a standard method called **OAuth**. With OAuth, your app sends a visitor to cyantula to sign in, cyantula sends them back with a one-time code, and your app swaps the code for a digital pass (a **token**) that proves who the visitor is. It is the safest way to know who is using your app, and it also works while a developer builds the app on their own computer.

The second lets colleagues&#39; **AI agents** use your app as the colleague who asked them. An **AI agent** is a program, such as Claude, that does tasks for a person.

You will mostly use this page when a developer or AI agent builds the sign-in part of your app. The &quot;MCP&quot; in the name is explained at the end of this page.

### Where to find it

1. Open the page and click your app.
2. Switch to at the top of the app page.
3. Click the card , then .

**OAuth &amp; MCP** is an Advanced theme. If OAuth is already on for your app, the Simple view lists it under **Also in use on this app** on the app page.

The client id, client secret, redirect addresses and the card **Endpoints** only appear while OAuth is switched on.

### What you see

**Sign visitors in with OAuth.** A short explanation and one checkbox, **This app signs users in with OAuth**. While it is ticked you also see:

- : the name your app uses when it talks to cyantula. A button copies it.
- : the password that goes with it. It is hidden. , and are next to it, and makes a new one. The secret is already inside the running app. You only copy it for development on your own computer.
- : the addresses where cyantula may send a visitor back after sign-in. Your hosted app&#39;s address is there already, and addresses on your own computer (localhost) are accepted too. Each address has a button. A box with adds another.
- *: a checkbox for the most locked-down setup. See below.

**Let agents in.** One checkbox, **Colleagues&#39; agents may use this app as them**. When it is ticked, three addresses appear: the **Resource**, the **Discovery** address, and an **Add to Claude Code** address that ends in `/mcp`.

**Endpoints.** Four read-only addresses for the developer: **Issuer**, **Authorization**, **Token** and **User info**.

### How to switch OAuth on

1. Tick .
2. A message says
3. Deploy the app so it receives the client id and secret. See .
4. Open , copy the prompt and give it to your AI agent. It explains the whole flow, so the agent can build the sign-in.

You know it worked when **Client id** and **Client secret** appear.

### How to switch OAuth off

1. Untick .
2. A message says

Everybody who signed in with OAuth is signed out. There is no confirmation, so be sure first.

### How to replace the client secret

1. Click next to .
2. A window asks It tells you the running app cannot complete new sign-ins until you deploy again. Click , or cancel.
3. A message says Deploy the app.

### How to add a redirect address

1. Type the address in the box under , for example the address your developer uses on their own computer.
2. Click . It shows in the list.
3. Click . A message says To drop your changes, click .

At least one address must remain, so **Remove** is greyed out on the last one. If your app has a dev address, cyantula keeps its addresses registered for you. Removing one here does not stick.

### How to stop sending identity headers (OAuth only)

Normally cyantula tells your app who the visitor is on every request. With **OAuth only**, it stops, so your app learns who the visitor is only through the OAuth token and user-info steps.

1. First make sure the deployed version really signs users in with OAuth. Until then it would see every visitor as anonymous.
2. Tick *.
3. A message says cyantula no longer sends identity or integration headers to this app. Untick the box to bring them back.

### How to let colleagues&#39; agents use the app

1. Tick .
2. A message says agents may use this app as a colleague, with that colleague&#39;s consent. Paste the prompt from into your agent so it learns how.
3. The addresses , and appear.

From now on, an agent that calls the app is told where to sign in. The colleague agrees once in the browser, and the agent then works as that colleague, with the same access as that colleague has. A colleague who may not open the app cannot let an agent in either. The app page shows the address for Claude Code to everyone who may open the app, and the app&#39;s card in the catalog gets an **agent-ready** mark.

To stop it, untick the box. A message says **Agent access is closed — every token issued for this app stops working.**

### When something looks wrong

- The settings are still being fetched. If a red message shows instead, reload the page.
- The agents checkbox is greyed out with . Untick first.
- A red message after you click: the change was not saved. Try again. If it keeps failing, ask your administrator.
- After switching OAuth on or regenerating the secret, sign-in does not work yet: you did not deploy yet. Deploy the app.
- is greyed out on a redirect address: it is the last one.

### Good to know

- Switching OAuth off signs everybody out of it. Regenerating the secret stops new sign-ins until you deploy.
- Never put the client secret in the code or share it. Copy it only for development on your own computer.
- Agent access works on the production address only.
- is a way for AI agents to use a program&#39;s tools. If your app offers such a connection, colleagues can add it to Claude Code with no sign-in code on your side. The MCP servers that an administrator publishes for your app are bound on , not on this page.
