Skip to content

Commit d9eb369

Browse files
chore: updated exports for library
1 parent 7dd8ff4 commit d9eb369

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/lib.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
export { Server, type ServerOptions } from "./server.js";
22
export { Session, type SessionOptions } from "./common/session.js";
3-
export { type UserConfig } from "./common/config/userConfig.js";
3+
export { type UserConfig, UserConfigSchema } from "./common/config/userConfig.js";
4+
export { createUserConfig as parseCliArgumentsAsUserConfig } from "./common/config/createUserConfig.js";
45
export { LoggerBase, type LogPayload, type LoggerType, type LogLevel } from "./common/logger.js";
56
export { StreamableHttpRunner } from "./transports/streamableHttp.js";
67
export { StdioRunner } from "./transports/stdio.js";
78
export { TransportRunnerBase, type TransportRunnerConfig } from "./transports/base.js";
89
export {
910
ConnectionManager,
1011
ConnectionStateConnected,
12+
createMCPConnectionManager,
1113
type AnyConnectionState,
1214
type ConnectionState,
1315
type ConnectionStateDisconnected,
1416
type ConnectionStateErrored,
1517
type ConnectionManagerFactoryFn,
1618
} from "./common/connectionManager.js";
17-
export type {
18-
ConnectionErrorHandler,
19-
ConnectionErrorHandled,
20-
ConnectionErrorUnhandled,
21-
ConnectionErrorHandlerContext,
19+
export {
20+
connectionErrorHandler,
21+
type ConnectionErrorHandler,
22+
type ConnectionErrorHandled,
23+
type ConnectionErrorUnhandled,
24+
type ConnectionErrorHandlerContext,
2225
} from "./common/connectionErrorHandler.js";
23-
export { ErrorCodes } from "./common/errors.js";
26+
export { ErrorCodes, MongoDBError } from "./common/errors.js";
2427
export { Telemetry } from "./telemetry/telemetry.js";
2528
export { Keychain, registerGlobalSecretToRedact } from "./common/keychain.js";
2629
export type { Secret } from "./common/keychain.js";

0 commit comments

Comments
 (0)