Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/accuracy/sdk/accuracyTestingClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,14 @@ export class AccuracyTestingClient {
return [`--${key}`, value];
});

const args = [MCP_SERVER_CLI_SCRIPT, "--connectionString", mdbConnectionString, ...additionalArgs];
const args = [MCP_SERVER_CLI_SCRIPT, mdbConnectionString, ...additionalArgs];
Copy link

Copilot AI Oct 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the --connectionString flag changes the CLI argument structure. The connection string is now passed as a positional argument instead of a named parameter. If the CLI expects --connectionString <value>, this will cause the server to fail to start or misinterpret arguments.

Suggested change
const args = [MCP_SERVER_CLI_SCRIPT, mdbConnectionString, ...additionalArgs];
const args = [MCP_SERVER_CLI_SCRIPT, "--connectionString", mdbConnectionString, ...additionalArgs];

Copilot uses AI. Check for mistakes.

const clientTransport = new StdioClientTransport({
command: process.execPath,
args,
env: {
Copy link

Copilot AI Oct 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The env object should include the existing environment variables to avoid breaking other functionality that may depend on them. Use { ...process.env, DO_NOT_TRACK: "1" } to preserve the parent process environment.

Suggested change
env: {
env: {
...process.env,

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree with Copilot

DO_NOT_TRACK: "1",
},
});

const client = await createMCPClient({
Expand Down
1 change: 0 additions & 1 deletion tests/integration/elicitation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { describeWithMongoDB } from "./tools/mongodb/mongodbHelpers.js";
function createTestConfig(config: Partial<UserConfig> = {}): UserConfig {
return {
...defaultTestConfig,
telemetry: "disabled",
// Add fake API credentials so Atlas tools get registered
apiClientId: "test-client-id",
apiClientSecret: "test-client-secret",
Expand Down
Loading