{"repo":"kriasoft/oauth-callback","free":true,"listed":false,"github":"https://github.com/kriasoft/oauth-callback","clone":"git clone https://github.com/kriasoft/oauth-callback.git","description":"Lightweight OAuth 2.0 authorization code capture for CLI tools & desktop apps. Works with Node.js, Deno, Bun. MCP SDK ready.","language":"TypeScript","stars":11,"topics":["mcp","mcp-client","mcp-server","model-context-protocol","oauth","oauth-callback-url","oauth2","authentication","authorization","bun"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"OAuth Callback A lightweight OAuth 2.0 callback handler for Node.js, Deno, and Bun with built-in browser flow and MCP SDK integration. Perfect for CLI tools, desktop applications, and development environments that need to capture OAuth authorization codes. Features - 🚀 Multi-runtime support - Works with Node.js 18+, Deno, and Bun - 🔒 Secure localhost-only server for OAuth callbacks - 🤖 MCP SDK integration - Built-in OAuth provider for Model Context Protocol - ⚡ Single dependency - Only requires open for browser launching - 🎯 TypeScript support out of the box - 🛡️ Comprehensive OAuth error handling with detailed error classes - 🔄 Automatic server cleanup after callback - 💾 Flexible token storage - In-memory and file-based options - 🎪 Clean success pages with animated checkmark - 🎨 Customizable HTML templates with placeholder support - 🚦 AbortSignal support for programmatic cancellation - 📝 Request logging and debugging callbacks - 🌐 Modern Web Standards APIs (Request/Response/URL) Installation Or with npm: Note: The open package is optional but recommended for browser launching. If using pnpm, install it explicitly: pnpm add open Quick Start Usage Examples Basic OAuth Flow Custom Port Configuration MCP SDK Integration The browserAuth() function provides a drop-in OAuth provider for the Model Context Protocol SDK: Token Storage Options Pre-configured Client Credentials If you have pre-registered OAuth client credentials: Advanced Usage API Reference getAuthCode(inpu","default_branch":null,"files":null,"tree":[],"storefront":"/r/kriasoft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kriasoft/oauth-callback/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}