codestation-mcp 1.2.1 → 1.3.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.
- package/README.md +86 -59
- package/bin/codestation-mcp.mjs +1857 -899
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# codestation-mcp
|
|
2
2
|
|
|
3
|
-
> Local-first Model Context Protocol (MCP) server for [Code Station](https://codestation.in) developer tools.
|
|
3
|
+
> Local-first Model Context Protocol (MCP) server and CLI for [Code Station](https://codestation.in) developer tools.
|
|
4
4
|
|
|
5
|
-
`codestation-mcp` exposes
|
|
5
|
+
`codestation-mcp` exposes **33** offline-capable developer utilities directly to AI coding assistants like **Claude Desktop**, **Cursor**, **Windsurf**, and **Antigravity**. All processing runs locally in memory with zero input uploads.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## 1-Click Auto Setup
|
|
10
10
|
|
|
11
|
-
Automatically configure **Claude Desktop**, **Cursor IDE**, and **Windsurf
|
|
11
|
+
Automatically configure **Claude Desktop**, **Cursor IDE**, and **Windsurf**:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
14
|
# With Pro license
|
|
@@ -22,37 +22,40 @@ npx -y codestation-mcp setup
|
|
|
22
22
|
|
|
23
23
|
## Terminal Developer CLI Subcommands
|
|
24
24
|
|
|
25
|
-
`codestation-mcp`
|
|
25
|
+
`codestation-mcp` doubles as a standalone terminal utility. In CLI mode it runs a cached (once per 24h) update check written only to `stderr` — disable anytime with `--no-update-check` or `CODESTATION_NO_UPDATE_CHECK=1`. Stdio MCP mode never runs update checks so JSON-RPC streams remain untouched.
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
+
# Generate v4 UUIDs, sortable ULIDs, or NanoIDs
|
|
29
|
+
npx codestation-mcp uuid 3
|
|
30
|
+
npx codestation-mcp ulid 3
|
|
31
|
+
npx codestation-mcp nanoid 2 --length 16
|
|
32
|
+
|
|
33
|
+
# Encode / decode Base64 (standard or --url-safe)
|
|
34
|
+
npx codestation-mcp base64 "Code Station"
|
|
35
|
+
npx codestation-mcp base64 "Q29kZSBTdGF0aW9u" --decode
|
|
36
|
+
|
|
37
|
+
# Query JSON with JSONPath or compute structural JSON diffs
|
|
38
|
+
npx codestation-mcp jsonpath '{"users":[{"name":"Ada"},{"name":"Lin"}]}' "$.users[*].name"
|
|
39
|
+
npx codestation-mcp json-diff '{"a":1,"b":2}' '{"a":1,"b":3,"c":4}'
|
|
40
|
+
|
|
28
41
|
# Convert cURL to TypeScript fetch / axios / Python / Go
|
|
29
42
|
npx codestation-mcp curl "curl -X POST https://api.example.com -d '{\"k\":\"v\"}'" --target fetch
|
|
30
43
|
|
|
31
44
|
# Audit .env for secret leaks (Stripe, AWS, OpenAI, GitHub PAT) & diff with .env.example
|
|
32
45
|
npx codestation-mcp env .env --example .env.example
|
|
33
46
|
|
|
34
|
-
# Generate realistic mock dataset (JSON
|
|
47
|
+
# Generate realistic mock dataset (JSON, SQL INSERT, or CSV)
|
|
35
48
|
npx codestation-mcp mock users --count 10 --sql --table users
|
|
36
49
|
|
|
37
|
-
# Parse and resolve Git merge conflicts (ours, theirs, or both)
|
|
50
|
+
# Parse and resolve Git merge conflicts (analyze, ours, theirs, or both)
|
|
38
51
|
npx codestation-mcp conflict ./src/index.ts --strategy ours
|
|
39
52
|
|
|
40
|
-
# Decode & inspect JWT tokens
|
|
53
|
+
# Decode & inspect JWT tokens, format SQL, explain Cron, infer TS/Zod, hash strings
|
|
41
54
|
npx codestation-mcp jwt <token>
|
|
42
|
-
|
|
43
|
-
# Format SQL queries (Postgres, MySQL, SQLite, SQL Server)
|
|
44
|
-
npx codestation-mcp sql "SELECT * FROM users"
|
|
45
|
-
|
|
46
|
-
# Explain Cron expression & next 5 runtimes
|
|
55
|
+
npx codestation-mcp sql "SELECT * FROM users" --dialect postgresql
|
|
47
56
|
npx codestation-mcp cron "0 9 * * 1-5"
|
|
48
|
-
|
|
49
|
-
# Generate TypeScript interfaces from JSON
|
|
50
57
|
npx codestation-mcp ts '{"id":1,"name":"Ada"}' User
|
|
51
|
-
|
|
52
|
-
# Generate Zod validation schema from JSON
|
|
53
58
|
npx codestation-mcp zod '{"id":1,"name":"Ada"}'
|
|
54
|
-
|
|
55
|
-
# Hash string with SHA-256 / SHA-512 / MD5 / CRC32
|
|
56
59
|
npx codestation-mcp hash "secret" --alg sha256
|
|
57
60
|
```
|
|
58
61
|
|
|
@@ -60,8 +63,6 @@ npx codestation-mcp hash "secret" --alg sha256
|
|
|
60
63
|
|
|
61
64
|
## Quick Start (Stdio MCP Server)
|
|
62
65
|
|
|
63
|
-
You can run `codestation-mcp` as an MCP server using `npx`:
|
|
64
|
-
|
|
65
66
|
```bash
|
|
66
67
|
npx -y codestation-mcp
|
|
67
68
|
```
|
|
@@ -78,16 +79,17 @@ npx -y codestation-mcp --key CS-PRO-YOUR-KEY
|
|
|
78
79
|
|
|
79
80
|
### Claude Desktop
|
|
80
81
|
|
|
81
|
-
Edit
|
|
82
|
+
Edit `claude_desktop_config.json`:
|
|
82
83
|
- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
83
84
|
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
|
|
85
|
+
- **Linux:** `~/.config/Claude/claude_desktop_config.json`
|
|
84
86
|
|
|
85
87
|
```json
|
|
86
88
|
{
|
|
87
89
|
"mcpServers": {
|
|
88
90
|
"codestation": {
|
|
89
91
|
"command": "npx",
|
|
90
|
-
"args": ["-y", "codestation-mcp", "--key", "
|
|
92
|
+
"args": ["-y", "codestation-mcp", "--key", "CS-PRO-YOUR_KEY"]
|
|
91
93
|
}
|
|
92
94
|
}
|
|
93
95
|
}
|
|
@@ -95,14 +97,29 @@ Edit your `claude_desktop_config.json`:
|
|
|
95
97
|
|
|
96
98
|
### Cursor IDE
|
|
97
99
|
|
|
98
|
-
Add to
|
|
100
|
+
Add to `.cursor/mcp.json` or `~/.cursor/mcp.json`:
|
|
101
|
+
|
|
102
|
+
```json
|
|
103
|
+
{
|
|
104
|
+
"mcpServers": {
|
|
105
|
+
"codestation": {
|
|
106
|
+
"command": "npx",
|
|
107
|
+
"args": ["-y", "codestation-mcp", "--key", "CS-PRO-YOUR_KEY"]
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Windsurf
|
|
114
|
+
|
|
115
|
+
Add to `~/.codeium/windsurf/mcp_config.json`:
|
|
99
116
|
|
|
100
117
|
```json
|
|
101
118
|
{
|
|
102
119
|
"mcpServers": {
|
|
103
120
|
"codestation": {
|
|
104
121
|
"command": "npx",
|
|
105
|
-
"args": ["-y", "codestation-mcp", "--key", "
|
|
122
|
+
"args": ["-y", "codestation-mcp", "--key", "CS-PRO-YOUR_KEY"]
|
|
106
123
|
}
|
|
107
124
|
}
|
|
108
125
|
}
|
|
@@ -110,47 +127,57 @@ Add to your project's `.cursor/mcp.json` or Cursor Global Settings:
|
|
|
110
127
|
|
|
111
128
|
---
|
|
112
129
|
|
|
113
|
-
##
|
|
114
|
-
|
|
115
|
-
### Free Tier (Unlimited, No Key Required)
|
|
116
|
-
- `
|
|
117
|
-
- `
|
|
118
|
-
- `
|
|
119
|
-
- `
|
|
120
|
-
- `
|
|
121
|
-
- `
|
|
122
|
-
- `
|
|
123
|
-
- `
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
- `
|
|
127
|
-
- `
|
|
128
|
-
- `
|
|
129
|
-
- `
|
|
130
|
-
- `
|
|
131
|
-
- `
|
|
132
|
-
- `
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
- `
|
|
136
|
-
- `
|
|
137
|
-
- `
|
|
138
|
-
- `
|
|
130
|
+
## Registered MCP Tools
|
|
131
|
+
|
|
132
|
+
### Free Tier (Unlimited, No Key Required — 17 Tools)
|
|
133
|
+
- `codestation_uuid` — Generate cryptographically secure RFC 4122 v4 UUIDs
|
|
134
|
+
- `codestation_ulid` — Generate lexicographically sortable Crockford Base32 ULIDs
|
|
135
|
+
- `codestation_nanoid` — Generate compact URL-safe cryptographic NanoIDs with custom length
|
|
136
|
+
- `codestation_base64` — Encode or decode standard and URL-safe Base64 strings
|
|
137
|
+
- `codestation_url_codec` — Percent-encode or decode URI string components
|
|
138
|
+
- `codestation_hex_codec` — Encode UTF-8 text to hexadecimal byte pairs or decode hex to text
|
|
139
|
+
- `codestation_html_codec` — Encode or decode HTML character entities safely
|
|
140
|
+
- `codestation_format_json` — Prettify, format, and validate JSON
|
|
141
|
+
- `codestation_minify_json` — Compact JSON by stripping whitespace
|
|
142
|
+
- `codestation_json_diff` — Structural key-by-key diff between two JSON documents
|
|
143
|
+
- `codestation_json_path` — Query and extract values from JSON with JSONPath (`$.field`, `$[0]`, `$[*]`)
|
|
144
|
+
- `codestation_json_to_yaml` — Convert JSON to YAML
|
|
145
|
+
- `codestation_yaml_to_json` — Convert YAML to JSON
|
|
146
|
+
- `codestation_csv_json` — Convert CSV tables to JSON or JSON arrays of objects to CSV
|
|
147
|
+
- `codestation_case_convert` — Convert text across naming conventions (`camel`, `pascal`, `snake`, `kebab`, `constant`, `title`, `sentence`, `upper`, `lower`)
|
|
148
|
+
- `codestation_text_diff` — Unified line-by-line text diff
|
|
149
|
+
- `codestation_slugify` — Generate clean URL-friendly slugs
|
|
150
|
+
|
|
151
|
+
### Pro Tier (Requires License Key — 16 Tools)
|
|
152
|
+
- `codestation_hash` — SHA-256, SHA-384, SHA-512, MD5, SHA-1, and CRC32 digests
|
|
153
|
+
- `codestation_hmac` — HMAC-SHA256 and HMAC-SHA512 message authentication codes
|
|
154
|
+
- `codestation_jwt_decode` — Decode JWT header, payload claims, and signature locally without verification
|
|
155
|
+
- `codestation_format_sql` — Format SQL queries across PostgreSQL, MySQL, SQLite, and SQL Server
|
|
156
|
+
- `codestation_cron_explain` — Explain 5-field Unix cron expressions in plain English
|
|
157
|
+
- `codestation_cron_next_runs` — Compute upcoming cron execution timestamps in any IANA timezone
|
|
158
|
+
- `codestation_timezone_convert` — Convert timestamps across IANA timezones with runtime rules
|
|
159
|
+
- `codestation_business_days` — Count working days between dates excluding weekends
|
|
160
|
+
- `codestation_regex_test` — Test regular expressions with match groups and capture indices
|
|
161
|
+
- `codestation_json_schema` — Infer Draft 2020-12 JSON Schema from sample JSON
|
|
162
|
+
- `codestation_json_to_typescript` — Generate TypeScript interfaces and types from JSON
|
|
163
|
+
- `codestation_json_to_zod` — Generate Zod validation schemas and inferred types from JSON
|
|
164
|
+
- `codestation_curl_to_code` — Convert cURL commands to TypeScript `fetch`/`axios`, Python `requests`, or Go `net/http`
|
|
165
|
+
- `codestation_env_audit` — Scan `.env` for leaked secrets and diff against `.env.example`
|
|
166
|
+
- `codestation_mock_data` — Generate mock datasets and SQL seeders (`users`, `products`, `orders`, `custom`)
|
|
167
|
+
- `codestation_git_conflict` — Parse and resolve Git merge conflict markers (`analyze`, `ours`, `theirs`, `both`)
|
|
139
168
|
|
|
140
169
|
---
|
|
141
170
|
|
|
142
171
|
## License & Activation
|
|
143
172
|
|
|
144
|
-
|
|
145
|
-
- **India:** ₹199 / month or ₹999
|
|
146
|
-
- **Global:** $2.99 / month or $19.00
|
|
147
|
-
|
|
148
|
-
### Ways to provide your key:
|
|
149
|
-
1. CLI flag: `npx codestation-mcp --key cs_pro_YOUR_KEY`
|
|
150
|
-
2. Environment variable: `export CODESTATION_KEY="cs_pro_YOUR_KEY"`
|
|
151
|
-
3. Config file: Save `{"licenseKey": "cs_pro_YOUR_KEY"}` in `~/.codestation/license.json`
|
|
173
|
+
Get a Pro license key at [codestation.in/pro](https://codestation.in/pro):
|
|
174
|
+
- **India:** ₹199 / month or ₹999 one-time
|
|
175
|
+
- **Global:** $2.99 / month or $19.00 one-time
|
|
152
176
|
|
|
153
|
-
|
|
177
|
+
Ways to provide your key:
|
|
178
|
+
1. CLI flag: `npx codestation-mcp --key CS-PRO-YOUR-KEY`
|
|
179
|
+
2. Environment variable: `export CODESTATION_LICENSE_KEY="CS-PRO-YOUR-KEY"`
|
|
180
|
+
3. Cached config file: `~/.codestation/license.json`
|
|
154
181
|
|
|
155
182
|
---
|
|
156
183
|
|