@veloxts/mcp 0.6.25 → 0.6.27

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/CHANGELOG.md ADDED
@@ -0,0 +1,284 @@
1
+ # @veloxts/mcp
2
+
3
+ ## 0.6.27
4
+
5
+ ### Patch Changes
6
+
7
+ - chore: add GUIDE, LICENSE and CHANGELOG.md to npm files
8
+ - Updated dependencies
9
+ - @veloxts/cli@0.6.27
10
+ - @veloxts/router@0.6.27
11
+ - @veloxts/validation@0.6.27
12
+
13
+ ## 0.6.26
14
+
15
+ ### Patch Changes
16
+
17
+ - docs(mcp): add README and GUIDE, docs(web): simplify README and create concise GUIDE
18
+ - Updated dependencies
19
+ - @veloxts/cli@0.6.26
20
+ - @veloxts/router@0.6.26
21
+ - @veloxts/validation@0.6.26
22
+
23
+ ## 0.6.25
24
+
25
+ ### Patch Changes
26
+
27
+ - docs(create): add guide for React Server Components setup
28
+ - Updated dependencies
29
+ - @veloxts/cli@0.6.25
30
+ - @veloxts/router@0.6.25
31
+ - @veloxts/validation@0.6.25
32
+
33
+ ## 0.6.24
34
+
35
+ ### Patch Changes
36
+
37
+ - clarify installation paths and package contents
38
+ - Updated dependencies
39
+ - @veloxts/cli@0.6.24
40
+ - @veloxts/router@0.6.24
41
+ - @veloxts/validation@0.6.24
42
+
43
+ ## 0.6.23
44
+
45
+ ### Patch Changes
46
+
47
+ - add defineContract for improved type inference DX
48
+ - Updated dependencies
49
+ - @veloxts/cli@0.6.23
50
+ - @veloxts/router@0.6.23
51
+ - @veloxts/validation@0.6.23
52
+
53
+ ## 0.6.22
54
+
55
+ ### Patch Changes
56
+
57
+ - support {method, path} route entry format
58
+ - Updated dependencies
59
+ - @veloxts/cli@0.6.22
60
+ - @veloxts/router@0.6.22
61
+ - @veloxts/validation@0.6.22
62
+
63
+ ## 0.6.21
64
+
65
+ ### Patch Changes
66
+
67
+ - separate schemas from procedures for browser-safe import
68
+ - Updated dependencies
69
+ - @veloxts/cli@0.6.21
70
+ - @veloxts/router@0.6.21
71
+ - @veloxts/validation@0.6.21
72
+
73
+ ## 0.6.20
74
+
75
+ ### Patch Changes
76
+
77
+ - add Fastify ecosystem stubs and debuglog to util
78
+ - Updated dependencies
79
+ - @veloxts/cli@0.6.20
80
+ - @veloxts/router@0.6.20
81
+ - @veloxts/validation@0.6.20
82
+
83
+ ## 0.6.19
84
+
85
+ ### Patch Changes
86
+
87
+ - restore dotenv stub for browser compatibility
88
+ - Updated dependencies
89
+ - @veloxts/cli@0.6.19
90
+ - @veloxts/router@0.6.19
91
+ - @veloxts/validation@0.6.19
92
+
93
+ ## 0.6.18
94
+
95
+ ### Patch Changes
96
+
97
+ - add node:fs/promises stub and fix esbuild plugin
98
+ - Updated dependencies
99
+ - @veloxts/cli@0.6.18
100
+ - @veloxts/router@0.6.18
101
+ - @veloxts/validation@0.6.18
102
+
103
+ ## 0.6.17
104
+
105
+ ### Patch Changes
106
+
107
+ - remove optimizeDeps.exclude to fix CJS/ESM interop
108
+ - Updated dependencies
109
+ - @veloxts/cli@0.6.17
110
+ - @veloxts/router@0.6.17
111
+ - @veloxts/validation@0.6.17
112
+
113
+ ## 0.6.16
114
+
115
+ ### Patch Changes
116
+
117
+ - add stubs for Fastify ecosystem packages
118
+ - Updated dependencies
119
+ - @veloxts/cli@0.6.16
120
+ - @veloxts/router@0.6.16
121
+ - @veloxts/validation@0.6.16
122
+
123
+ ## 0.6.15
124
+
125
+ ### Patch Changes
126
+
127
+ - implement three-layer Node.js stubbing for Vite
128
+ - Updated dependencies
129
+ - @veloxts/cli@0.6.15
130
+ - @veloxts/router@0.6.15
131
+ - @veloxts/validation@0.6.15
132
+
133
+ ## 0.6.14
134
+
135
+ ### Patch Changes
136
+
137
+ - stub dotenv as virtual module instead of process shims
138
+ - Updated dependencies
139
+ - @veloxts/cli@0.6.14
140
+ - @veloxts/router@0.6.14
141
+ - @veloxts/validation@0.6.14
142
+
143
+ ## 0.6.13
144
+
145
+ ### Patch Changes
146
+
147
+ - add process.argv stub for dotenv browser compatibility
148
+ - Updated dependencies
149
+ - @veloxts/cli@0.6.13
150
+ - @veloxts/router@0.6.13
151
+ - @veloxts/validation@0.6.13
152
+
153
+ ## 0.6.12
154
+
155
+ ### Patch Changes
156
+
157
+ - Fixes the "process is not defined" error from dotenv
158
+ - Updated dependencies
159
+ - @veloxts/cli@0.6.12
160
+ - @veloxts/router@0.6.12
161
+ - @veloxts/validation@0.6.12
162
+
163
+ ## 0.6.11
164
+
165
+ ### Patch Changes
166
+
167
+ - add Vite plugin for Node.js module stubs
168
+ - Updated dependencies
169
+ - @veloxts/cli@0.6.11
170
+ - @veloxts/router@0.6.11
171
+ - @veloxts/validation@0.6.11
172
+
173
+ ## 0.6.10
174
+
175
+ ### Patch Changes
176
+
177
+ - use import() type syntax for AppRouter
178
+ - Updated dependencies
179
+ - @veloxts/cli@0.6.10
180
+ - @veloxts/router@0.6.10
181
+ - @veloxts/validation@0.6.10
182
+
183
+ ## 0.6.9
184
+
185
+ ### Patch Changes
186
+
187
+ - isolate auth procedures from database imports
188
+ - Updated dependencies
189
+ - @veloxts/cli@0.6.9
190
+ - @veloxts/router@0.6.9
191
+ - @veloxts/validation@0.6.9
192
+
193
+ ## 0.6.8
194
+
195
+ ### Patch Changes
196
+
197
+ - prevent dotenv from leaking into browser bundle
198
+ - Updated dependencies
199
+ - @veloxts/cli@0.6.8
200
+ - @veloxts/router@0.6.8
201
+ - @veloxts/validation@0.6.8
202
+
203
+ ## 0.6.7
204
+
205
+ ### Patch Changes
206
+
207
+ - better-sqlite3 versions mismatch fix
208
+ - Updated dependencies
209
+ - @veloxts/cli@0.6.7
210
+ - @veloxts/router@0.6.7
211
+ - @veloxts/validation@0.6.7
212
+
213
+ ## 0.6.6
214
+
215
+ ### Patch Changes
216
+
217
+ - ensure the web app never imports server-side code paths
218
+ - Updated dependencies
219
+ - @veloxts/cli@0.6.6
220
+ - @veloxts/router@0.6.6
221
+ - @veloxts/validation@0.6.6
222
+
223
+ ## 0.6.5
224
+
225
+ ### Patch Changes
226
+
227
+ - move @prisma/client-runtime-utils to root package.json
228
+ - Updated dependencies
229
+ - @veloxts/cli@0.6.5
230
+ - @veloxts/router@0.6.5
231
+ - @veloxts/validation@0.6.5
232
+
233
+ ## 0.6.4
234
+
235
+ ### Patch Changes
236
+
237
+ - add @prisma/client-runtime-utils dependency
238
+ - Updated dependencies
239
+ - @veloxts/cli@0.6.4
240
+ - @veloxts/router@0.6.4
241
+ - @veloxts/validation@0.6.4
242
+
243
+ ## 0.6.3
244
+
245
+ ### Patch Changes
246
+
247
+ - Add workspaces field to root package.json template + Fix Prisma ESM/CJS import for Node.js v24
248
+ - Updated dependencies
249
+ - @veloxts/cli@0.6.3
250
+ - @veloxts/router@0.6.3
251
+ - @veloxts/validation@0.6.3
252
+
253
+ ## 0.6.2
254
+
255
+ ### Patch Changes
256
+
257
+ - add server actions, removed some deprecated and other chore
258
+ - Updated dependencies
259
+ - @veloxts/cli@0.6.2
260
+ - @veloxts/router@0.6.2
261
+ - @veloxts/validation@0.6.2
262
+
263
+ ## 0.6.1
264
+
265
+ ### Patch Changes
266
+
267
+ - route groups for file-based routing; add dynamic route support with [param] segments
268
+ - Updated dependencies
269
+ - @veloxts/cli@0.6.1
270
+ - @veloxts/router@0.6.1
271
+ - @veloxts/validation@0.6.1
272
+
273
+ ## 0.6.0
274
+
275
+ ### Minor Changes
276
+
277
+ - RSC streaming, dynamic routes, Vinxi integration
278
+
279
+ ### Patch Changes
280
+
281
+ - Updated dependencies
282
+ - @veloxts/cli@0.6.0
283
+ - @veloxts/router@0.6.0
284
+ - @veloxts/validation@0.6.0
package/GUIDE.md ADDED
@@ -0,0 +1,96 @@
1
+ # MCP Server Guide
2
+
3
+ The **@veloxts/mcp** package provides a Model Context Protocol (MCP) server that exposes your VeloxTS project structure to AI assistants. This enables intelligent code assistance with full awareness of your procedures, schemas, routes, and error codes.
4
+
5
+ ## What is MCP?
6
+
7
+ Model Context Protocol is an open standard that enables AI assistants to access contextual information from your development environment. The VeloxTS MCP server allows Claude and other MCP-compatible AI tools to introspect your API structure programmatically.
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ npm install @veloxts/mcp
13
+ ```
14
+
15
+ ## Quick Start
16
+
17
+ ### CLI Usage
18
+
19
+ Run the MCP server as a standalone process:
20
+
21
+ ```bash
22
+ # Run MCP server with stdio transport
23
+ velox-mcp
24
+
25
+ # Enable debug logging
26
+ velox-mcp --debug
27
+ ```
28
+
29
+ ### Programmatic Usage
30
+
31
+ ```typescript
32
+ import { runMCPServer, createVeloxMCPServer } from '@veloxts/mcp';
33
+
34
+ // Run with stdio transport (for CLI integration)
35
+ await runMCPServer({ debug: true });
36
+
37
+ // Or create a custom server instance
38
+ const server = createVeloxMCPServer({
39
+ projectRoot: '/path/to/project',
40
+ debug: true,
41
+ });
42
+ ```
43
+
44
+ ## Available Resources
45
+
46
+ The MCP server exposes these read-only resources via `velox://` URIs:
47
+
48
+ **velox://procedures** - Lists all registered procedures with types, inputs, outputs, and REST route mappings
49
+
50
+ **velox://routes** - Shows REST route mappings generated from procedure naming conventions
51
+
52
+ **velox://schemas** - Displays all Zod validation schemas defined in your project
53
+
54
+ **velox://errors** - Error catalog with VeloxTS error codes, messages, and fix suggestions
55
+
56
+ **velox://project** - Project metadata including paths to procedures, schemas, and Prisma schema
57
+
58
+ ## Available Tools
59
+
60
+ AI assistants can invoke these actions:
61
+
62
+ **velox_generate** - Generate VeloxTS code (procedures, schemas, resources, migrations, tests, etc.)
63
+
64
+ **velox_migrate** - Run database migrations (status, run, rollback, fresh, reset)
65
+
66
+ ## Available Prompts
67
+
68
+ Reusable prompt templates for common VeloxTS tasks:
69
+
70
+ - **CREATE_PROCEDURE** - Guidance for creating type-safe API procedures
71
+ - **SETUP_AUTH** - Instructions for implementing authentication
72
+ - **ADD_VALIDATION** - Best practices for Zod schema validation
73
+ - **ERROR_HANDLING** - Error handling patterns with typed responses
74
+
75
+ ## Claude Desktop Integration
76
+
77
+ Add to your Claude Desktop configuration (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
78
+
79
+ ```json
80
+ {
81
+ "mcpServers": {
82
+ "veloxts": {
83
+ "command": "velox-mcp",
84
+ "args": []
85
+ }
86
+ }
87
+ }
88
+ ```
89
+
90
+ Restart Claude Desktop. The VeloxTS context will be available when working in VeloxTS projects.
91
+
92
+ ## Learn More
93
+
94
+ - **Main Package**: [@veloxts/velox](https://www.npmjs.com/package/@veloxts/velox)
95
+ - **Framework Docs**: [VeloxTS Documentation](https://github.com/veloxts/velox-ts-framework)
96
+ - **MCP Specification**: [Model Context Protocol](https://modelcontextprotocol.io)
package/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # @veloxts/mcp
2
+
3
+ > **Early Preview (v0.6.x)** - APIs are stabilizing but may still change.
4
+
5
+ Model Context Protocol server for VeloxTS - exposes project context (procedures, schemas, routes, errors) to AI assistants like Claude for intelligent code assistance. Learn more at [@veloxts/velox](https://www.npmjs.com/package/@veloxts/velox).
6
+
7
+ ## License
8
+
9
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloxts/mcp",
3
- "version": "0.6.25",
3
+ "version": "0.6.27",
4
4
  "description": "Model Context Protocol server for VeloxTS - expose project context to AI tools",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -16,13 +16,16 @@
16
16
  },
17
17
  "files": [
18
18
  "dist",
19
- "README.md"
19
+ "README.md",
20
+ "GUIDE.md",
21
+ "LICENSE",
22
+ "CHANGELOG.md"
20
23
  ],
21
24
  "dependencies": {
22
25
  "@modelcontextprotocol/sdk": "1.25.1",
23
- "@veloxts/validation": "0.6.25",
24
- "@veloxts/cli": "0.6.25",
25
- "@veloxts/router": "0.6.25"
26
+ "@veloxts/cli": "0.6.27",
27
+ "@veloxts/validation": "0.6.27",
28
+ "@veloxts/router": "0.6.27"
26
29
  },
27
30
  "peerDependencies": {
28
31
  "zod": ">=3.25.0"