MCP OAuth
Start authorization
Where an MCP client sends the user's browser to connect. A valid request redirects to the Music Nerd page where the user signs in and approves the agent; an invalid one redirects back to the client with error and state.
Query Parameters
response_typestring · enumrequiredAlways code.
Values: "code"
client_idstringrequiredThe client_id from registration.
redirect_uristringrequiredOne of the client's registered redirect URIs, exactly.
code_challengestringrequiredThe PKCE challenge: base64url SHA-256 of the code verifier.
code_challenge_methodstring · enumrequiredAlways S256.
Values: "S256"
statestringReturned unchanged to the client.
scopestringmcp:tools, the only scope. Optional.
resourcestringhttps://api.musicnerd.net/mcp, if sent.
Response
To the Music Nerd sign-in page with the same query, or back to redirect_uri with error and state when the request is invalid.
Locationresponse headerThe sign-in page, or the client's redirect URI with the error.