@veloxts/mcp 0.8.1 → 0.8.3

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 (2) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @veloxts/mcp
2
2
 
3
+ ## 0.8.3
4
+
5
+ ### Patch Changes
6
+
7
+ - bump dependencies across packages (April 2026)
8
+ - Updated dependencies
9
+ - @veloxts/cli@0.8.3
10
+ - @veloxts/router@0.8.3
11
+ - @veloxts/validation@0.8.3
12
+
13
+ ## 0.8.2
14
+
15
+ ### Patch Changes
16
+
17
+ - merge URL params into POST input for flat .rest() paths
18
+ - Updated dependencies
19
+ - @veloxts/cli@0.8.2
20
+ - @veloxts/router@0.8.2
21
+ - @veloxts/validation@0.8.2
22
+
3
23
  ## 0.8.1
4
24
 
5
25
  ### Patch Changes
@@ -501,6 +521,7 @@
501
521
  - ### feat(auth): Unified Adapter-Only Architecture
502
522
 
503
523
  **New Features:**
524
+
504
525
  - Add `JwtAdapter` implementing the `AuthAdapter` interface for unified JWT authentication
505
526
  - Add `jwtAuth()` convenience function for direct adapter usage with optional built-in routes (`/api/auth/refresh`, `/api/auth/logout`)
506
527
  - Add `AuthContext` discriminated union (`NativeAuthContext | AdapterAuthContext`) for type-safe auth mode handling
@@ -508,20 +529,24 @@
508
529
  - Add shared decoration utilities (`decorateAuth`, `setRequestAuth`, `checkDoubleRegistration`)
509
530
 
510
531
  **Architecture Changes:**
532
+
511
533
  - `authPlugin` now uses `JwtAdapter` internally - all authentication flows through the adapter pattern
512
534
  - Single code path for authentication (no more dual native/adapter modes)
513
535
  - `authContext.authMode` is now always `'adapter'` with `providerId='jwt'` when using `authPlugin`
514
536
 
515
537
  **Breaking Changes:**
538
+
516
539
  - Remove deprecated `LegacySessionConfig` interface (use `sessionMiddleware` instead)
517
540
  - Remove deprecated `session` field from `AuthConfig`
518
541
  - `User` interface no longer has index signature (extend via declaration merging)
519
542
 
520
543
  **Type Safety Improvements:**
544
+
521
545
  - `AuthContext` discriminated union enables exhaustive type narrowing based on `authMode`
522
546
  - Export `NativeAuthContext` and `AdapterAuthContext` types for explicit typing
523
547
 
524
548
  **Migration:**
549
+
525
550
  - Existing `authPlugin` usage remains backward-compatible
526
551
  - If checking `authContext.token`, use `authContext.session` instead (token stored in session for adapter mode)
527
552
 
@@ -541,10 +566,12 @@
541
566
  Addresses 9 user feedback items to improve DX, reduce boilerplate, and eliminate template duplications.
542
567
 
543
568
  ### Phase 1: Validation Helpers (`@veloxts/validation`)
569
+
544
570
  - Add `prismaDecimal()`, `prismaDecimalNullable()`, `prismaDecimalOptional()` for Prisma Decimal → number conversion
545
571
  - Add `dateToIso`, `dateToIsoNullable`, `dateToIsoOptional` aliases for consistency
546
572
 
547
573
  ### Phase 2: Template Deduplication (`@veloxts/auth`)
574
+
548
575
  - Export `createEnhancedTokenStore()` with token revocation and refresh token reuse detection
549
576
  - Export `parseUserRoles()` and `DEFAULT_ALLOWED_ROLES`
550
577
  - Fix memory leak: track pending timeouts for proper cleanup on `destroy()`
@@ -552,17 +579,20 @@
552
579
  - Fix jwtManager singleton pattern in templates
553
580
 
554
581
  ### Phase 3: Router Helpers (`@veloxts/router`)
582
+
555
583
  - Add `createRouter()` returning `{ collections, router }` for DRY setup
556
584
  - Add `toRouter()` for router-only use cases
557
585
  - Update all router templates to use `createRouter()`
558
586
 
559
587
  ### Phase 4: Guard Type Narrowing - Experimental (`@veloxts/auth`, `@veloxts/router`)
588
+
560
589
  - Add `NarrowingGuard` interface with phantom `_narrows` type
561
590
  - Add `authenticatedNarrow` and `hasRoleNarrow()` guards
562
591
  - Add `guardNarrow()` method to `ProcedureBuilder` for context narrowing
563
592
  - Enables `ctx.user` to be non-null after guard passes
564
593
 
565
594
  ### Phase 5: Documentation (`@veloxts/router`)
595
+
566
596
  - Document `.rest()` override patterns
567
597
  - Document `createRouter()` helper usage
568
598
  - Document `guardNarrow()` experimental API
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloxts/mcp",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
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",
@@ -22,20 +22,20 @@
22
22
  "CHANGELOG.md"
23
23
  ],
24
24
  "dependencies": {
25
- "@modelcontextprotocol/sdk": "1.27.1",
25
+ "@modelcontextprotocol/sdk": "1.29.0",
26
26
  "typescript": "5.9.3",
27
- "@veloxts/router": "0.8.1",
28
- "@veloxts/validation": "0.8.1",
29
- "@veloxts/cli": "0.8.1"
27
+ "@veloxts/validation": "0.8.3",
28
+ "@veloxts/cli": "0.8.3",
29
+ "@veloxts/router": "0.8.3"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "zod": "^4.3.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@types/node": "25.5.0",
36
- "@vitest/coverage-v8": "4.1.0",
35
+ "@types/node": "25.6.0",
36
+ "@vitest/coverage-v8": "4.1.5",
37
37
  "typescript": "5.9.3",
38
- "vitest": "4.1.0"
38
+ "vitest": "4.1.5"
39
39
  },
40
40
  "keywords": [
41
41
  "velox",