Skill / SKILL.md

Mcp Oauth Setup

zarpay/rails-template

Implement MCP server authentication with OAuth Dynamic Client Registration (RFC 7591), Authorization Server Metadata Discovery (RFC 8414), and generalized per-agent credential support. This skill should be used when building admin UIs that let users connect to third-party MCP servers, whether they use OAuth (Linear, Sentry, Granola), bearer tokens (Render, custom APIs), or API keys. Covers the full flow: metadata discovery, client registration, PKCE authorization, token exchange, token refresh, tool sync, and credential storage patterns (shared vs per-agent for any auth type). Includes hard-won lessons from production implementation.
4 views 12 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Implement MCP server authentication with OAuth Dynamic Client Registration (RFC 7591), Authorization Server Metadata Discovery (RFC 8414), and generalized per-agent credential support. This skill should be used when building admin UIs that let users connect to third-party MCP servers, whether they use OAuth (Linear, Sentry, Granola), bearer tokens (Render, custom APIs), or API keys. Covers the full flow: metadata discovery, client registration, PKCE authorization, token exchange, token refresh, tool sync, and credential storage patterns (shared vs per-agent for any auth type). Includes hard-won lessons from production implementation.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/zarpay/rails-template' skill-source

Use the complete skill-source/files/.claude/skills/mcp-oauth-setup directory with your client’s skill installer.

  • files/.claude/skills/mcp-oauth-setup Claude Code

    main · SKILL.md

    Open installation source

    Client installation directory present in source repository

Source directory files/.claude/skills/mcp-oauth-setup

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
815eb259335d198ca0c4bb45950c6ee0b9869201313b36f2aa58dcec5819c6ce
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills