What problem does it solve? Hermes' built-in MCP OAuth client registers a 127.0.0.1 loopback redirect URI, which fails when Hermes runs as a remote gateway (container, VPS, messaging bot) because the user's browser resolves localhost to their own laptop, so the authorization code never reaches Hermes. ## Core Features & Use Cases - Manual OAuth Dance: Walks through RFC 9728 metadata discovery, RFC 7591 Dynamic Client Registration, PKCE authorize URL generation, and token exchange by hand. - Token File Injection: Writes access and client tokens into Hermes' exact mcp-tokens/ schema so /reload-mcp finds cached credentials and skips the browser flow. - Diagnostic Script: Includes diagnose-oauth-mcp.py, which smoke-tests stored tokens, attempts refresh, and prints the correct recovery branch (TOKEN_OK, REFRESH_FIXED, SESSION_REVOKED, REFRESH_DEAD). - Use Case: A user runs Hermes as a Telegram bot on a VPS and wants to connect Linear's OAuth-gated MCP server; this skill completes the authorization without any interactive TTY on the gateway host. ## Quick Start Ask the agent to set up OAuth for a remote MCP server on the headless gateway and paste back the callback URL after authorizing in your browser.