<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sunny Su</title>
    <description>The latest articles on DEV Community by Sunny Su (@sunny_su).</description>
    <link>https://dev.to/sunny_su</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4136535%2Fb82479a0-d92c-472d-b2aa-149d265421e9.jpg</url>
      <title>DEV Community: Sunny Su</title>
      <link>https://dev.to/sunny_su</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sunny_su"/>
    <language>en</language>
    <item>
      <title>I Built an MCP Server That Tracks AI Quota Resets — Here's How</title>
      <dc:creator>Sunny Su</dc:creator>
      <pubDate>Mon, 21 Sep 2026 23:46:38 +0000</pubDate>
      <link>https://dev.to/sunny_su/i-built-an-mcp-server-that-tracks-ai-quota-resets-heres-how-4kn9</link>
      <guid>https://dev.to/sunny_su/i-built-an-mcp-server-that-tracks-ai-quota-resets-heres-how-4kn9</guid>
      <description>&lt;p&gt;TL;DR: I built a Model Context Protocol server that lets AI assistants like Claude and Cursor query real-time AI quota reset signals across 15+ products.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;If you're paying for AI subscriptions (OpenAI Codex at $20-200/mo, Claude Pro, Gemini Advanced), quota resets are money. When your quota resets, you want to know immediately.&lt;/p&gt;

&lt;p&gt;The problem: resets are scattered across multiple status pages, happen at unpredictable times, and there's no unified API to track them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution
&lt;/h2&gt;

&lt;p&gt;I built &lt;a href="https://reset.beer" rel="noopener noreferrer"&gt;Reset Beer&lt;/a&gt; — a dashboard that aggregates official status pages from 15+ AI products and sends alerts when quota reset signals drop.&lt;/p&gt;

&lt;p&gt;The MCP integration is what makes it interesting. Instead of just receiving emails, Pro users can connect Reset Beer to their AI assistants and ask: "Any recent quota resets for Codex?"&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;

&lt;p&gt;The MCP server is a single Next.js API route that implements JSON-RPC 2.0 over HTTP (Streamable HTTP transport per MCP spec 2025-03-26).&lt;/p&gt;

&lt;p&gt;Three tools are exposed:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;list_recent_resets&lt;/strong&gt; — Query reset events by time range, product, and limit&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;get_product_status&lt;/strong&gt; — Get the latest event for a specific product&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;list_products&lt;/strong&gt; — List all tracked AI products&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  API Key Authentication
&lt;/h2&gt;

&lt;p&gt;Each Pro user gets a cryptographically random API key (rb_ prefix, 64 hex chars). The key is stored as SHA-256 hash in the database.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;MCP is easier than expected&lt;/strong&gt; — The spec is well-designed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API key auth &amp;gt; OAuth for first-party tools&lt;/strong&gt; — Bearer tokens are simpler&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Calendar rules ≠ actionable signals&lt;/strong&gt; — Filter predictable events&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Static generation + cookies don't mix&lt;/strong&gt; — Use client components with Suspense&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Product: &lt;a href="https://reset.beer" rel="noopener noreferrer"&gt;https://reset.beer&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;npm: &lt;code&gt;npm install reset-beer-mcp&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/suxinsk/reset-beer-mcp" rel="noopener noreferrer"&gt;https://github.com/suxinsk/reset-beer-mcp&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pro is $9.99 one-time (lifetime, no subscription). Free tier available.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built solo with Next.js 15, Neon Postgres, Better Auth, Resend, and Vercel. Follow on &lt;a href="https://x.com/SunnySu_AI" rel="noopener noreferrer"&gt;X&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aimcpopenaisaas</category>
    </item>
  </channel>
</rss>
