|
1 | | -export * from './client/auth.js'; |
2 | | -export * from './client/authExtensions.js'; |
3 | | -export * from './client/client.js'; |
4 | | -export * from './client/middleware.js'; |
5 | | -export * from './client/sse.js'; |
6 | | -export * from './client/stdio.js'; |
7 | | -export * from './client/streamableHttp.js'; |
8 | | -export * from './client/websocket.js'; |
| 1 | +// Client-specific exports |
| 2 | +export type { |
| 3 | + AddClientAuthentication, |
| 4 | + AuthResult, |
| 5 | + ClientAuthMethod, |
| 6 | + OAuthClientProvider, |
| 7 | + OAuthDiscoveryState, |
| 8 | + OAuthServerInfo |
| 9 | +} from './client/auth.js'; |
| 10 | +export { |
| 11 | + auth, |
| 12 | + buildDiscoveryUrls, |
| 13 | + discoverAuthorizationServerMetadata, |
| 14 | + discoverOAuthMetadata, |
| 15 | + discoverOAuthProtectedResourceMetadata, |
| 16 | + discoverOAuthServerInfo, |
| 17 | + exchangeAuthorization, |
| 18 | + extractResourceMetadataUrl, |
| 19 | + extractWWWAuthenticateParams, |
| 20 | + fetchToken, |
| 21 | + isHttpsUrl, |
| 22 | + parseErrorResponse, |
| 23 | + prepareAuthorizationCodeRequest, |
| 24 | + refreshAuthorization, |
| 25 | + registerClient, |
| 26 | + selectClientAuthMethod, |
| 27 | + selectResourceURL, |
| 28 | + startAuthorization, |
| 29 | + UnauthorizedError |
| 30 | +} from './client/auth.js'; |
| 31 | +export type { |
| 32 | + ClientCredentialsProviderOptions, |
| 33 | + PrivateKeyJwtProviderOptions, |
| 34 | + StaticPrivateKeyJwtProviderOptions |
| 35 | +} from './client/authExtensions.js'; |
| 36 | +export { |
| 37 | + ClientCredentialsProvider, |
| 38 | + createPrivateKeyJwtAuth, |
| 39 | + PrivateKeyJwtProvider, |
| 40 | + StaticPrivateKeyJwtProvider |
| 41 | +} from './client/authExtensions.js'; |
| 42 | +export type { ClientOptions } from './client/client.js'; |
| 43 | +export { Client } from './client/client.js'; |
| 44 | +export { getSupportedElicitationModes } from './client/client.js'; |
| 45 | +export type { LoggingOptions, Middleware, RequestLogger } from './client/middleware.js'; |
| 46 | +export { applyMiddlewares, createMiddleware, withLogging, withOAuth } from './client/middleware.js'; |
| 47 | +export type { SSEClientTransportOptions } from './client/sse.js'; |
| 48 | +export { SSEClientTransport, SseError } from './client/sse.js'; |
| 49 | +export type { StdioServerParameters } from './client/stdio.js'; |
| 50 | +export { DEFAULT_INHERITED_ENV_VARS, getDefaultEnvironment, StdioClientTransport } from './client/stdio.js'; |
| 51 | +export type { StartSSEOptions, StreamableHTTPClientTransportOptions, StreamableHTTPReconnectionOptions } from './client/streamableHttp.js'; |
| 52 | +export { StreamableHTTPClientTransport } from './client/streamableHttp.js'; |
| 53 | +export { WebSocketClientTransport } from './client/websocket.js'; |
9 | 54 |
|
10 | 55 | // experimental exports |
11 | 56 | export * from './experimental/index.js'; |
12 | 57 |
|
13 | | -// re-export shared types |
14 | | -export * from '@modelcontextprotocol/core'; |
| 58 | +// re-export curated public API from core |
| 59 | +export * from '@modelcontextprotocol/core/public'; |
0 commit comments