Any AI client can register with our MCP server — here's what the consent screen does about it
2026-11-23
When you connect an AI client to okokumo's MCP server using only the
URL, the client registers itself with us first. Nobody approves that
registration. The MCP authorization spec expects it to work this way: a client
you've never heard of has to be able to connect to a server it has never seen.
So POST /oauth/register is open to anyone, and a client can give itself any
name it likes.
The MCP post covers how the browser sign-in works. This one is about the screen in the middle of it, which is designed on the assumption that the app's name could be made up.
A name is a string someone typed
Here is a registration anyone can send:
POST /oauth/register
{"client_name": "Claude", "redirect_uris": ["https://claude.ai.evil.example/cb"]}
It succeeds. The limits are 10 registrations per hour per IPv4 address or IPv6 /64, and 20 never-approved clients per network at a time. There is no list of reviewed apps to check it against, and keeping one would mean us deciding who gets to be called "Claude". So the consent screen doesn't try to tell real apps from fake ones. Instead it shows the one thing a client can't fake: where your access goes when you click Approve.
What the screen shows
For that registration, the consent screen reads, top to bottom:
- An Unverified app badge, followed by: "Anyone can register an app with Okokumo, and nobody has checked who made this one. Its name is whatever its maker typed: judge it by where it sends you."
- The heading "Connect an app to Acme?", for an organization called Acme. It names your organization, not the app.
- A box in large monospace type: "If you approve, access to your organization
is sent to claude.ai.evil.example". The bold part is the registrable
domain, taken from the public suffix list, the way a browser's address bar
highlights it.
claude.ai.is just a subdomain that the owner ofevil.examplechose. - Then a short list: Calls itself "Claude" (in quotes), Access, which is the same access as an API key with your role, and Signed in as with your email.
- A warning: "Only approve if you started this connection yourself and you recognise evil.example."
- Two buttons: Approve and continue to claude.ai.evil.example, and Deny.
The name appears exactly once: in quotes, under "Calls itself". It isn't the heading and it isn't on the button. The button names the destination, so the last thing you read before you click is where you're going. Nothing is approved without that click, even for an app you approved before.
The name is rendered as plain text: a client_name of <img src=…> shows up
as those characters. The page loads no logo or other remote resource, and
registration doesn't even store logo_uri or client_uri.
The same name, pointing at localhost
Now register "Claude" with http://localhost:6274/callback. That's how a
desktop or CLI client receives the code. The badge and its text stay the same.
The destination box reads localhost:6274, and because the address isn't
plain https, the full http://localhost:6274/callback is printed under it.
The warning asks whether you recognise localhost.
That tells you the code stays on your machine, not which program on it is listening. If you just added okokumo to a client and a tab opened, this is expected. If you didn't start anything, deny it.
Loopback is the only case where matching isn't exact. A desktop app picks its port at run time, so any port is accepted, but the scheme, host, path and query must match what was registered. Every other redirect URI must match a registered one character for character, at every authorization.
Some clients, Claude Code among them, don't register at all. They identify themselves by the URL of a client metadata document. They still get the Unverified app badge, but for a document hosted on claude.ai the text becomes "Okokumo has not reviewed this app. Its name and details come from claude.ai, which published them." A Published by row also shows that host. The document's host is the vendor's own domain, so it's a fact and not a claim.
What registration strips from a name
A visible name can still imitate another app. "Clаude" spelled with a Cyrillic а looks like "Claude", and it passes, because it is visible text. That's the case the unverified label and the destination box exist for. A name can also hide things, though, and those are removed before it is stored:
- Control, format and private-use characters. This covers bidi overrides such as U+202E, which can make text read backwards, and zero-width characters.
- The rest of Unicode's default-ignorable code points: Hangul fillers, the combining grapheme joiner and variation selectors. The blank-looking Braille pattern U+2800 goes too.
- Combining marks beyond three per letter, so a name can't stack marks over the text around it. Vietnamese and Devanagari need two or three.
- Whitespace runs, which become a single space.
"Claude\u200b (official)\u202e" is stored as Claude (official). If nothing
visible is left, the name becomes "Unnamed app". After cleaning, a name can be
at most 100 characters. Anything longer is refused with
client_name is longer than 100 characters. Names stored before this rule
existed are cleaned again whenever they're shown.
What registration refuses
Putting the domain in bold only helps if it's the domain the browser actually
goes to. So an https redirect host has to be written in one canonical form:
lower-case ASCII labels, a dotted-decimal IPv4 address, or a compressed
lower-case IPv6 address. Any other form is refused:
POST /oauth/register
{"client_name": "Claude", "redirect_uris": ["https://аpple.com/cb"]}
400 {"error": "invalid_redirect_uri",
"error_description": "redirect URI not allowed: \"https://аpple.com/cb\" (https, http to a loopback host, or an app scheme in reverse-domain form such as com.example.app:/cb; no fragment)"}
That а is Cyrillic. The same error comes back for:
- a percent-encoded host, an upper-case one (
https://Claude.ai/cb) or one with a trailing dot; - IPv4 shorthands such as
127.1or0x7f.0.0.1, and0.0.0.0; - plain
httpto anything exceptlocalhost,127.0.0.1or[::1]; - fragments, userinfo, and schemes such as
javascript:.
Custom app schemes are allowed only in reverse-domain form
(com.example.app:/cb) or as one of cursor, vscode, vscode-insiders and
windsurf. For those, the screen shows the full scheme (cursor://…),
because the scheme decides which app on your computer receives the code.
There is one limit to this. An internationalised domain is accepted in its
xn-- punycode form, so https://xn--pple-43d.com/cb registers fine. The
consent screen then shows it as xn--pple-43d.com, which doesn't look like
apple.com.
Cleanup
Registration is anonymous, so without a purge the table would keep growing. A job runs when the API starts and every 24 hours after that:
- A client that nobody approved is deleted 24 hours after it registered.
- A client that was approved but has no connection left is deleted once its last use is more than 30 days old. A disconnected connection is kept for 30 days after it was revoked, and the client stays until it's gone, so a recently disconnected app is still on record if you ask us about it.
- A client that anyone is still connected through is never deleted, however long it has been idle.
Refresh tokens rotate, and presenting one twice ends the whole connection.
Every approved app is listed under Account → Connected apps, with who connected it and when it was last used. Only owners and admins can approve or revoke one, the same rule as for API keys. The full rules are on the MCP page.