Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/brainweb/payload-mcp-oauth/installnpx skills add BrainWeb/payload-mcp-oauth --skill installgit clone --depth 1 https://github.com/BrainWeb/payload-mcp-oauthWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/brainweb/payload-mcp-oauth/install)<a href="https://agentmods.dev/skills/brainweb/payload-mcp-oauth/install"><img src="https://agentmods.dev/badge/skills/brainweb/payload-mcp-oauth/install.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00122 | $0.01239 |
| Opus 5 | $0.00061 | $0.00620 |
| Sonnet 5 | $0.00024 | $0.00248 |
| Haiku 4.5 | $0.00012 | $0.00124 |
Grade A, and why
install scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- `curl <issuer>/.well-known/oauth-authorization-server` returns JSON metadata. How it starts
The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Install @brainwebuk/payload-plugin-mcp-oauth
Adds OAuth 2.1 + PKCE + Dynamic Client Registration to an existing
@payloadcms/plugin-mcp MCP server. Additive — the API-key flow keeps
working. Always prefer the latest version (the install path has had several
fixes; use >= 0.3.3).
Prerequisites
- A Payload v3 app with
@payloadcms/plugin-mcpalready installed and working. - Next.js 14 / 15 / 16 (for the exported proxy/middleware).
Steps
-
Install:
pnpm add @brainwebuk/payload-plugin-mcp-oauth -
Register it AFTER
mcpPlugin(), sharing ONE options object (most common footgun):const mcpOptions = { collections: { posts: { enabled: { find: true, create: true, update: true } } }, } plugins: [ mcpPlugin(mcpOptions), payloadMcpOAuth({ issuer: process.env.NEXT_PUBLIC_SERVER_URL!, mcpPluginOptions: mcpOptions, // ← the SAME reference, never a copy/spread }), ]A copy/spread silently breaks OAuth token auth (API keys keep working, so it's easy to miss). Registering it before
mcpPlugin()throws on boot. -
Add the proxy — Next 16:
src/proxy.ts; Next 14/15:src/middleware.ts. Re-export the handler but declareconfigas a local literal (never re-exportconfig— it 500s every route on Next 16):export { mcpOAuthMiddleware as proxy } from '@brainwebuk/payload-plugin-mcp-oauth/middleware' export const config = { matcher: ['/', '/.well-known/oauth-authorization-server', '/.well-known/oauth-protected-resource'], } -
Env: set
NEXT_PUBLIC_SERVER_URL(public HTTPS origin; used as the OAuth issuer) andPMOAUTH_TOKEN_PEPPER(openssl rand -hex 32; required ≥ 32 chars in production). Ensure Payload'sserverURLequalsNEXT_PUBLIC_SERVER_URL— the consent flow relies on a first-party session cookie matching that origin. -
Apply the schema — pick ONE workflow, don't mix:
- Dev push (SQLite/Postgres in dev): just start the app.
- Migrations (production):
pnpm payload migrate:createthenpnpm payload migrate. If you already booted the app once before installing, on SQLite either upgrade to>= 0.3.2or reset the dev DB (rm your.db*) so the schema is created fresh.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 97 lines · 122 tokens per session scan A 38ab7846468d
install is a skill published in the GitHub repository BrainWeb/payload-mcp-oauth (7 stars, last pushed 2d ago), licensed MIT. It adds 122 tokens to every session and 1,239 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
class-closure-review
Exact-head local PR review for mcp-sso that refuses PASS until a defective behavior is closed across every sibling cell, not just the named instance. Use when reviewing a pull request locally, after a Codex finding, before requesting another hosted review round, or when leftover claims, unswept adapters/stores…
codex-with-chatgpt
Use ChatGPT (web) as the planning and review brain for Codex coding sessions, while Codex keeps full execution ownership. Use when the user says "使用 Codex with ChatGPT ..." / "Set up Codex with ChatGPT" / "用 ChatGPT 规划", when they ask to connect ChatGPT to the current workspace, disconnect it, or run a task through…
webmcp-e2e
WebMCP reverse connection gateway(pairing + static/remote モード)の E2E 結合確認を実行する。Manifold 起動 → デモページ → 拡張入り Chromium → ペアリング → tools/call 検証 → タブクローズ時エラー確認までを通し、スクリーンショット証跡を残す。remote モードでは自前 JWKS + JWT で identityKey ルーティングの分離も検証する。「webmcp の E2E」「reverse gateway の動作確認」「拡張の結合テスト」で使用。.
auth0-docs
Auth0 — identity platform: auth flows, Universal Login, SSO, identity providers, MFA, RBAC, Actions, tokens.
cx-devassist-asca
Runs a Checkmarx ASCA (AI Security Code Assistant) SAST scan on a SOURCE CODE file to detect code vulnerabilities, and remediates findings using the Checkmarx MCP tool. Use when a user asks to scan or fix a source code file (.py/.js/.java/.go/.ts/…) for security vulnerabilities. For dependency manifests/lockfiles…
cx-devassist-sca
Runs a Checkmarx SCA (Software Composition Analysis / OSS) scan on dependency manifests and lockfiles to detect vulnerable and malicious open-source packages, and remediates findings using the Checkmarx MCP tool. Use when a user asks to scan dependencies, check packages, audit a manifest/lockfile (package.json…