@@ -30,18 +30,26 @@ export interface ServerOptions {
3030 telemetry : Telemetry ;
3131 elicitation : Elicitation ;
3232 connectionErrorHandler : ConnectionErrorHandler ;
33- /** Custom tool constructors to register with the server.
34- * This will override any default tools. You can use both existing and custom tools by using the `mongodb-mcp-server/tools` export.
35- * ```ts
36- * import { AllTools, ToolBase } from "mongodb-mcp-server/tools";
37- * class CustomTool extends ToolBase {
38- * name = "custom_tool";
39- * ...
40- * }
41- * const server = new Server({
42- * tools: [...AllTools, CustomTool],
43- * });
44- * ```
33+ /**
34+ * Custom tool constructors to register with the server.
35+ * This will override any default tools. You can use both existing and custom tools by using the `mongodb-mcp-server/tools` export.
36+ *
37+ * ```ts
38+ * import { AllTools, ToolBase } from "mongodb-mcp-server/tools";
39+ * class CustomTool extends ToolBase {
40+ * name = "custom_tool";
41+ * // ...
42+ * }
43+ * const server = new Server({
44+ * session: mySession,
45+ * userConfig: myUserConfig,
46+ * mcpServer: myMcpServer,
47+ * telemetry: myTelemetry,
48+ * elicitation: myElicitation,
49+ * connectionErrorHandler: myConnectionErrorHandler,
50+ * tools: [...AllTools, CustomTool],
51+ * });
52+ * ```
4553 */
4654 tools ?: ( new ( params : ToolConstructorParams ) => ToolBase ) [ ] ;
4755}
0 commit comments