reset-beer-mcp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +63 -0
  2. package/index.js +66 -0
  3. package/package.json +44 -0
package/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # @reset-beer/mcp
2
+
3
+ > MCP (Model Context Protocol) server for [Reset Beer](https://reset.beer) — AI quota reset tracking across 15+ products.
4
+
5
+ Query AI quota reset signals directly from Claude, Cursor, or any MCP-compatible AI assistant.
6
+
7
+ ## Quick Start
8
+
9
+ ```bash
10
+ npm install -g @reset-beer/mcp
11
+ export RESET_BEER_API_KEY="rb_your_key_here"
12
+ reset-beer-mcp resets
13
+ ```
14
+
15
+ ## Claude Desktop Config
16
+
17
+ ```json
18
+ {
19
+ "mcpServers": {
20
+ "reset-beer": {
21
+ "command": "npx",
22
+ "args": ["-y", "@reset-beer/mcp"],
23
+ "env": { "RESET_BEER_API_KEY": "rb_your_key_here" }
24
+ }
25
+ }
26
+ }
27
+ ```
28
+
29
+ ## Cursor Config
30
+
31
+ Add to `.cursor/mcp.json`:
32
+ ```json
33
+ {
34
+ "mcpServers": {
35
+ "reset-beer": {
36
+ "url": "https://reset.beer/api/mcp",
37
+ "headers": { "Authorization": "Bearer rb_your_key_here" }
38
+ }
39
+ }
40
+ }
41
+ ```
42
+
43
+ ## Tools
44
+
45
+ | Tool | Description |
46
+ |------|-------------|
47
+ | `list_recent_resets` | List recent AI quota reset events |
48
+ | `get_product_status` | Get latest reset event for a product |
49
+ | `list_products` | List all tracked AI products |
50
+
51
+ ## Supported Products
52
+
53
+ OpenAI Codex, ChatGPT Work, Claude/Claude Code, Google Gemini, xAI Grok, DeepSeek, Kimi/Moonshot, Alibaba Qwen, Zhipu GLM, Volcengine Ark, OpenRouter, Cursor, MiniMax, Tencent Hunyuan, Baidu Qianfan
54
+
55
+ ## Get an API Key
56
+
57
+ 1. Sign up at [reset.beer](https://reset.beer)
58
+ 2. Upgrade to Pro ($9.99 one-time, lifetime access)
59
+ 3. Generate key at [reset.beer/account](https://reset.beer/en-US/account)
60
+
61
+ ## License
62
+
63
+ MIT
package/index.js ADDED
@@ -0,0 +1,66 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Reset Beer MCP Server
4
+ * Query AI quota reset signals from Claude, Cursor, or any MCP client.
5
+ *
6
+ * Setup:
7
+ * 1. Get an API key at https://reset.beer/en-US/account (Pro required)
8
+ * 2. Set RESET_BEER_API_KEY environment variable
9
+ * 3. Add to your MCP client config
10
+ */
11
+
12
+ const API_BASE = "https://reset.beer/api/mcp";
13
+ const apiKey = process.env.RESET_BEER_API_KEY;
14
+
15
+ if (!apiKey) {
16
+ console.error("Error: RESET_BEER_API_KEY environment variable is required.");
17
+ console.error("Get your key at https://reset.beer/en-US/account");
18
+ process.exit(1);
19
+ }
20
+
21
+ async function callMcp(method, params = {}) {
22
+ const response = await fetch(API_BASE, {
23
+ method: "POST",
24
+ headers: {
25
+ "Authorization": `Bearer ${apiKey}`,
26
+ "Content-Type": "application/json"
27
+ },
28
+ body: JSON.stringify({ jsonrpc: "2.0", id: Date.now(), method, params })
29
+ });
30
+ return response.json();
31
+ }
32
+
33
+ // CLI usage
34
+ const [,, command, ...args] = process.argv;
35
+ switch (command) {
36
+ case "resets": {
37
+ const hours = args[0] || "24";
38
+ const result = await callMcp("tools/call", { name: "list_recent_resets", arguments: { hours: Number(hours) } });
39
+ console.log(JSON.stringify(JSON.parse(result.result.content[0].text), null, 2));
40
+ break;
41
+ }
42
+ case "status": {
43
+ const productId = args[0];
44
+ if (!productId) { console.error("Usage: reset-beer-mcp status <product_id>"); process.exit(1); }
45
+ const result = await callMcp("tools/call", { name: "get_product_status", arguments: { productId } });
46
+ console.log(JSON.stringify(JSON.parse(result.result.content[0].text), null, 2));
47
+ break;
48
+ }
49
+ case "products": {
50
+ const result = await callMcp("tools/call", { name: "list_products", arguments: {} });
51
+ console.log(JSON.stringify(JSON.parse(result.result.content[0].text), null, 2));
52
+ break;
53
+ }
54
+ default:
55
+ console.log(`
56
+ Reset Beer MCP Server
57
+
58
+ Usage:
59
+ reset-beer-mcp resets [hours] List recent quota resets
60
+ reset-beer-mcp status <product> Get product status
61
+ reset-beer-mcp products List all tracked products
62
+
63
+ Environment:
64
+ RESET_BEER_API_KEY Your API key from reset.beer/account
65
+ `);
66
+ }
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "reset-beer-mcp",
3
+ "version": "1.0.0",
4
+ "description": "MCP server for Reset Beer — AI quota reset tracking across 15+ products (Codex, Claude, Gemini, Cursor, etc.)",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "bin": {
8
+ "reset-beer-mcp": "./index.js"
9
+ },
10
+ "keywords": [
11
+ "mcp",
12
+ "model-context-protocol",
13
+ "ai",
14
+ "quota",
15
+ "reset",
16
+ "tracking",
17
+ "openai",
18
+ "codex",
19
+ "claude",
20
+ "gemini",
21
+ "cursor",
22
+ "deepseek",
23
+ "rate-limit",
24
+ "developer-tools",
25
+ "notification",
26
+ "alerts"
27
+ ],
28
+ "author": {
29
+ "name": "Sunny Su",
30
+ "url": "https://x.com/SunnySu_AI"
31
+ },
32
+ "license": "MIT",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/suxinsk/reset-beer-mcp.git"
36
+ },
37
+ "homepage": "https://reset.beer",
38
+ "bugs": {
39
+ "url": "https://github.com/suxinsk/reset-beer-mcp/issues"
40
+ },
41
+ "engines": {
42
+ "node": ">=18"
43
+ }
44
+ }