devtoolkit-mcp 0.1.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 ADDED
@@ -0,0 +1,215 @@
1
+ # devtoolkit-mcp
2
+
3
+ 25+ developer utilities as an MCP server for AI-assisted workflows. JSON repair, SQL formatting, hashing, encoding, UUID generation, regex testing, CSV transforms, subnet calculation, and more.
4
+
5
+ **No API keys. No network requests. Everything runs locally.**
6
+
7
+ By [Coding4Pizza](https://coding4pizza.com)
8
+
9
+ ## Quick Start
10
+
11
+ ```bash
12
+ npx -y devtoolkit-mcp
13
+ ```
14
+
15
+ ## Configuration
16
+
17
+ ### Claude Desktop
18
+
19
+ Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
20
+
21
+ ```json
22
+ {
23
+ "mcpServers": {
24
+ "devtoolkit": {
25
+ "command": "npx",
26
+ "args": ["-y", "devtoolkit-mcp"]
27
+ }
28
+ }
29
+ }
30
+ ```
31
+
32
+ ### Claude Code
33
+
34
+ ```bash
35
+ claude mcp add devtoolkit -- npx -y devtoolkit-mcp
36
+ ```
37
+
38
+ Or add to `.mcp.json` in your project root:
39
+
40
+ ```json
41
+ {
42
+ "mcpServers": {
43
+ "devtoolkit": {
44
+ "command": "npx",
45
+ "args": ["-y", "devtoolkit-mcp"]
46
+ }
47
+ }
48
+ }
49
+ ```
50
+
51
+ ### Cursor
52
+
53
+ Add to `~/.cursor/mcp.json`:
54
+
55
+ ```json
56
+ {
57
+ "mcpServers": {
58
+ "devtoolkit": {
59
+ "command": "npx",
60
+ "args": ["-y", "devtoolkit-mcp"]
61
+ }
62
+ }
63
+ }
64
+ ```
65
+
66
+ ### VS Code (Copilot)
67
+
68
+ Add to `.vscode/mcp.json` in your project:
69
+
70
+ ```json
71
+ {
72
+ "servers": {
73
+ "devtoolkit": {
74
+ "type": "stdio",
75
+ "command": "npx",
76
+ "args": ["-y", "devtoolkit-mcp"]
77
+ }
78
+ }
79
+ }
80
+ ```
81
+
82
+ ### Windsurf
83
+
84
+ Add to `~/.codeium/windsurf/mcp_config.json`:
85
+
86
+ ```json
87
+ {
88
+ "mcpServers": {
89
+ "devtoolkit": {
90
+ "command": "npx",
91
+ "args": ["-y", "devtoolkit-mcp"]
92
+ }
93
+ }
94
+ }
95
+ ```
96
+
97
+ ## Available Tools (25)
98
+
99
+ ### Data Transform
100
+ | Tool | Description |
101
+ |------|-------------|
102
+ | `repair_json` | Fix malformed JSON — missing quotes, trailing commas, single quotes, comments |
103
+ | `format_sql` | Format or minify SQL with 18+ dialect support |
104
+ | `format_list` | Convert lists to SQL IN clause, VALUES, UNION, JSON array, CSV |
105
+ | `clean_list` | Deduplicate, sort, trim, filter lists |
106
+ | `generate_mock_data` | Generate fake data with 63+ field types via Faker.js (JSON/CSV/SQL) |
107
+ | `csv_transform` | Parse, filter, sort, aggregate, convert CSV data |
108
+ | `yaml_json` | Convert between YAML and JSON |
109
+ | `json_to_types` | Convert JSON to TypeScript interfaces, Zod schemas, or JSON Schema |
110
+
111
+ ### Decode & Parse
112
+ | Tool | Description |
113
+ |------|-------------|
114
+ | `decode_jwt` | Decode JWT tokens — header, payload, expiration status |
115
+ | `parse_cron` | Parse cron expressions — human-readable description + next run times |
116
+ | `convert_epoch` | Convert between epoch timestamps and human dates |
117
+ | `convert_color` | Convert colors (HEX/RGB/HSL/OKLCH) with WCAG contrast grades |
118
+ | `url_parse` | Parse URLs into components, manipulate query parameters |
119
+ | `http_status` | Look up HTTP status codes, headers, and MIME types with RFC references |
120
+
121
+ ### Crypto & Random
122
+ | Tool | Description |
123
+ |------|-------------|
124
+ | `hash_text` | Compute MD5, SHA-1, SHA-256, SHA-512 hashes and HMAC |
125
+ | `encode_decode` | Encode/decode Base64, URL, HTML entities, Unicode escapes |
126
+ | `uuid_generate` | Generate UUID v4, v7, NanoID, or ULID with true crypto randomness |
127
+ | `password_generate` | Generate crypto-random passwords or passphrases with entropy estimate |
128
+
129
+ ### Dev Utilities
130
+ | Tool | Description |
131
+ |------|-------------|
132
+ | `regex_test` | Test regex patterns — matches, captures, named groups, replace |
133
+ | `number_base_convert` | Convert between decimal, hex, binary, octal (BigInt support) |
134
+ | `diff_text` | Line-by-line text diff using LCS algorithm |
135
+ | `string_case` | Convert between camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE, and more |
136
+ | `ip_subnet` | IPv4 subnet calculator — CIDR, masks, host range, membership check |
137
+ | `timestamp_calc` | Date math — add/subtract durations, diff between dates, timezone conversion |
138
+
139
+ ### Smart Detection
140
+ | Tool | Description |
141
+ |------|-------------|
142
+ | `detect_content` | Auto-detect content type (JSON, SQL, JWT, cron, etc.) with confidence score |
143
+
144
+ ## Examples
145
+
146
+ Just ask your AI assistant in natural language:
147
+
148
+ ```
149
+ Hash "hello world" with SHA-256
150
+ ```
151
+
152
+ ```
153
+ Decode this JWT: eyJhbGciOiJIUzI1NiIs...
154
+ ```
155
+
156
+ ```
157
+ Convert 0xFF3A to binary
158
+ ```
159
+
160
+ ```
161
+ Test regex (\d{4})-(\d{2})-(\d{2}) against "2024-03-15"
162
+ ```
163
+
164
+ ```
165
+ Generate 5 UUID v7
166
+ ```
167
+
168
+ ```
169
+ What is 2024-01-15 + 90 days?
170
+ ```
171
+
172
+ ```
173
+ Calculate subnet for 192.168.1.0/24
174
+ ```
175
+
176
+ ```
177
+ Convert getUserHTTPResponse to snake_case
178
+ ```
179
+
180
+ ```
181
+ Convert this JSON to TypeScript: {"id": 1, "name": "John", "tags": ["admin"]}
182
+ ```
183
+
184
+ ```
185
+ Generate 20 mock users with id, name, email, salary as CSV, then filter salary > 60000
186
+ ```
187
+
188
+ ## Why MCP Tools vs Native AI?
189
+
190
+ These tools provide capabilities that AI models **cannot do natively**:
191
+
192
+ | Capability | AI Native | MCP Tool |
193
+ |-----------|-----------|----------|
194
+ | Compute SHA-256 hash | Cannot | Exact |
195
+ | Generate true random UUIDs | Cannot | Crypto-random |
196
+ | Base64 encode/decode | Often wrong | Exact |
197
+ | Regex matching with captures | Often wrong | JS RegExp engine |
198
+ | Subnet math (CIDR, masks) | Often wrong | Bit-level exact |
199
+ | Date arithmetic | Often wrong | Millisecond exact |
200
+ | CSV parsing (quoted fields) | Approximates | RFC-compliant |
201
+ | Line-by-line diff | Misses changes | LCS algorithm |
202
+
203
+ ## Requirements
204
+
205
+ - Node.js >= 18
206
+
207
+ ## License
208
+
209
+ MIT
210
+
211
+ ## Links
212
+
213
+ - Website: [coding4pizza.com](https://coding4pizza.com)
214
+ - Source: [github.com/emtyty/devtool](https://github.com/emtyty/devtool)
215
+ - Issues: [github.com/emtyty/devtool/issues](https://github.com/emtyty/devtool/issues)