Docs › Authentication

Authentication

Two ways in, and both act as one person with that person's role: OAuth sign-in, and a personal token. Nothing else reaches the MCP server.

OAuth 2.1 (Meta Muse, claude.ai and other apps)

An app that supports MCP authorization finds everything it needs from the server's 401 answer, which points at the protected resource metadata. The person signs in to the portal, sees "Allow <app> to use YugaTek as you?" and chooses Allow or Cancel.

WhatWhere
Protected resource metadata (RFC 9728)https://portal.yugatek.net/.well-known/oauth-protected-resource
Authorization server metadata (RFC 8414)https://portal.yugatek.net/.well-known/oauth-authorization-server
Dynamic client registration (RFC 7591)POST https://portal.yugatek.net/oauth/register, public clients, token_endpoint_auth_method: "none"
AuthorizationGET https://portal.yugatek.net/oauth/authorize
TokenPOST https://portal.yugatek.net/oauth/token, grants authorization_code and refresh_token
Revocation (RFC 7009)POST https://portal.yugatek.net/oauth/revoke
curl -X POST https://portal.yugatek.net/oauth/register \
  -H "content-type: application/json" \
  -d '{"client_name":"My assistant","redirect_uris":["http://127.0.0.1:8123/callback"],"token_endpoint_auth_method":"none"}'

Personal tokens

For tools that take a pasted token (Claude Desktop, Claude Code, Grok, scripts). Open the portal, go to Settings → API access, choose "+ Create token" and give it a name. The token looks like yt_pat_… and is shown once: copy it then. Send it on every call:

Authorization: Bearer yt_pat_••••••••