mcp-oauth-remote-gateway

Execute manual OAuth 2.0 PKCE flows for MCP servers on headless remote infrastructure.

Updated Jun 25, 2026
One-click install
npx skills add https://github.com/Rheasilvia/hermes-desktop --skill mcp-oauth-remote-gateway
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-oauth-remote-gateway
Source: https://github.com/Rheasilvia/hermes-desktop/tree/main/optional-skills/mcp/mcp-oauth-remote-gateway
Command: npx skills add https://github.com/Rheasilvia/hermes-desktop --skill mcp-oauth-remote-gateway

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill resolves the authentication failure that occurs when running Hermes as a remote gateway, where the browser cannot redirect back to the local loopback address of the remote server.

Core Features & Use Cases

  • Manual OAuth Flow: Executes the OAuth 2.0 PKCE dance manually to bypass loopback callback restrictions.
  • Token Injection: Directly writes valid OAuth tokens into the Hermes storage schema, allowing the agent to skip browser flows entirely.
  • Diagnostic Tools: Includes automated scripts to smoke-test tokens and identify session revocation versus circuit-breaker issues.

Quick Start

Run the diagnose-oauth-mcp.py script with the name of your server to determine the correct recovery path for your remote gateway.

Frequently Asked Questions about mcp-oauth-remote-gateway

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate a remote MCP server when the browser cannot redirect to the local loopback address?

Manual OAuth 2.0 authentication bypasses loopback redirect restrictions by executing the PKCE dance manually and directly injecting valid tokens into the server storage schema.

How do I troubleshoot circuit-breaker connectivity failures or session revocation on a remote MCP server?

Run the diagnostic scripts to smoke-test tokens and identify whether the remote gateway failure stems from session revocation or circuit-breaker connectivity issues.

Can I use PKCE to manually generate OAuth tokens for headless infrastructure?

Yes, you can manually execute the OAuth 2.0 PKCE flow to generate secure tokens for headless remote infrastructure, bypassing the need for standard browser redirects.

Does this approach support writing valid OAuth tokens directly into the Hermes storage schema?

Yes, manual OAuth token injection directly writes valid tokens into the Hermes storage schema, allowing the agent to skip browser flows entirely on remote infrastructure.

What is the best way to diagnose OAuth session revocation versus circuit-breaker issues on remote MCP servers?

Automated diagnostic utilities smoke-test OAuth tokens on remote MCP servers to determine the correct recovery path and differentiate session revocation from circuit-breaker failures.