Skip to content

Commit 7cf9386

Browse files
committed
chore: add elicitation to helpers
1 parent faa2824 commit 7cf9386

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/integration/helpers.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { MCPConnectionManager } from "../../src/common/connectionManager.js";
1515
import { DeviceId } from "../../src/helpers/deviceId.js";
1616
import { connectionErrorHandler } from "../../src/common/connectionErrorHandler.js";
1717
import { Keychain } from "../../src/common/keychain.js";
18+
import { Elicitation } from "../../src/elicitation.js";
1819

1920
interface ParameterInfo {
2021
name: string;
@@ -96,14 +97,19 @@ export function setupIntegrationTest(
9697

9798
const telemetry = Telemetry.create(session, userConfig, deviceId);
9899

100+
const mcpServerInstance = new McpServer({
101+
name: "test-server",
102+
version: "5.2.3",
103+
});
104+
105+
const elicitation = new Elicitation({ server: mcpServerInstance.server });
106+
99107
mcpServer = new Server({
100108
session,
101109
userConfig,
102110
telemetry,
103-
mcpServer: new McpServer({
104-
name: "test-server",
105-
version: "5.2.3",
106-
}),
111+
mcpServer: mcpServerInstance,
112+
elicitation,
107113
connectionErrorHandler,
108114
});
109115

0 commit comments

Comments
 (0)