Skip to content

feat: add ability to override parameters using HTTP headers MCP-293 #727

feat: add ability to override parameters using HTTP headers MCP-293

feat: add ability to override parameters using HTTP headers MCP-293 #727

Triggered via pull request November 25, 2025 17:59
Status Failure
Total duration 3m 38s
Artifacts 6

code-health.yml

on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
2m 25s
Run Atlas tests
Run Atlas Local tests
1m 59s
Run Atlas Local tests
Run git secrets
1m 11s
Run git secrets
Report Coverage
21s
Report Coverage
Fit to window
Zoom out
Zoom in

Annotations

16 errors and 1 warning
Run MongoDB tests (macos-latest)
Process completed with exit code 1.
tests/unit/common/config/configOverrides.test.ts > configOverrides > applyConfigOverrides > custom overrides > should throw when trying to override disableEmbeddingsValidation from false to true: tests/unit/common/config/configOverrides.test.ts#L312
AssertionError: expected [Function] to throw error including 'Cannot apply override for disableEmbe…' but got 'Invalid config key: disableEmbeddings…' Expected: "Cannot apply override for disableEmbeddingsValidation: Can only set to false" Received: "Invalid config key: disableEmbeddingsValidation" ❯ tests/unit/common/config/configOverrides.test.ts:312:19
tests/unit/common/config/configOverrides.test.ts > configOverrides > applyConfigOverrides > custom overrides > should allow disableEmbeddingsValidation override from true to false: src/common/config/configOverrides.ts#L98
Error: Invalid config key: disableEmbeddingsValidation ❯ assertValidConfigKey src/common/config/configOverrides.ts:98:15 ❯ extractConfigOverrides src/common/config/configOverrides.ts:85:9 ❯ applyConfigOverrides src/common/config/configOverrides.ts:35:34 ❯ tests/unit/common/config/configOverrides.test.ts:298:32
tests/unit/common/config/configOverrides.test.ts > configOverrides > applyConfigOverrides > custom overrides > should have certain config keys to be conditionally overridden: tests/unit/common/config/configOverrides.test.ts#L252
AssertionError: expected [ 'readOnly', 'indexCheck', …(5) ] to deeply equal [ 'readOnly', 'indexCheck', …(6) ] - Expected + Received @@ -3,8 +3,7 @@ "indexCheck", "idleTimeoutMs", "notificationTimeoutMs", "exportTimeoutMs", "atlasTemporaryDatabaseUserLifetimeMs", - "disableEmbeddingsValidation", "previewFeatures", ] ❯ tests/unit/common/config/configOverrides.test.ts:252:19
tests/unit/common/config/configOverrides.test.ts > configOverrides > applyConfigOverrides > secret fields > should allow overriding secret fields with headers if they have override behavior: src/common/config/configOverrides.ts#L171
Error: Config key voyageApiKey is not allowed to be overridden ❯ applyOverride src/common/config/configOverrides.ts:171:19 ❯ applyConfigOverrides src/common/config/configOverrides.ts:44:26 ❯ tests/unit/common/config/configOverrides.test.ts:226:32
Run MongoDB tests (windows-latest)
Process completed with exit code 1.
tests/unit/common/config/configOverrides.test.ts > configOverrides > applyConfigOverrides > custom overrides > should throw when trying to override disableEmbeddingsValidation from false to true: tests/unit/common/config/configOverrides.test.ts#L312
AssertionError: expected [Function] to throw error including 'Cannot apply override for disableEmbe…' but got 'Invalid config key: disableEmbeddings…' Expected: "Cannot apply override for disableEmbeddingsValidation: Can only set to false" Received: "Invalid config key: disableEmbeddingsValidation" ❯ tests/unit/common/config/configOverrides.test.ts:312:19
tests/unit/common/config/configOverrides.test.ts > configOverrides > applyConfigOverrides > custom overrides > should allow disableEmbeddingsValidation override from true to false: src/common/config/configOverrides.ts#L98
Error: Invalid config key: disableEmbeddingsValidation ❯ assertValidConfigKey src/common/config/configOverrides.ts:98:15 ❯ extractConfigOverrides src/common/config/configOverrides.ts:85:9 ❯ applyConfigOverrides src/common/config/configOverrides.ts:35:34 ❯ tests/unit/common/config/configOverrides.test.ts:298:32
tests/unit/common/config/configOverrides.test.ts > configOverrides > applyConfigOverrides > custom overrides > should have certain config keys to be conditionally overridden: tests/unit/common/config/configOverrides.test.ts#L252
AssertionError: expected [ 'readOnly', 'indexCheck', …(5) ] to deeply equal [ 'readOnly', 'indexCheck', …(6) ] - Expected + Received @@ -3,8 +3,7 @@ "indexCheck", "idleTimeoutMs", "notificationTimeoutMs", "exportTimeoutMs", "atlasTemporaryDatabaseUserLifetimeMs", - "disableEmbeddingsValidation", "previewFeatures", ] ❯ tests/unit/common/config/configOverrides.test.ts:252:19
tests/unit/common/config/configOverrides.test.ts > configOverrides > applyConfigOverrides > secret fields > should allow overriding secret fields with headers if they have override behavior: src/common/config/configOverrides.ts#L171
Error: Config key voyageApiKey is not allowed to be overridden ❯ applyOverride src/common/config/configOverrides.ts:171:19 ❯ applyConfigOverrides src/common/config/configOverrides.ts:44:26 ❯ tests/unit/common/config/configOverrides.test.ts:226:32
Run MongoDB tests (ubuntu-latest)
Process completed with exit code 1.
tests/unit/common/config/configOverrides.test.ts > configOverrides > applyConfigOverrides > custom overrides > should throw when trying to override disableEmbeddingsValidation from false to true: tests/unit/common/config/configOverrides.test.ts#L312
AssertionError: expected [Function] to throw error including 'Cannot apply override for disableEmbe…' but got 'Invalid config key: disableEmbeddings…' Expected: "Cannot apply override for disableEmbeddingsValidation: Can only set to false" Received: "Invalid config key: disableEmbeddingsValidation" ❯ tests/unit/common/config/configOverrides.test.ts:312:19
tests/unit/common/config/configOverrides.test.ts > configOverrides > applyConfigOverrides > custom overrides > should allow disableEmbeddingsValidation override from true to false: src/common/config/configOverrides.ts#L98
Error: Invalid config key: disableEmbeddingsValidation ❯ assertValidConfigKey src/common/config/configOverrides.ts:98:15 ❯ extractConfigOverrides src/common/config/configOverrides.ts:85:9 ❯ applyConfigOverrides src/common/config/configOverrides.ts:35:34 ❯ tests/unit/common/config/configOverrides.test.ts:298:32
tests/unit/common/config/configOverrides.test.ts > configOverrides > applyConfigOverrides > custom overrides > should have certain config keys to be conditionally overridden: tests/unit/common/config/configOverrides.test.ts#L252
AssertionError: expected [ 'readOnly', 'indexCheck', …(5) ] to deeply equal [ 'readOnly', 'indexCheck', …(6) ] - Expected + Received @@ -3,8 +3,7 @@ "indexCheck", "idleTimeoutMs", "notificationTimeoutMs", "exportTimeoutMs", "atlasTemporaryDatabaseUserLifetimeMs", - "disableEmbeddingsValidation", "previewFeatures", ] ❯ tests/unit/common/config/configOverrides.test.ts:252:19
tests/unit/common/config/configOverrides.test.ts > configOverrides > applyConfigOverrides > secret fields > should allow overriding secret fields with headers if they have override behavior: src/common/config/configOverrides.ts#L171
Error: Config key voyageApiKey is not allowed to be overridden ❯ applyOverride src/common/config/configOverrides.ts:171:19 ❯ applyConfigOverrides src/common/config/configOverrides.ts:44:26 ❯ tests/unit/common/config/configOverrides.test.ts:226:32
Report Coverage
Unable to download artifact(s): Artifact not found for name: test-results Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact. For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md
Run MongoDB tests (ubuntu-latest)
No files were found with the provided path: coverage/lcov.info. No artifacts will be uploaded.

Artifacts

Produced during runtime
Name Size Digest
atlas-local-test-results
18 KB
sha256:e802c9b190ff63d39c6578302c722ee0de1a41d3cb7b9411cb3aba89e3f3de39
atlas-test-results
19.7 KB
sha256:b6f14607578544586144b5ef0e5419a1e1e4b5fb32597c6381bfed82ecfb5925
run-atlas-local-tests-permissions-fa04ecf1e11fb65b845cc2e3892ab892
140 Bytes
sha256:7466c3ce42abc52c51a4c1baa8ed0d4cf44edd3a079d4ca4783c75eb2be2fa57
run-atlas-tests-permissions-009fb8d288a890a5d18b0e401694fed0
140 Bytes
sha256:dbe2ea64f1205877537e9be4ce085fb096cf4d35722fe342136231773fcf15a2
run-git-secrets-permissions-bba1343f89fa464a254e859f5605758b
140 Bytes
sha256:aaa829da5d62d9f7c45b16cd6a04f5ab3b45c01e64ad0d4df4de5659e23e4ed8
run-tests-permissions-3905babf85a2adce7d40871d7ac88d5d
140 Bytes
sha256:1cc3fa47a35e8398e0cca59822ef0ccfc56acdb5b56148cc43206907cbae832e