Skip to content

Commit 3425bb6

Browse files
committed
chore: fixup
1 parent 6c3e17a commit 3425bb6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/integration/tools/mongodb/mongodbTool.test.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,21 @@ describe("MongoDBTool implementations", () => {
113113
}
114114
);
115115

116+
const internalMcpServer = new McpServer({
117+
name: "test-server",
118+
version: "5.2.3",
119+
});
120+
const elicitation = new Elicitation({ server: internalMcpServer.server });
121+
116122
mcpServer = new Server({
117123
session,
118124
userConfig,
119125
telemetry,
120-
mcpServer: new McpServer({
121-
name: "test-server",
122-
version: "5.2.3",
123-
}),
126+
mcpServer: internalMcpServer,
124127
connectionErrorHandler: errorHandler,
128+
elicitation,
125129
});
126130

127-
const elicitation = new Elicitation({ server: mcpServer.server });
128-
129131
tool = new RandomTool({
130132
session,
131133
config: userConfig,

0 commit comments

Comments
 (0)