For app publishers
OAuth & MCP
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' 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 "MCP" in the name is explained at the end of this page.
Where to find it
- Open the Apps page and click your app.
- Switch to Advanced at the top of the app page.
- Click the card Access & security, then OAuth & MCP.
OAuth & 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:
- Client id: the name your app uses when it talks to cyantula. A Copy button copies it.
- Client secret: the password that goes with it. It is hidden. Show, Hide and Copy are next to it, and Regenerate makes a new one. The secret is already inside the running app. You only copy it for development on your own computer.
- Valid redirect URLs: the addresses where cyantula may send a visitor back after sign-in. Your hosted app's address is there already, and addresses on your own computer (localhost) are accepted too. Each address has a Remove button. A box with Add adds another.
- OAuth only — stop sending the X-Spin- headers*: a checkbox for the most locked-down setup. See below.
Let agents in. One checkbox, Colleagues' 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
- Tick This app signs users in with OAuth.
- A message says OAuth is on. Deploy to hand the credentials to your app, and paste the prompt from the "integration" tab into your AI agent.
- Deploy the app so it receives the client id and secret. See Deploys & logs.
- Open For your AI agent, 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
- Untick This app signs users in with OAuth.
- A message says OAuth is off — every existing sign-in for this app has been revoked.
Everybody who signed in with OAuth is signed out. There is no confirmation, so be sure first.
How to replace the client secret
- Click Regenerate next to Client secret.
- A window asks Replace the secret? It tells you the running app cannot complete new sign-ins until you deploy again. Click Replace secret, or cancel.
- A message says New secret — deploy to give it to your app. Deploy the app.
How to add a redirect address
- Type the address in the box under Valid redirect URLs, for example the address your developer uses on their own computer.
- Click Add. It shows in the list.
- Click Save redirect URLs. A message says Redirect URLs saved. To drop your changes, click Discard.
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.
- First make sure the deployed version really signs users in with OAuth. Until then it would see every visitor as anonymous.
- Tick OAuth only — stop sending the X-Spin- headers*.
- 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' agents use the app
- Tick Colleagues' agents may use this app as them.
- A message says agents may use this app as a colleague, with that colleague's consent. Paste the prompt from For your AI agent into your agent so it learns how.
- The addresses Resource, Discovery and Add to Claude Code 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'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
- Loading… The settings are still being fetched. If a red message shows instead, reload the page.
- The agents checkbox is greyed out with Not available while the app is OAuth-only. Untick OAuth only 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.
- Remove 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.
- MCP is a way for AI agents to use a program'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 Integrations, not on this page.