@vitemcp/server 1.9.14 → 1.9.15

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.
@@ -560,11 +560,10 @@ declare class OAuthProxy {
560
560
  private issuerNs;
561
561
  private jwtIssuer?;
562
562
  /**
563
- * The fallback storage this proxy created for itself, if any. It runs a
564
- * cleanup timer that keeps the event loop alive, so `destroy()` has to stop
565
- * it — and once the storage is wrapped for encryption it is reachable
566
- * through nothing else. A caller-supplied storage is deliberately not
567
- * recorded here: its lifetime belongs to the caller.
563
+ * The fallback storage this proxy created for itself, if any. Kept so that
564
+ * `destroy()` can stop its cleanup timer: once the storage is wrapped for
565
+ * encryption it is reachable through nothing else. A caller-supplied storage
566
+ * is deliberately not recorded here: its lifetime belongs to the caller.
568
567
  */
569
568
  private ownedTokenStorage;
570
569
  /**
@@ -783,6 +782,13 @@ declare class OAuthProxy {
783
782
  * itself is a live upstream credential.
784
783
  */
785
784
  private passthroughRefreshKey;
785
+ /**
786
+ * Send the user's browser back to the client's registered callback with how
787
+ * its request came out: a code, or an error (RFC 6749 §4.1.2). The `state`
788
+ * the client sent goes with either, and so does the issuer, so that the
789
+ * client can detect an AS mix-up (RFC 9207 §2).
790
+ */
791
+ private redirectToClient;
786
792
  /**
787
793
  * Redirect to upstream OAuth provider
788
794
  */
@@ -827,7 +833,12 @@ declare class OAuthProxy {
827
833
  */
828
834
  private savePassthroughRefreshBinding;
829
835
  /**
830
- * Start periodic cleanup of expired transactions and codes
836
+ * Start periodic cleanup of expired transactions and codes.
837
+ *
838
+ * The timer is `unref`ed: a sweep is housekeeping, and a process with nothing
839
+ * else left to do must be free to exit rather than wait on it. `stop()`
840
+ * leaves the proxy running, since it may be shared or serve again, so a timer
841
+ * that held the process open would do so until `destroy()`.
831
842
  */
832
843
  private startCleanup;
833
844
  /**
@@ -984,10 +995,10 @@ declare abstract class AuthProvider<TSession extends OAuthSession = OAuthSession
984
995
  * Release the resources held by the proxy this provider built for itself.
985
996
  *
986
997
  * That proxy runs two cleanup timers — its own sweep and its token
987
- * storage's — and both keep the Node event loop alive, so a process that has
988
- * stopped serving does not exit until this runs. `getProxy().destroy()`
989
- * reaches the same teardown; this exists so a caller holding only the
990
- * provider does not have to know that.
998
+ * storage's. Neither keeps the Node event loop alive, so a process that has
999
+ * stopped serving exits without this, but the timers run on until it does.
1000
+ * `getProxy().destroy()` reaches the same teardown; this exists so a caller
1001
+ * holding only the provider does not have to know that.
991
1002
  *
992
1003
  * Terminal: the provider will not serve again afterwards, and any later use
993
1004
  * throws rather than quietly building a replacement. Call it when the process
@@ -560,11 +560,10 @@ declare class OAuthProxy {
560
560
  private issuerNs;
561
561
  private jwtIssuer?;
562
562
  /**
563
- * The fallback storage this proxy created for itself, if any. It runs a
564
- * cleanup timer that keeps the event loop alive, so `destroy()` has to stop
565
- * it — and once the storage is wrapped for encryption it is reachable
566
- * through nothing else. A caller-supplied storage is deliberately not
567
- * recorded here: its lifetime belongs to the caller.
563
+ * The fallback storage this proxy created for itself, if any. Kept so that
564
+ * `destroy()` can stop its cleanup timer: once the storage is wrapped for
565
+ * encryption it is reachable through nothing else. A caller-supplied storage
566
+ * is deliberately not recorded here: its lifetime belongs to the caller.
568
567
  */
569
568
  private ownedTokenStorage;
570
569
  /**
@@ -783,6 +782,13 @@ declare class OAuthProxy {
783
782
  * itself is a live upstream credential.
784
783
  */
785
784
  private passthroughRefreshKey;
785
+ /**
786
+ * Send the user's browser back to the client's registered callback with how
787
+ * its request came out: a code, or an error (RFC 6749 §4.1.2). The `state`
788
+ * the client sent goes with either, and so does the issuer, so that the
789
+ * client can detect an AS mix-up (RFC 9207 §2).
790
+ */
791
+ private redirectToClient;
786
792
  /**
787
793
  * Redirect to upstream OAuth provider
788
794
  */
@@ -827,7 +833,12 @@ declare class OAuthProxy {
827
833
  */
828
834
  private savePassthroughRefreshBinding;
829
835
  /**
830
- * Start periodic cleanup of expired transactions and codes
836
+ * Start periodic cleanup of expired transactions and codes.
837
+ *
838
+ * The timer is `unref`ed: a sweep is housekeeping, and a process with nothing
839
+ * else left to do must be free to exit rather than wait on it. `stop()`
840
+ * leaves the proxy running, since it may be shared or serve again, so a timer
841
+ * that held the process open would do so until `destroy()`.
831
842
  */
832
843
  private startCleanup;
833
844
  /**
@@ -984,10 +995,10 @@ declare abstract class AuthProvider<TSession extends OAuthSession = OAuthSession
984
995
  * Release the resources held by the proxy this provider built for itself.
985
996
  *
986
997
  * That proxy runs two cleanup timers — its own sweep and its token
987
- * storage's — and both keep the Node event loop alive, so a process that has
988
- * stopped serving does not exit until this runs. `getProxy().destroy()`
989
- * reaches the same teardown; this exists so a caller holding only the
990
- * provider does not have to know that.
998
+ * storage's. Neither keeps the Node event loop alive, so a process that has
999
+ * stopped serving exits without this, but the timers run on until it does.
1000
+ * `getProxy().destroy()` reaches the same teardown; this exists so a caller
1001
+ * holding only the provider does not have to know that.
991
1002
  *
992
1003
  * Terminal: the provider will not serve again afterwards, and any later use
993
1004
  * throws rather than quietly building a replacement. Call it when the process
package/dist/ViteMCP.cjs CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
 
12
12
 
13
- var _chunk7MAOWIMRcjs = require('./chunk-7MAOWIMR.cjs');
13
+ var _chunkAOEXFXTHcjs = require('./chunk-AOEXFXTH.cjs');
14
14
 
15
15
 
16
16
 
@@ -25,7 +25,7 @@ var _chunk7MAOWIMRcjs = require('./chunk-7MAOWIMR.cjs');
25
25
 
26
26
 
27
27
 
28
- var _chunkT7EJGNI3cjs = require('./chunk-T7EJGNI3.cjs');
28
+ var _chunk7XWK66ZTcjs = require('./chunk-7XWK66ZT.cjs');
29
29
  require('./chunk-QPVEGWOL.cjs');
30
30
 
31
31
 
@@ -52,5 +52,5 @@ require('./chunk-QPVEGWOL.cjs');
52
52
 
53
53
 
54
54
 
55
- exports.AuthProvider = _chunkT7EJGNI3cjs.AuthProvider; exports.AzureProvider = _chunkT7EJGNI3cjs.AzureProvider; exports.DiscoveryDocumentCache = _chunk7MAOWIMRcjs.DiscoveryDocumentCache; exports.GitHubProvider = _chunkT7EJGNI3cjs.GitHubProvider; exports.GoogleProvider = _chunkT7EJGNI3cjs.GoogleProvider; exports.MEDIA_FETCH_TIMEOUT_MS = _chunk7MAOWIMRcjs.MEDIA_FETCH_TIMEOUT_MS; exports.OAuthProvider = _chunkT7EJGNI3cjs.OAuthProvider; exports.OAuthProxy = _chunkT7EJGNI3cjs.OAuthProxy; exports.OAuthProxyError = _chunkT7EJGNI3cjs.OAuthProxyError; exports.ServerState = _chunk7MAOWIMRcjs.ServerState; exports.UnexpectedStateError = _chunk7MAOWIMRcjs.UnexpectedStateError; exports.UserError = _chunk7MAOWIMRcjs.UserError; exports.ViteMCP = _chunk7MAOWIMRcjs.ViteMCP; exports.ViteMCPError = _chunk7MAOWIMRcjs.ViteMCPError; exports.audioContent = _chunk7MAOWIMRcjs.audioContent; exports.delay = _chunk7MAOWIMRcjs.delay; exports.getAuthSession = _chunkT7EJGNI3cjs.getAuthSession; exports.imageContent = _chunk7MAOWIMRcjs.imageContent; exports.jsonSchemaAdapter = _chunk7MAOWIMRcjs.jsonSchemaAdapter; exports.requireAll = _chunkT7EJGNI3cjs.requireAll; exports.requireAny = _chunkT7EJGNI3cjs.requireAny; exports.requireAuth = _chunkT7EJGNI3cjs.requireAuth; exports.requireRole = _chunkT7EJGNI3cjs.requireRole; exports.requireScopes = _chunkT7EJGNI3cjs.requireScopes;
55
+ exports.AuthProvider = _chunk7XWK66ZTcjs.AuthProvider; exports.AzureProvider = _chunk7XWK66ZTcjs.AzureProvider; exports.DiscoveryDocumentCache = _chunkAOEXFXTHcjs.DiscoveryDocumentCache; exports.GitHubProvider = _chunk7XWK66ZTcjs.GitHubProvider; exports.GoogleProvider = _chunk7XWK66ZTcjs.GoogleProvider; exports.MEDIA_FETCH_TIMEOUT_MS = _chunkAOEXFXTHcjs.MEDIA_FETCH_TIMEOUT_MS; exports.OAuthProvider = _chunk7XWK66ZTcjs.OAuthProvider; exports.OAuthProxy = _chunk7XWK66ZTcjs.OAuthProxy; exports.OAuthProxyError = _chunk7XWK66ZTcjs.OAuthProxyError; exports.ServerState = _chunkAOEXFXTHcjs.ServerState; exports.UnexpectedStateError = _chunkAOEXFXTHcjs.UnexpectedStateError; exports.UserError = _chunkAOEXFXTHcjs.UserError; exports.ViteMCP = _chunkAOEXFXTHcjs.ViteMCP; exports.ViteMCPError = _chunkAOEXFXTHcjs.ViteMCPError; exports.audioContent = _chunkAOEXFXTHcjs.audioContent; exports.delay = _chunkAOEXFXTHcjs.delay; exports.getAuthSession = _chunk7XWK66ZTcjs.getAuthSession; exports.imageContent = _chunkAOEXFXTHcjs.imageContent; exports.jsonSchemaAdapter = _chunkAOEXFXTHcjs.jsonSchemaAdapter; exports.requireAll = _chunk7XWK66ZTcjs.requireAll; exports.requireAny = _chunk7XWK66ZTcjs.requireAny; exports.requireAuth = _chunk7XWK66ZTcjs.requireAuth; exports.requireRole = _chunk7XWK66ZTcjs.requireRole; exports.requireScopes = _chunk7XWK66ZTcjs.requireScopes;
56
56
  //# sourceMappingURL=ViteMCP.cjs.map
@@ -4,8 +4,8 @@ import { StandardSchemaV1 } from '@standard-schema/spec';
4
4
  import { Hono } from 'hono';
5
5
  import { cors } from 'hono/cors';
6
6
  export { setTimeout as delay } from 'timers/promises';
7
- import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-CXNATtVg.cjs';
8
- export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, p as OAuthProxyError, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-CXNATtVg.cjs';
7
+ import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-AjmrLphi.cjs';
8
+ export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, p as OAuthProxyError, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-AjmrLphi.cjs';
9
9
 
10
10
  declare class DiscoveryDocumentCache {
11
11
  #private;
@@ -419,7 +419,9 @@ declare class ViteMCP<T extends ViteMCPAuth = ViteMCPAuth> {
419
419
  * every example does — can still reach it at shutdown. The provider holds an
420
420
  * `OAuthProxy` with two cleanup timers, and `stop()` deliberately leaves them
421
421
  * running: the server does not own the provider, and a stopped server can be
422
- * started again. Terminal teardown is therefore the caller's call:
422
+ * started again. The timers do not keep the process alive, so a stopped
423
+ * server lets it exit; they run on until the provider is destroyed, and
424
+ * terminal teardown is the caller's call:
423
425
  *
424
426
  * ```ts
425
427
  * await server.stop();
package/dist/ViteMCP.d.ts CHANGED
@@ -4,8 +4,8 @@ import { StandardSchemaV1 } from '@standard-schema/spec';
4
4
  import { Hono } from 'hono';
5
5
  import { cors } from 'hono/cors';
6
6
  export { setTimeout as delay } from 'timers/promises';
7
- import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-CXNATtVg.js';
8
- export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, p as OAuthProxyError, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-CXNATtVg.js';
7
+ import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-AjmrLphi.js';
8
+ export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, p as OAuthProxyError, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-AjmrLphi.js';
9
9
 
10
10
  declare class DiscoveryDocumentCache {
11
11
  #private;
@@ -419,7 +419,9 @@ declare class ViteMCP<T extends ViteMCPAuth = ViteMCPAuth> {
419
419
  * every example does — can still reach it at shutdown. The provider holds an
420
420
  * `OAuthProxy` with two cleanup timers, and `stop()` deliberately leaves them
421
421
  * running: the server does not own the provider, and a stopped server can be
422
- * started again. Terminal teardown is therefore the caller's call:
422
+ * started again. The timers do not keep the process alive, so a stopped
423
+ * server lets it exit; they run on until the provider is destroyed, and
424
+ * terminal teardown is the caller's call:
423
425
  *
424
426
  * ```ts
425
427
  * await server.stop();
package/dist/ViteMCP.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  delay,
11
11
  imageContent,
12
12
  jsonSchemaAdapter
13
- } from "./chunk-2O5Y2H74.js";
13
+ } from "./chunk-2JOXLIMJ.js";
14
14
  import {
15
15
  AuthProvider,
16
16
  AzureProvider,
@@ -25,7 +25,7 @@ import {
25
25
  requireAuth,
26
26
  requireRole,
27
27
  requireScopes
28
- } from "./chunk-F37DGG7F.js";
28
+ } from "./chunk-WOQXAQIG.js";
29
29
  import "./chunk-JMDI672G.js";
30
30
  export {
31
31
  AuthProvider,
@@ -24,7 +24,7 @@
24
24
 
25
25
 
26
26
 
27
- var _chunkT7EJGNI3cjs = require('../chunk-T7EJGNI3.cjs');
27
+ var _chunk7XWK66ZTcjs = require('../chunk-7XWK66ZT.cjs');
28
28
 
29
29
 
30
30
 
@@ -51,5 +51,5 @@ var _chunkT7EJGNI3cjs = require('../chunk-T7EJGNI3.cjs');
51
51
 
52
52
 
53
53
 
54
- exports.AuthProvider = _chunkT7EJGNI3cjs.AuthProvider; exports.AzureProvider = _chunkT7EJGNI3cjs.AzureProvider; exports.ConsentManager = _chunkT7EJGNI3cjs.ConsentManager; exports.DEFAULT_ACCESS_TOKEN_TTL = _chunkT7EJGNI3cjs.DEFAULT_ACCESS_TOKEN_TTL; exports.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH = _chunkT7EJGNI3cjs.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH; exports.DEFAULT_AUTHORIZATION_CODE_TTL = _chunkT7EJGNI3cjs.DEFAULT_AUTHORIZATION_CODE_TTL; exports.DEFAULT_REFRESH_TOKEN_TTL = _chunkT7EJGNI3cjs.DEFAULT_REFRESH_TOKEN_TTL; exports.DEFAULT_TRANSACTION_TTL = _chunkT7EJGNI3cjs.DEFAULT_TRANSACTION_TTL; exports.DiskStore = _chunkT7EJGNI3cjs.DiskStore; exports.EncryptedTokenStorage = _chunkT7EJGNI3cjs.EncryptedTokenStorage; exports.GitHubProvider = _chunkT7EJGNI3cjs.GitHubProvider; exports.GoogleProvider = _chunkT7EJGNI3cjs.GoogleProvider; exports.JWKSVerifier = _chunkT7EJGNI3cjs.JWKSVerifier; exports.JWTIssuer = _chunkT7EJGNI3cjs.JWTIssuer; exports.MemoryTokenStorage = _chunkT7EJGNI3cjs.MemoryTokenStorage; exports.OAuthProvider = _chunkT7EJGNI3cjs.OAuthProvider; exports.OAuthProxy = _chunkT7EJGNI3cjs.OAuthProxy; exports.OAuthProxyError = _chunkT7EJGNI3cjs.OAuthProxyError; exports.PKCEUtils = _chunkT7EJGNI3cjs.PKCEUtils; exports.getAuthSession = _chunkT7EJGNI3cjs.getAuthSession; exports.requireAll = _chunkT7EJGNI3cjs.requireAll; exports.requireAny = _chunkT7EJGNI3cjs.requireAny; exports.requireAuth = _chunkT7EJGNI3cjs.requireAuth; exports.requireRole = _chunkT7EJGNI3cjs.requireRole; exports.requireScopes = _chunkT7EJGNI3cjs.requireScopes;
54
+ exports.AuthProvider = _chunk7XWK66ZTcjs.AuthProvider; exports.AzureProvider = _chunk7XWK66ZTcjs.AzureProvider; exports.ConsentManager = _chunk7XWK66ZTcjs.ConsentManager; exports.DEFAULT_ACCESS_TOKEN_TTL = _chunk7XWK66ZTcjs.DEFAULT_ACCESS_TOKEN_TTL; exports.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH = _chunk7XWK66ZTcjs.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH; exports.DEFAULT_AUTHORIZATION_CODE_TTL = _chunk7XWK66ZTcjs.DEFAULT_AUTHORIZATION_CODE_TTL; exports.DEFAULT_REFRESH_TOKEN_TTL = _chunk7XWK66ZTcjs.DEFAULT_REFRESH_TOKEN_TTL; exports.DEFAULT_TRANSACTION_TTL = _chunk7XWK66ZTcjs.DEFAULT_TRANSACTION_TTL; exports.DiskStore = _chunk7XWK66ZTcjs.DiskStore; exports.EncryptedTokenStorage = _chunk7XWK66ZTcjs.EncryptedTokenStorage; exports.GitHubProvider = _chunk7XWK66ZTcjs.GitHubProvider; exports.GoogleProvider = _chunk7XWK66ZTcjs.GoogleProvider; exports.JWKSVerifier = _chunk7XWK66ZTcjs.JWKSVerifier; exports.JWTIssuer = _chunk7XWK66ZTcjs.JWTIssuer; exports.MemoryTokenStorage = _chunk7XWK66ZTcjs.MemoryTokenStorage; exports.OAuthProvider = _chunk7XWK66ZTcjs.OAuthProvider; exports.OAuthProxy = _chunk7XWK66ZTcjs.OAuthProxy; exports.OAuthProxyError = _chunk7XWK66ZTcjs.OAuthProxyError; exports.PKCEUtils = _chunk7XWK66ZTcjs.PKCEUtils; exports.getAuthSession = _chunk7XWK66ZTcjs.getAuthSession; exports.requireAll = _chunk7XWK66ZTcjs.requireAll; exports.requireAny = _chunk7XWK66ZTcjs.requireAny; exports.requireAuth = _chunk7XWK66ZTcjs.requireAuth; exports.requireRole = _chunk7XWK66ZTcjs.requireRole; exports.requireScopes = _chunk7XWK66ZTcjs.requireScopes;
55
55
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { q as OAuthTransaction, C as ConsentData, T as TokenStorage, s as TokenVerifier, t as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-CXNATtVg.cjs';
2
- export { A as AuthProvider, j as AuthProviderConfig, z as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, B as ClientCode, u as ClientIdMetadataOptions, E as CustomClaimsPassthroughConfig, F as DCRClientMetadata, H as DCRRequest, I as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, v as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, w as DEFAULT_AUTHORIZATION_CODE_TTL, x as DEFAULT_REFRESH_TOKEN_TTL, y as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, J as OAuthError, d as OAuthProvider, K as OAuthProviderConfig, a as OAuthProxy, L as OAuthProxyConfig, p as OAuthProxyError, O as OAuthSession, M as ProxyDCRClient, R as RefreshRequest, S as SessionAuth, N as TokenMapping, Q as TokenRequest, U as TokenResponse, V as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-CXNATtVg.cjs';
1
+ import { q as OAuthTransaction, C as ConsentData, T as TokenStorage, s as TokenVerifier, t as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-AjmrLphi.cjs';
2
+ export { A as AuthProvider, j as AuthProviderConfig, z as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, B as ClientCode, u as ClientIdMetadataOptions, E as CustomClaimsPassthroughConfig, F as DCRClientMetadata, H as DCRRequest, I as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, v as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, w as DEFAULT_AUTHORIZATION_CODE_TTL, x as DEFAULT_REFRESH_TOKEN_TTL, y as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, J as OAuthError, d as OAuthProvider, K as OAuthProviderConfig, a as OAuthProxy, L as OAuthProxyConfig, p as OAuthProxyError, O as OAuthSession, M as ProxyDCRClient, R as RefreshRequest, S as SessionAuth, N as TokenMapping, Q as TokenRequest, U as TokenResponse, V as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-AjmrLphi.cjs';
3
3
 
4
4
  /**
5
5
  * Consent Management
@@ -1,5 +1,5 @@
1
- import { q as OAuthTransaction, C as ConsentData, T as TokenStorage, s as TokenVerifier, t as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-CXNATtVg.js';
2
- export { A as AuthProvider, j as AuthProviderConfig, z as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, B as ClientCode, u as ClientIdMetadataOptions, E as CustomClaimsPassthroughConfig, F as DCRClientMetadata, H as DCRRequest, I as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, v as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, w as DEFAULT_AUTHORIZATION_CODE_TTL, x as DEFAULT_REFRESH_TOKEN_TTL, y as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, J as OAuthError, d as OAuthProvider, K as OAuthProviderConfig, a as OAuthProxy, L as OAuthProxyConfig, p as OAuthProxyError, O as OAuthSession, M as ProxyDCRClient, R as RefreshRequest, S as SessionAuth, N as TokenMapping, Q as TokenRequest, U as TokenResponse, V as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-CXNATtVg.js';
1
+ import { q as OAuthTransaction, C as ConsentData, T as TokenStorage, s as TokenVerifier, t as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-AjmrLphi.js';
2
+ export { A as AuthProvider, j as AuthProviderConfig, z as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, B as ClientCode, u as ClientIdMetadataOptions, E as CustomClaimsPassthroughConfig, F as DCRClientMetadata, H as DCRRequest, I as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, v as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, w as DEFAULT_AUTHORIZATION_CODE_TTL, x as DEFAULT_REFRESH_TOKEN_TTL, y as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, J as OAuthError, d as OAuthProvider, K as OAuthProviderConfig, a as OAuthProxy, L as OAuthProxyConfig, p as OAuthProxyError, O as OAuthSession, M as ProxyDCRClient, R as RefreshRequest, S as SessionAuth, N as TokenMapping, Q as TokenRequest, U as TokenResponse, V as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-AjmrLphi.js';
3
3
 
4
4
  /**
5
5
  * Consent Management
@@ -24,7 +24,7 @@ import {
24
24
  requireAuth,
25
25
  requireRole,
26
26
  requireScopes
27
- } from "../chunk-F37DGG7F.js";
27
+ } from "../chunk-WOQXAQIG.js";
28
28
  export {
29
29
  AuthProvider,
30
30
  AzureProvider,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withoutTrailingSlash
3
- } from "./chunk-F37DGG7F.js";
3
+ } from "./chunk-WOQXAQIG.js";
4
4
  import {
5
5
  formatBytes,
6
6
  ownKeysOnly,
@@ -606,7 +606,9 @@ var ViteMCP = class {
606
606
  * every example does — can still reach it at shutdown. The provider holds an
607
607
  * `OAuthProxy` with two cleanup timers, and `stop()` deliberately leaves them
608
608
  * running: the server does not own the provider, and a stopped server can be
609
- * started again. Terminal teardown is therefore the caller's call:
609
+ * started again. The timers do not keep the process alive, so a stopped
610
+ * server lets it exit; they run on until the provider is destroyed, and
611
+ * terminal teardown is the caller's call:
610
612
  *
611
613
  * ```ts
612
614
  * await server.stop();
@@ -1688,4 +1690,4 @@ export {
1688
1690
  ServerState,
1689
1691
  ViteMCP
1690
1692
  };
1691
- //# sourceMappingURL=chunk-2O5Y2H74.js.map
1693
+ //# sourceMappingURL=chunk-2JOXLIMJ.js.map