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