Mint a browser login code

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://api-docs.kitsu.cloud/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Kitsu API MCP server": {
    "url": "https://api-docs.kitsu.cloud/mcp"
  }
}

Close
POST /auth/app-login/code

Create a one-time code that lets a desktop app or a script running on the same machine obtain its own tokens for the current user. The code is bound to the given PKCE challenge and expires after 60 seconds. Bots and sessions waiting for a 2FA setup cannot mint codes.

application/json

Body Required

  • code_challenge string Required

    Base64url encoded SHA-256 of the PKCE code verifier, without padding (43 characters)

Responses

  • 201 application/json

    One-time login code

    Hide response attribute Show response attribute object
    • code string

      One-time login code

  • 400

    Malformed code challenge

POST /auth/app-login/code
curl \
 --request POST 'http://api.example.com/auth/app-login/code' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{
  "code_challenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM"
}'
Request examples
{
  "code_challenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM"
}
Response examples (201)
{
  "code": "string"
}