@veloxts/mcp 0.6.26 → 0.6.29

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,304 @@
1
+ # @veloxts/mcp
2
+
3
+ ## 0.6.29
4
+
5
+ ### Patch Changes
6
+
7
+ - add multi-tenancy and PostgreSQL support - test and lint fix
8
+ - Updated dependencies
9
+ - @veloxts/cli@0.6.29
10
+ - @veloxts/router@0.6.29
11
+ - @veloxts/validation@0.6.29
12
+
13
+ ## 0.6.28
14
+
15
+ ### Patch Changes
16
+
17
+ - add multi-tenancy support and postgresql database
18
+ - Updated dependencies
19
+ - @veloxts/cli@0.6.28
20
+ - @veloxts/router@0.6.28
21
+ - @veloxts/validation@0.6.28
22
+
23
+ ## 0.6.27
24
+
25
+ ### Patch Changes
26
+
27
+ - chore: add GUIDE, LICENSE and CHANGELOG.md to npm files
28
+ - Updated dependencies
29
+ - @veloxts/cli@0.6.27
30
+ - @veloxts/router@0.6.27
31
+ - @veloxts/validation@0.6.27
32
+
33
+ ## 0.6.26
34
+
35
+ ### Patch Changes
36
+
37
+ - docs(mcp): add README and GUIDE, docs(web): simplify README and create concise GUIDE
38
+ - Updated dependencies
39
+ - @veloxts/cli@0.6.26
40
+ - @veloxts/router@0.6.26
41
+ - @veloxts/validation@0.6.26
42
+
43
+ ## 0.6.25
44
+
45
+ ### Patch Changes
46
+
47
+ - docs(create): add guide for React Server Components setup
48
+ - Updated dependencies
49
+ - @veloxts/cli@0.6.25
50
+ - @veloxts/router@0.6.25
51
+ - @veloxts/validation@0.6.25
52
+
53
+ ## 0.6.24
54
+
55
+ ### Patch Changes
56
+
57
+ - clarify installation paths and package contents
58
+ - Updated dependencies
59
+ - @veloxts/cli@0.6.24
60
+ - @veloxts/router@0.6.24
61
+ - @veloxts/validation@0.6.24
62
+
63
+ ## 0.6.23
64
+
65
+ ### Patch Changes
66
+
67
+ - add defineContract for improved type inference DX
68
+ - Updated dependencies
69
+ - @veloxts/cli@0.6.23
70
+ - @veloxts/router@0.6.23
71
+ - @veloxts/validation@0.6.23
72
+
73
+ ## 0.6.22
74
+
75
+ ### Patch Changes
76
+
77
+ - support {method, path} route entry format
78
+ - Updated dependencies
79
+ - @veloxts/cli@0.6.22
80
+ - @veloxts/router@0.6.22
81
+ - @veloxts/validation@0.6.22
82
+
83
+ ## 0.6.21
84
+
85
+ ### Patch Changes
86
+
87
+ - separate schemas from procedures for browser-safe import
88
+ - Updated dependencies
89
+ - @veloxts/cli@0.6.21
90
+ - @veloxts/router@0.6.21
91
+ - @veloxts/validation@0.6.21
92
+
93
+ ## 0.6.20
94
+
95
+ ### Patch Changes
96
+
97
+ - add Fastify ecosystem stubs and debuglog to util
98
+ - Updated dependencies
99
+ - @veloxts/cli@0.6.20
100
+ - @veloxts/router@0.6.20
101
+ - @veloxts/validation@0.6.20
102
+
103
+ ## 0.6.19
104
+
105
+ ### Patch Changes
106
+
107
+ - restore dotenv stub for browser compatibility
108
+ - Updated dependencies
109
+ - @veloxts/cli@0.6.19
110
+ - @veloxts/router@0.6.19
111
+ - @veloxts/validation@0.6.19
112
+
113
+ ## 0.6.18
114
+
115
+ ### Patch Changes
116
+
117
+ - add node:fs/promises stub and fix esbuild plugin
118
+ - Updated dependencies
119
+ - @veloxts/cli@0.6.18
120
+ - @veloxts/router@0.6.18
121
+ - @veloxts/validation@0.6.18
122
+
123
+ ## 0.6.17
124
+
125
+ ### Patch Changes
126
+
127
+ - remove optimizeDeps.exclude to fix CJS/ESM interop
128
+ - Updated dependencies
129
+ - @veloxts/cli@0.6.17
130
+ - @veloxts/router@0.6.17
131
+ - @veloxts/validation@0.6.17
132
+
133
+ ## 0.6.16
134
+
135
+ ### Patch Changes
136
+
137
+ - add stubs for Fastify ecosystem packages
138
+ - Updated dependencies
139
+ - @veloxts/cli@0.6.16
140
+ - @veloxts/router@0.6.16
141
+ - @veloxts/validation@0.6.16
142
+
143
+ ## 0.6.15
144
+
145
+ ### Patch Changes
146
+
147
+ - implement three-layer Node.js stubbing for Vite
148
+ - Updated dependencies
149
+ - @veloxts/cli@0.6.15
150
+ - @veloxts/router@0.6.15
151
+ - @veloxts/validation@0.6.15
152
+
153
+ ## 0.6.14
154
+
155
+ ### Patch Changes
156
+
157
+ - stub dotenv as virtual module instead of process shims
158
+ - Updated dependencies
159
+ - @veloxts/cli@0.6.14
160
+ - @veloxts/router@0.6.14
161
+ - @veloxts/validation@0.6.14
162
+
163
+ ## 0.6.13
164
+
165
+ ### Patch Changes
166
+
167
+ - add process.argv stub for dotenv browser compatibility
168
+ - Updated dependencies
169
+ - @veloxts/cli@0.6.13
170
+ - @veloxts/router@0.6.13
171
+ - @veloxts/validation@0.6.13
172
+
173
+ ## 0.6.12
174
+
175
+ ### Patch Changes
176
+
177
+ - Fixes the "process is not defined" error from dotenv
178
+ - Updated dependencies
179
+ - @veloxts/cli@0.6.12
180
+ - @veloxts/router@0.6.12
181
+ - @veloxts/validation@0.6.12
182
+
183
+ ## 0.6.11
184
+
185
+ ### Patch Changes
186
+
187
+ - add Vite plugin for Node.js module stubs
188
+ - Updated dependencies
189
+ - @veloxts/cli@0.6.11
190
+ - @veloxts/router@0.6.11
191
+ - @veloxts/validation@0.6.11
192
+
193
+ ## 0.6.10
194
+
195
+ ### Patch Changes
196
+
197
+ - use import() type syntax for AppRouter
198
+ - Updated dependencies
199
+ - @veloxts/cli@0.6.10
200
+ - @veloxts/router@0.6.10
201
+ - @veloxts/validation@0.6.10
202
+
203
+ ## 0.6.9
204
+
205
+ ### Patch Changes
206
+
207
+ - isolate auth procedures from database imports
208
+ - Updated dependencies
209
+ - @veloxts/cli@0.6.9
210
+ - @veloxts/router@0.6.9
211
+ - @veloxts/validation@0.6.9
212
+
213
+ ## 0.6.8
214
+
215
+ ### Patch Changes
216
+
217
+ - prevent dotenv from leaking into browser bundle
218
+ - Updated dependencies
219
+ - @veloxts/cli@0.6.8
220
+ - @veloxts/router@0.6.8
221
+ - @veloxts/validation@0.6.8
222
+
223
+ ## 0.6.7
224
+
225
+ ### Patch Changes
226
+
227
+ - better-sqlite3 versions mismatch fix
228
+ - Updated dependencies
229
+ - @veloxts/cli@0.6.7
230
+ - @veloxts/router@0.6.7
231
+ - @veloxts/validation@0.6.7
232
+
233
+ ## 0.6.6
234
+
235
+ ### Patch Changes
236
+
237
+ - ensure the web app never imports server-side code paths
238
+ - Updated dependencies
239
+ - @veloxts/cli@0.6.6
240
+ - @veloxts/router@0.6.6
241
+ - @veloxts/validation@0.6.6
242
+
243
+ ## 0.6.5
244
+
245
+ ### Patch Changes
246
+
247
+ - move @prisma/client-runtime-utils to root package.json
248
+ - Updated dependencies
249
+ - @veloxts/cli@0.6.5
250
+ - @veloxts/router@0.6.5
251
+ - @veloxts/validation@0.6.5
252
+
253
+ ## 0.6.4
254
+
255
+ ### Patch Changes
256
+
257
+ - add @prisma/client-runtime-utils dependency
258
+ - Updated dependencies
259
+ - @veloxts/cli@0.6.4
260
+ - @veloxts/router@0.6.4
261
+ - @veloxts/validation@0.6.4
262
+
263
+ ## 0.6.3
264
+
265
+ ### Patch Changes
266
+
267
+ - Add workspaces field to root package.json template + Fix Prisma ESM/CJS import for Node.js v24
268
+ - Updated dependencies
269
+ - @veloxts/cli@0.6.3
270
+ - @veloxts/router@0.6.3
271
+ - @veloxts/validation@0.6.3
272
+
273
+ ## 0.6.2
274
+
275
+ ### Patch Changes
276
+
277
+ - add server actions, removed some deprecated and other chore
278
+ - Updated dependencies
279
+ - @veloxts/cli@0.6.2
280
+ - @veloxts/router@0.6.2
281
+ - @veloxts/validation@0.6.2
282
+
283
+ ## 0.6.1
284
+
285
+ ### Patch Changes
286
+
287
+ - route groups for file-based routing; add dynamic route support with [param] segments
288
+ - Updated dependencies
289
+ - @veloxts/cli@0.6.1
290
+ - @veloxts/router@0.6.1
291
+ - @veloxts/validation@0.6.1
292
+
293
+ ## 0.6.0
294
+
295
+ ### Minor Changes
296
+
297
+ - RSC streaming, dynamic routes, Vinxi integration
298
+
299
+ ### Patch Changes
300
+
301
+ - Updated dependencies
302
+ - @veloxts/cli@0.6.0
303
+ - @veloxts/router@0.6.0
304
+ - @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)
@@ -47,10 +47,10 @@ export const CREATE_PROCEDURE = {
47
47
 
48
48
  2. **Create the procedure** in \`src/procedures/{entities}.ts\`:
49
49
  \`\`\`typescript
50
- import { defineProcedures, procedure, z } from '@veloxts/velox';
50
+ import { procedure, procedures, z } from '@veloxts/velox';
51
51
  import { {Entity}Schema, Create{Entity}Schema } from '../schemas/{entity}.js';
52
52
 
53
- export const {entity}Procedures = defineProcedures('{entities}', {
53
+ export const {entity}Procedures = procedures('{entities}', {
54
54
  get{Entity}: procedure()
55
55
  .input(z.object({ id: z.string().uuid() }))
56
56
  .output({Entity}Schema)
@@ -233,7 +233,7 @@ const deletePost = procedure()
233
233
 
234
234
  ### 4. Auth Endpoints
235
235
  \`\`\`typescript
236
- export const authProcedures = defineProcedures('auth', {
236
+ export const authProcedures = procedures('auth', {
237
237
  register: procedure()
238
238
  .input(RegisterSchema)
239
239
  .output(UserSchema)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloxts/mcp",
3
- "version": "0.6.26",
3
+ "version": "0.6.29",
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/cli": "0.6.26",
24
- "@veloxts/router": "0.6.26",
25
- "@veloxts/validation": "0.6.26"
26
+ "@veloxts/cli": "0.6.29",
27
+ "@veloxts/validation": "0.6.29",
28
+ "@veloxts/router": "0.6.29"
26
29
  },
27
30
  "peerDependencies": {
28
31
  "zod": ">=3.25.0"