Skip to content

secondsky/claude-skills / plugins/cloudflare-mcp-server/skills/cloudflare-mcp-server

cloudflare-mcp-server

Verified

Build MCP (Model Context Protocol) servers on Cloudflare Workers with tools, resources, and prompts.

templates/wrangler-oauth.jsonc

View on GitHub
/**
 * MCP Server with OAuth Configuration
 *
 * This configuration supports:
 * - OAuth authentication via workers-oauth-provider
 * - KV namespace for token storage
 * - Durable Objects for stateful sessions (optional)
 * - Environment variables for OAuth credentials
 *
 * Perfect for: GitHub, Google, Azure OAuth integrations
 */
{
  "name": "my-mcp-oauth-server",
  "main": "src/index.ts",
  "compatibility_date": "2025-01-01",  // must be >= 2024-09-23 for nodejs_compat
  "compatibility_flags": ["nodejs_compat"],  // Required for @modelcontextprotocol/sdk and OAuth libraries

  /**
   * Account ID (required for deployment)
   * Get your account ID: npx wrangler whoami
   */
  "account_id": "YOUR_ACCOUNT_ID_HERE",

  /**
   * Environment variables
   * IMPORTANT: Never commit secrets to version control!
   * Use .dev.vars for local development
   */
  "vars": {
    "ENVIRONMENT": "production",

    /**
     * Optional: Pre-configured OAuth client credentials
     * If not set, Dynamic Client Registration is used
     */
    // "GITHUB_CLIENT_ID": "your-client-id",
    // "GOOGLE_CLIENT_ID": "your-client-id",
  },

  /**
   * KV namespace for OAuth token storage
   * REQUIRED for workers-oauth-provider
   *
   * Create KV namespace: npx wrangler kv namespace create OAUTH_KV
   */
  "kv_namespaces": [
    {
      "binding": "OAUTH_KV",
      "id": "YOUR_KV_NAMESPACE_ID_HERE",
      "preview_id": "YOUR_PREVIEW_KV_NAMESPACE_ID_HERE"
    }
  ],

  /**
   * Durable Objects configuration (optional, for stateful servers)
   * Uncomment if your MCP server needs persistent state
   */
  // "durable_objects": {
  //   "bindings": [
  //     {
  //       "name": "MY_MCP",
  //       "class_name": "MyMCP",
  //       "script_name": "my-mcp-oauth-server"
  //     }
  //   ]
  // },

  /**
   * Durable Objects migrations (required on first deployment if using DOs)
   */
  // "migrations": [
  //   {
  //     "tag": "v1",
  //     "new_classes": ["MyMCP"]
  //   }
  // ],

  /**
   * Custom domains (optional)
   */
  // "routes": [
  //   { "pattern": "mcp.example.com", "custom_domain": true }
  // ]
}
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall