Skip to content

feat: support for OIDC connectivity between the MCP Server and a MongoDB Cluster MCP-84 #1548

feat: support for OIDC connectivity between the MCP Server and a MongoDB Cluster MCP-84

feat: support for OIDC connectivity between the MCP Server and a MongoDB Cluster MCP-84 #1548

Triggered via pull request August 13, 2025 09:39
@kmruizkmruiz
synchronize #450
chore/mcp-84
Status Failure
Total duration 12m 0s
Artifacts 3

code_health.yaml

on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
7m 35s
Run Atlas tests
Report Coverage
42s
Report Coverage
Fit to window
Zoom out
Zoom in

Annotations

32 errors, 20 warnings, and 3 notices
Run MongoDB tests (macos-latest)
Process completed with exit code 1.
tests/integration/tools/mongodb/connect/connect.test.ts > Connect tool when disabled > is not suggested when querying MongoDB disconnected: tests/integration/tools/mongodb/connect/connect.test.ts#L157
AssertionError: expected [ { type: 'text', …(1) }, …(2) ] to have a length of 2 but got 3 - Expected + Received - 2 + 3 ❯ tests/integration/tools/mongodb/connect/connect.test.ts:157:26
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 8.0.12 Enterprise :: device-flow: tests/integration/tools/mongodb/mongodbHelpers.ts#L147
Error: Failed to start cluster after 10 attempts ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:147:15
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 7.0.22 Enterprise :: device-flow: tests/integration/tools/mongodb/mongodbHelpers.ts#L147
Error: Failed to start cluster after 10 attempts ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:147:15
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 8.0.12 Enterprise :: auth-flow;nonce=true: tests/integration/tools/mongodb/mongodbHelpers.ts#L147
Error: Failed to start cluster after 10 attempts ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:147:15
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 8.0.12 Enterprise :: auth-flow;nonce=false: tests/integration/tools/mongodb/mongodbHelpers.ts#L147
Error: Failed to start cluster after 10 attempts ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:147:15
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 7.0.22 Enterprise :: auth-flow;nonce=true: tests/integration/tools/mongodb/mongodbHelpers.ts#L147
Error: Failed to start cluster after 10 attempts ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:147:15
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 7.0.22 Enterprise :: auth-flow;nonce=false: tests/integration/tools/mongodb/mongodbHelpers.ts#L147
Error: Failed to start cluster after 10 attempts ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:147:15
tests/unit/common/session.test.ts > Session > connectToMongoDB > should configure the proxy to use environment variables: tests/unit/common/session.test.ts#L77
AssertionError: expected undefined to deeply equal { useEnvironmentVariableProxies: true } - Expected: { "useEnvironmentVariableProxies": true, } + Received: undefined ❯ tests/unit/common/session.test.ts:77:45
Run MongoDB tests (ubuntu-latest)
Process completed with exit code 1.
tests/integration/tools/mongodb/connect/connect.test.ts > Connect tool when disabled > is not suggested when querying MongoDB disconnected: tests/integration/tools/mongodb/connect/connect.test.ts#L157
AssertionError: expected [ { type: 'text', …(1) }, …(2) ] to have a length of 2 but got 3 - Expected + Received - 2 + 3 ❯ tests/integration/tools/mongodb/connect/connect.test.ts:157:26
tests/unit/common/session.test.ts > Session > connectToMongoDB > should configure the proxy to use environment variables: tests/unit/common/session.test.ts#L77
AssertionError: expected undefined to deeply equal { useEnvironmentVariableProxies: true } - Expected: { "useEnvironmentVariableProxies": true, } + Received: undefined ❯ tests/unit/common/session.test.ts:77:45
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 7.0.22 Enterprise :: device-flow: tests/integration/tools/mongodb/mongodbHelpers.ts#L109
Error: Hook timed out in 120000ms. If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". ❯ setupMongoDBIntegrationTest tests/integration/tools/mongodb/mongodbHelpers.ts:109:5 ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:66:32
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 7.0.22 Enterprise :: auth-flow;nonce=true: tests/integration/tools/mongodb/mongodbHelpers.ts#L109
Error: Hook timed out in 120000ms. If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". ❯ setupMongoDBIntegrationTest tests/integration/tools/mongodb/mongodbHelpers.ts:109:5 ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:66:32
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 7.0.22 Enterprise :: auth-flow;nonce=false: tests/integration/tools/mongodb/mongodbHelpers.ts#L109
Error: Hook timed out in 120000ms. If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". ❯ setupMongoDBIntegrationTest tests/integration/tools/mongodb/mongodbHelpers.ts:109:5 ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:66:32
Run Atlas tests
Process completed with exit code 1.
tests/integration/tools/mongodb/connect/connect.test.ts > Connect tool when disabled > is not suggested when querying MongoDB disconnected: tests/integration/tools/mongodb/connect/connect.test.ts#L157
AssertionError: expected [ { type: 'text', …(1) }, …(2) ] to have a length of 2 but got 3 - Expected + Received - 2 + 3 ❯ tests/integration/tools/mongodb/connect/connect.test.ts:157:26
tests/integration/tools/atlas/clusters.test.ts > atlas > clusters > project > with project > atlas-connect-cluster > when not connected > prompts for atlas-connect-cluster when querying mongodb: tests/integration/tools/atlas/clusters.test.ts#L226
AssertionError: expected [ { type: 'text', …(1) }, …(2) ] to have a length of 2 but got 3 - Expected + Received - 2 + 3 ❯ tests/integration/tools/atlas/clusters.test.ts:226:38
tests/unit/common/session.test.ts > Session > connectToMongoDB > should configure the proxy to use environment variables: tests/unit/common/session.test.ts#L77
AssertionError: expected undefined to deeply equal { useEnvironmentVariableProxies: true } - Expected: { "useEnvironmentVariableProxies": true, } + Received: undefined ❯ tests/unit/common/session.test.ts:77:45
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 7.0.22 Enterprise :: device-flow: tests/integration/tools/mongodb/mongodbHelpers.ts#L109
Error: Hook timed out in 120000ms. If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". ❯ setupMongoDBIntegrationTest tests/integration/tools/mongodb/mongodbHelpers.ts:109:5 ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:66:32
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 7.0.22 Enterprise :: auth-flow;nonce=true: tests/integration/tools/mongodb/mongodbHelpers.ts#L109
Error: Hook timed out in 120000ms. If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". ❯ setupMongoDBIntegrationTest tests/integration/tools/mongodb/mongodbHelpers.ts:109:5 ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:66:32
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 7.0.22 Enterprise :: auth-flow;nonce=false: tests/integration/tools/mongodb/mongodbHelpers.ts#L109
Error: Hook timed out in 120000ms. If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". ❯ setupMongoDBIntegrationTest tests/integration/tools/mongodb/mongodbHelpers.ts:109:5 ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:66:32
Run MongoDB tests (windows-latest)
Process completed with exit code 1.
tests/integration/tools/mongodb/connect/connect.test.ts > Connect tool when disabled > is not suggested when querying MongoDB disconnected: tests/integration/tools/mongodb/connect/connect.test.ts#L157
AssertionError: expected [ { type: 'text', …(1) }, …(2) ] to have a length of 2 but got 3 - Expected + Received - 2 + 3 ❯ tests/integration/tools/mongodb/connect/connect.test.ts:157:26
tests/unit/common/session.test.ts > Session > connectToMongoDB > should configure the proxy to use environment variables: tests/unit/common/session.test.ts#L77
AssertionError: expected undefined to deeply equal { useEnvironmentVariableProxies: true } - Expected: { "useEnvironmentVariableProxies": true, } + Received: undefined ❯ tests/unit/common/session.test.ts:77:45
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 8.0.12 Enterprise :: device-flow: tests/integration/tools/mongodb/mongodbHelpers.ts#L147
Error: Failed to start cluster after 10 attempts ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:147:15
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 7.0.22 Enterprise :: device-flow: tests/integration/tools/mongodb/mongodbHelpers.ts#L147
Error: Failed to start cluster after 10 attempts ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:147:15
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 8.0.12 Enterprise :: auth-flow;nonce=true: tests/integration/tools/mongodb/mongodbHelpers.ts#L147
Error: Failed to start cluster after 10 attempts ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:147:15
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 8.0.12 Enterprise :: auth-flow;nonce=false: tests/integration/tools/mongodb/mongodbHelpers.ts#L109
Error: Hook timed out in 120000ms. If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". ❯ setupMongoDBIntegrationTest tests/integration/tools/mongodb/mongodbHelpers.ts:109:5 ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:66:32
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 7.0.22 Enterprise :: auth-flow;nonce=true: tests/integration/tools/mongodb/mongodbHelpers.ts#L147
Error: Failed to start cluster after 10 attempts ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:147:15
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 7.0.22 Enterprise :: auth-flow;nonce=false: tests/integration/tools/mongodb/mongodbHelpers.ts#L109
Error: Hook timed out in 120000ms. If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". ❯ setupMongoDBIntegrationTest tests/integration/tools/mongodb/mongodbHelpers.ts:109:5 ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:66: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 (macos-latest)
No ALTQ support in kernel ALTQ related functions disabled pf enabled
Run MongoDB tests (macos-latest)
No ALTQ support in kernel ALTQ related functions disabled
Run MongoDB tests (macos-latest)
pfctl: Use of -f option, could result in flushing of rules present in the main ruleset added by the system at startup. See /etc/pf.conf for further details.
Run MongoDB tests (macos-latest)
YES (0)
Run MongoDB tests (macos-latest)
[notice] A new release of pip is available: 25.1.1 -> 25.2 [notice] To update, run: /Users/mitmproxyuser/venv/bin/python3.13 -m pip install --upgrade pip
Run MongoDB tests (macos-latest)
2025-08-13 09:39:46.981 sysadminctl[1272:7383] Creating home directory at /Users/mitmproxyuser
Run MongoDB tests (macos-latest)
2025-08-13 09:39:46.932 sysadminctl[1272:7383] Assigning UID: 502 GID: 20
Run MongoDB tests (macos-latest)
2025-08-13 09:39:46.809 sysadminctl[1272:7383] Creating user record…
Run MongoDB tests (macos-latest)
IOServiceMatchingfailed for: AppleM2ScalerCSCDriver
Run MongoDB tests (macos-latest)
2025-08-13 09:39:46.297 sysadminctl[1272:7383] ---------------------------- 2025-08-13 09:39:46.297 sysadminctl[1272:7383] No clear text password or interactive option was specified (adduser, change/reset password will not allow user to use FDE) ! 2025-08-13 09:39:46.297 sysadminctl[1272:7383] ----------------------------
Run MongoDB tests (ubuntu-latest)
No files were found with the provided path: coverage/lcov.info. No artifacts will be uploaded.
Run MongoDB tests (ubuntu-latest)
1 added, 0 removed; done.
Run MongoDB tests (ubuntu-latest)
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
Run MongoDB tests (ubuntu-latest)
Updating certificates in /etc/ssl/certs...
Run MongoDB tests (ubuntu-latest)
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Run Atlas tests
No files were found with the provided path: coverage/lcov.info. No artifacts will be uploaded.
Run Atlas tests
1 added, 0 removed; done.
Run Atlas tests
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
Run Atlas tests
Updating certificates in /etc/ssl/certs...
Run Atlas tests
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Run MongoDB tests (macos-latest)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
Run MongoDB tests (macos-latest)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
Run MongoDB tests (windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677

Artifacts

Produced during runtime
Name Size Digest
run-atlas-tests-permissions-6469b2b83a3b286cb5c4fed9663f8942
140 Bytes
sha256:1335561e8bd465a79949adb2b4900d7a1f58a7c6b85b47f9243246c3f79013e4
run-tests-permissions-359eb6c6e848f6a597ca577702f58b68
140 Bytes
sha256:8f55e3b2a5bcab549f5c852d13db16e1017219f49aa3561cdb1be66038e05e4a
run-tests-permissions-9ac135ea92b3e4ec4a2603cebae22297
140 Bytes
sha256:86b2eb4db2d838b27c2386e0796b0c1e6ce4db08c35f9f231fcb360f467b574b