Skip to content

Conversation

@nirinchev
Copy link
Collaborator

Proposed changes

Checklist

@nirinchev nirinchev requested a review from a team as a code owner October 28, 2025 10:34
Copilot AI review requested due to automatic review settings October 28, 2025 10:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR disables telemetry in accuracy tests by setting the DO_NOT_TRACK environment variable and removes the --connectionString flag from the MCP server CLI arguments.

  • Removes telemetry: "disabled" from integration test configuration
  • Adds DO_NOT_TRACK: "1" environment variable to accuracy test client
  • Removes --connectionString flag from CLI arguments in accuracy tests

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
tests/integration/elicitation.test.ts Removes explicit telemetry disabling from test configuration
tests/accuracy/sdk/accuracyTestingClient.ts Sets DO_NOT_TRACK environment variable and removes --connectionString flag from CLI args

});

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

@nirinchev nirinchev merged commit 38353c7 into main Oct 29, 2025
19 checks passed
@nirinchev nirinchev deleted the ni/telemetry branch October 29, 2025 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants