50c 1.0.7

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 (4) hide show
  1. package/LICENSE +33 -0
  2. package/README.md +220 -0
  3. package/bin/50c.js +92 -0
  4. package/package.json +23 -0
package/LICENSE ADDED
@@ -0,0 +1,33 @@
1
+ PROPRIETARY SOFTWARE LICENSE
2
+
3
+ Copyright (c) 2026 genxis.com. All Rights Reserved.
4
+
5
+ This software and associated documentation files (the "Software") are the
6
+ proprietary property of genxis.com.
7
+
8
+ USAGE TERMS:
9
+ 1. You may install and use this Software only with a valid API key purchased
10
+ from genxis.com.
11
+ 2. Each use of the Software requires credits purchased at $0.50 per problem.
12
+ 3. You may NOT copy, modify, merge, publish, distribute, sublicense, or sell
13
+ copies of the Software.
14
+ 4. You may NOT reverse engineer, decompile, or disassemble the Software.
15
+ 5. You may NOT remove or bypass the payment/credit system.
16
+ 6. You may NOT create derivative works based on the Software.
17
+
18
+ RESTRICTIONS:
19
+ - This is a commercial product. No free usage rights are granted.
20
+ - Source code is provided for transparency only, not for modification.
21
+ - Unauthorized use, reproduction, or distribution is strictly prohibited.
22
+
23
+ WARRANTY DISCLAIMER:
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27
+
28
+ LIMITATION OF LIABILITY:
29
+ IN NO EVENT SHALL GENXIS.COM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
+ LIABILITY ARISING FROM THE USE OF THE SOFTWARE.
31
+
32
+ For licensing inquiries: sales@genxis.com
33
+ Purchase credits: https://genxis.com/50c
package/README.md ADDED
@@ -0,0 +1,220 @@
1
+ # 50c - Genius Problem Solving for Any IDE
2
+
3
+ **$0.50 per problem solved**
4
+
5
+ MCP server that augments ANY AI with genius-level problem solving.
6
+ **Product of [genxis.com](https://genxis.com)**
7
+
8
+ ---
9
+
10
+ ## Quick Start
11
+
12
+ ### 1. Get API Key
13
+ Visit https://genxis.com/50c
14
+
15
+ ### 2. Install
16
+ ```bash
17
+ npm install -g 50c
18
+ ```
19
+
20
+ ### 3. Configure Your IDE (pick one)
21
+
22
+ ---
23
+
24
+ ### Claude Desktop
25
+
26
+ Config file: `~/.claude/claude_desktop_config.json` (Mac/Linux) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows)
27
+
28
+ ```json
29
+ {
30
+ "mcpServers": {
31
+ "50c": {
32
+ "command": "npx",
33
+ "args": ["-y", "50c"],
34
+ "env": {
35
+ "FIFTYC_API_KEY": "<YOUR_API_KEY>"
36
+ }
37
+ }
38
+ }
39
+ }
40
+ ```
41
+
42
+ ---
43
+
44
+ ### Cursor
45
+
46
+ Config file: `~/.cursor/mcp.json`
47
+
48
+ ```json
49
+ {
50
+ "mcpServers": {
51
+ "50c": {
52
+ "command": "npx",
53
+ "args": ["-y", "50c"],
54
+ "env": {
55
+ "FIFTYC_API_KEY": "<YOUR_API_KEY>"
56
+ }
57
+ }
58
+ }
59
+ }
60
+ ```
61
+
62
+ ---
63
+
64
+ ### VS Code (Copilot)
65
+
66
+ Config file: `.vscode/mcp.json` in workspace or user settings
67
+
68
+ ```json
69
+ {
70
+ "servers": {
71
+ "50c": {
72
+ "command": "npx",
73
+ "args": ["-y", "50c"],
74
+ "env": {
75
+ "FIFTYC_API_KEY": "<YOUR_API_KEY>"
76
+ }
77
+ }
78
+ }
79
+ }
80
+ ```
81
+
82
+ Or via Command Palette: `MCP: Add Server`
83
+
84
+ ---
85
+
86
+ ### Windsurf
87
+
88
+ Config file: `~/.codeium/windsurf/mcp_config.json`
89
+
90
+ ```json
91
+ {
92
+ "mcpServers": {
93
+ "50c": {
94
+ "command": "npx",
95
+ "args": ["-y", "50c"],
96
+ "env": {
97
+ "FIFTYC_API_KEY": "<YOUR_API_KEY>"
98
+ }
99
+ }
100
+ }
101
+ }
102
+ ```
103
+
104
+ ---
105
+
106
+ ### JetBrains (IntelliJ, WebStorm, PyCharm, etc.)
107
+
108
+ 1. Go to **Settings → Tools → MCP Server**
109
+ 2. Click **Enable MCP Server**
110
+ 3. Add external server with command: `npx -y 50c`
111
+ 4. Set environment variable: `FIFTYC_API_KEY=<YOUR_API_KEY>`
112
+
113
+ ---
114
+
115
+ ### Zed
116
+
117
+ Config file: `~/.config/zed/settings.json`
118
+
119
+ ```json
120
+ {
121
+ "context_servers": {
122
+ "50c": {
123
+ "command": {
124
+ "path": "npx",
125
+ "args": ["-y", "50c"],
126
+ "env": {
127
+ "FIFTYC_API_KEY": "<YOUR_API_KEY>"
128
+ }
129
+ }
130
+ }
131
+ }
132
+ }
133
+ ```
134
+
135
+ ---
136
+
137
+ ### ChatGPT (Developer Mode)
138
+
139
+ 1. Go to **Settings → Connectors → Advanced Settings**
140
+ 2. Enable **Developer Mode (beta)**
141
+ 3. Click **Create** under Browser connectors
142
+ 4. Add MCP server URL: `https://50c.ai/mcp`
143
+ 5. Add header: `Authorization: Bearer <YOUR_API_KEY>`
144
+
145
+ ---
146
+
147
+ ### OpenAI Codex CLI
148
+
149
+ Config file: `~/.codex/config.toml`
150
+
151
+ ```toml
152
+ [mcp.50c]
153
+ command = "npx"
154
+ args = ["-y", "50c"]
155
+
156
+ [mcp.50c.env]
157
+ FIFTYC_API_KEY = "<YOUR_API_KEY>"
158
+ ```
159
+
160
+ Or run: `codex mcp add 50c`
161
+
162
+ ---
163
+
164
+ > **Warning:** Never commit your API key to version control.
165
+
166
+ ---
167
+
168
+ ## Tools
169
+
170
+ | Tool | Cost | Description |
171
+ |------|------|-------------|
172
+ | `genius_mode` | $0.50 | Deep problem solver with research |
173
+ | `quick_vibe` | $0.50 | Quick idea injection |
174
+ | `check_balance` | FREE | Check remaining credits |
175
+
176
+ ---
177
+
178
+ ## Pricing
179
+
180
+ - **Starter:** $5 = 10 problems
181
+ - **Developer:** $25 = 50 problems
182
+ - **Pro:** $100 = 200 problems
183
+
184
+ No subscriptions. Credits never expire.
185
+
186
+ ---
187
+
188
+ ## CLI Usage
189
+
190
+ ```bash
191
+ # Check version
192
+ 50c --version
193
+
194
+ # Show help
195
+ 50c --help
196
+ ```
197
+
198
+ ---
199
+
200
+ ## Requirements
201
+
202
+ - Node.js 18+
203
+ - API key from genxis.com
204
+
205
+ ---
206
+
207
+ ## Troubleshooting
208
+
209
+ **"FIFTYC_API_KEY environment variable required"**
210
+ Set your API key in the MCP config env section.
211
+
212
+ **Request timeout**
213
+ Check your internet connection. Server may be temporarily unavailable.
214
+
215
+ **IDE not detecting MCP server**
216
+ Restart your IDE after adding the config. Check the config file path is correct.
217
+
218
+ ---
219
+
220
+ **Built by genxis.com** | https://genxis.com/50c
package/bin/50c.js ADDED
@@ -0,0 +1,92 @@
1
+ #!/usr/bin/env node
2
+ const https = require('https');
3
+ const readline = require('readline');
4
+
5
+ if (process.argv.includes('--version') || process.argv.includes('-v')) {
6
+ console.log(require('../package.json').version);
7
+ process.exit(0);
8
+ }
9
+
10
+ if (process.argv.includes('--help') || process.argv.includes('-h')) {
11
+ console.log(`
12
+ 50c - Genius Problem Solving MCP Server
13
+ Usage: 50c (reads JSON-RPC from stdin)
14
+
15
+ Environment:
16
+ FIFTYC_API_KEY Your API key (required)
17
+ FIFTYC_ENDPOINT Custom endpoint (optional)
18
+
19
+ Get your API key at https://genxis.com/50c
20
+ `);
21
+ process.exit(0);
22
+ }
23
+
24
+ const MCP_ENDPOINT = process.env.FIFTYC_ENDPOINT || 'https://50c.ai/mcp';
25
+ const API_KEY = process.env.FIFTYC_API_KEY;
26
+
27
+ if (!API_KEY) {
28
+ console.error('Error: FIFTYC_API_KEY environment variable required');
29
+ console.error('Get your key at https://genxis.com/50c');
30
+ process.exit(1);
31
+ }
32
+
33
+ const rl = readline.createInterface({ input: process.stdin, output: process.stdout, terminal: false });
34
+
35
+ rl.on('line', async (line) => {
36
+ try {
37
+ const clean = line.trim();
38
+ if (!clean) return;
39
+ const request = JSON.parse(clean);
40
+ const response = await callRemoteMCP(request);
41
+ process.stdout.write(JSON.stringify(response) + '\n');
42
+ } catch (e) {
43
+ process.stdout.write(JSON.stringify({
44
+ jsonrpc: '2.0',
45
+ id: null,
46
+ error: { code: -32603, message: e.message }
47
+ }) + '\n');
48
+ }
49
+ });
50
+
51
+ function callRemoteMCP(request) {
52
+ return new Promise((resolve, reject) => {
53
+ const url = new URL(MCP_ENDPOINT);
54
+ const postData = JSON.stringify(request);
55
+
56
+ const options = {
57
+ hostname: url.hostname,
58
+ port: url.port || 443,
59
+ path: url.pathname,
60
+ method: 'POST',
61
+ headers: {
62
+ 'Content-Type': 'application/json',
63
+ 'Content-Length': Buffer.byteLength(postData),
64
+ 'Authorization': `Bearer ${API_KEY}`
65
+ }
66
+ };
67
+
68
+ const req = https.request(options, (res) => {
69
+ let data = '';
70
+ res.on('data', chunk => data += chunk);
71
+ res.on('end', () => {
72
+ try {
73
+ resolve(JSON.parse(data));
74
+ } catch (e) {
75
+ reject(new Error(`Invalid response: ${data.substring(0, 200)}`));
76
+ }
77
+ });
78
+ });
79
+
80
+ req.setTimeout(30000, () => {
81
+ req.destroy();
82
+ reject(new Error('Request timeout'));
83
+ });
84
+
85
+ req.on('error', reject);
86
+ req.write(postData);
87
+ req.end();
88
+ });
89
+ }
90
+
91
+ process.on('SIGINT', () => process.exit(130));
92
+ process.on('SIGTERM', () => process.exit(143));
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "50c",
3
+ "version": "1.0.7",
4
+ "description": "Genius-level problem solving for any IDE. $0.50 per problem solved. Product of genxis.com.",
5
+ "bin": {
6
+ "50c": "./bin/50c.js"
7
+ },
8
+ "scripts": {
9
+ "postinstall": "node -e \"console.log('\\n50c installed. Set FIFTYC_API_KEY env var. Get key at https://genxis.com/50c\\n')\""
10
+ },
11
+ "keywords": ["mcp", "ai", "llm", "augmentation", "genxis", "50c", "agent", "intelligence", "problem-solving"],
12
+ "author": "genxis.com",
13
+ "license": "SEE LICENSE IN LICENSE",
14
+ "homepage": "https://genxis.com/50c",
15
+ "engines": {
16
+ "node": ">=18.0.0"
17
+ },
18
+ "files": [
19
+ "bin/",
20
+ "README.md",
21
+ "LICENSE"
22
+ ]
23
+ }