Skip to content

OAuth client documents

When a person adds a protected MCP server, HERO signs in to it as a public OAuth client. It has no client secret and registers nowhere in advance. It identifies itself with a client ID metadata document: its client_id is an HTTPS URL, and your authorization server fetches that URL to read the client’s name, logo and redirect URIs.

Each release channel has its own document, so a consent screen names the build that is asking.

Channelclient_idName shown
Stablehttps://makeyourhero.com/oauth/client.jsonHERO
Betahttps://makeyourhero.com/oauth/client-beta.jsonHERO (beta)
Developmenthttps://makeyourhero.com/oauth/client-dev.jsonHERO (development)

The stable document, as served:

https://makeyourhero.com/oauth/client.json
{
"client_id": "https://makeyourhero.com/oauth/client.json",
"client_name": "HERO",
"client_uri": "https://makeyourhero.com",
"logo_uri": "https://makeyourhero.com/apple-touch-icon.png",
"redirect_uris": [
"https://makeyourhero.com/open/mcp-sign-in",
"http://127.0.0.1:31278/callback",
"http://127.0.0.1/callback",
"http://localhost/callback"
],
"grant_types": [
"authorization_code",
"refresh_token"
],
"response_types": [
"code"
],
"token_endpoint_auth_method": "none",
"application_type": "native"
}

Every document lists the same redirect URIs:

  • https://makeyourhero.com/open/mcp-sign-in
  • http://127.0.0.1:31278/callback
  • http://127.0.0.1/callback
  • http://localhost/callback

The app listens on the loopback interface for the callback. It asks for the fixed port first and falls back to one the system picks. For the portless entries, match any port, as RFC 8252 section 7.3 describes for loopback redirects.

The client uses the authorization code grant with PKCE and refresh tokens, and token_endpoint_auth_method is none.

Before the product was renamed, it signed in under these documents. They are still served, unchanged:

Channelclient_idName shown
Stablehttps://musetheagent.com/oauth/client.jsonAgent Muse
Betahttps://musetheagent.com/oauth/client-beta.jsonAgent Muse (beta)
Developmenthttps://musetheagent.com/oauth/client-dev.jsonAgent Muse (development)

They answer with status 200 and will keep doing so. They never redirect to the current ones, for two reasons:

  • An authorization server must not follow redirects when it fetches a client ID metadata document (draft-ietf-oauth-client-id-metadata-document, section 4). A redirect would read as a missing client.
  • A grant refreshes under the client_id it was issued to. A person who signed in before the rename still holds tokens issued to the earlier client_id, and the app refreshes them under that id. If the document disappeared, your server would see a refresh from a client it can no longer look up.

New sign-ins use the current documents. An earlier grant moves over the next time that person signs in again.