Skip to content

feat: support working with autoembed indexes in MCP #920

feat: support working with autoembed indexes in MCP

feat: support working with autoembed indexes in MCP #920

Triggered via pull request December 12, 2025 16:09
Status Failure
Total duration 4m 9s
Artifacts 5

code-health.yml

on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
2m 22s
Run Atlas tests
Run Atlas Local tests
3m 29s
Run Atlas Local tests
Run git secrets
55s
Run git secrets
Report Coverage
26s
Report Coverage
Fit to window
Zoom out
Zoom in

Annotations

33 errors and 2 warnings
tests/unit/common/search/vectorSearchEmbeddingsManager.test.ts > VectorSearchEmbeddingsManager > embedding retrieval > when the embeddings have not been cached > retrieves the list of vector search indexes for that collection from the cluster: tests/unit/common/search/vectorSearchEmbeddingsManager.test.ts#L180
AssertionError: expected [] to deep equally contain { type: 'vector', …(3) } - Expected: { "numDimensions": 1536, "path": "plot_embedding", "similarity": "euclidean", "type": "vector", } + Received: [] ❯ tests/unit/common/search/vectorSearchEmbeddingsManager.test.ts:180:32
tests/unit/common/session.test.ts > Session > assertSearchSupported > should throw if it is not supported: tests/unit/common/session.test.ts#L197
AssertionError: expected a thrown error to be Error: Atlas Search is not supported in t… { code: … } - Expected + Received - MongoDBError { - "message": "Atlas Search is not supported in the current cluster.", - "code": 1000004, + TypeError { + "message": "this.serviceProvider.dropDatabase is not a function", } ❯ tests/unit/common/session.test.ts:197:13
tests/unit/common/session.test.ts > Session > assertSearchSupported > should not throw if it is available: tests/unit/common/session.test.ts#L187
AssertionError: promise rejected "TypeError: this.serviceProvider.dropDatab…" instead of resolving ❯ tests/unit/common/session.test.ts:187:57 Caused by: Caused by: TypeError: this.serviceProvider.dropDatabase is not a function ❯ ConnectionStateConnected.populateConnectionMetadata src/common/connectionManager.ts:109:40 ❯ ConnectionStateConnected.isSearchSupported src/common/connectionManager.ts:115:24 ❯ Session.isSearchSupported src/common/session.ts:166:32 ❯ Session.assertSearchSupported src/common/session.ts:173:46 ❯ tests/unit/common/session.test.ts:187:34
tests/unit/common/session.test.ts > Session > getSearchIndexAvailability > should return 'available' if listing search indexes succeed and create search indexes succeed: tests/unit/common/session.test.ts#L156
AssertionError: expected false to be truthy - Expected + Received - true + false ❯ tests/unit/common/session.test.ts:156:55
Run Atlas Local tests
Process completed with exit code 1.
tests/integration/tools/atlas-local/connectDeployment.test.ts > atlas-local-connect-deployment with deployments > should be able to insert and read data after connecting: tests/integration/tools/atlas-local/connectDeployment.test.ts#L113
AssertionError: expected 'Error running insert-many: The databa…' to contain 'Documents were inserted successfully.' Expected: "Documents were inserted successfully." Received: "Error running insert-many: The database is currently being dropped. Database: #mongodb-mcp" ❯ tests/integration/tools/atlas-local/connectDeployment.test.ts:113:41
tests/unit/common/search/vectorSearchEmbeddingsManager.test.ts > VectorSearchEmbeddingsManager > embedding retrieval > when the embeddings have not been cached > retrieves the list of vector search indexes for that collection from the cluster: tests/unit/common/search/vectorSearchEmbeddingsManager.test.ts#L180
AssertionError: expected [] to deep equally contain { type: 'vector', …(3) } - Expected: { "numDimensions": 1536, "path": "plot_embedding", "similarity": "euclidean", "type": "vector", } + Received: [] ❯ tests/unit/common/search/vectorSearchEmbeddingsManager.test.ts:180:32
tests/unit/common/session.test.ts > Session > assertSearchSupported > should throw if it is not supported: tests/unit/common/session.test.ts#L197
AssertionError: expected a thrown error to be Error: Atlas Search is not supported in t… { code: … } - Expected + Received - MongoDBError { - "message": "Atlas Search is not supported in the current cluster.", - "code": 1000004, + TypeError { + "message": "this.serviceProvider.dropDatabase is not a function", } ❯ tests/unit/common/session.test.ts:197:13
tests/unit/common/session.test.ts > Session > assertSearchSupported > should not throw if it is available: tests/unit/common/session.test.ts#L187
AssertionError: promise rejected "TypeError: this.serviceProvider.dropDatab…" instead of resolving ❯ tests/unit/common/session.test.ts:187:57 Caused by: Caused by: TypeError: this.serviceProvider.dropDatabase is not a function ❯ ConnectionStateConnected.populateConnectionMetadata src/common/connectionManager.ts:109:40 ❯ ConnectionStateConnected.isSearchSupported src/common/connectionManager.ts:115:24 ❯ Session.isSearchSupported src/common/session.ts:166:32 ❯ Session.assertSearchSupported src/common/session.ts:173:46 ❯ tests/unit/common/session.test.ts:187:34
tests/unit/common/session.test.ts > Session > getSearchIndexAvailability > should return 'available' if listing search indexes succeed and create search indexes succeed: tests/unit/common/session.test.ts#L156
AssertionError: expected false to be truthy - Expected + Received - true + false ❯ tests/unit/common/session.test.ts:156:55
tests/unit/common/search/vectorSearchEmbeddingsManager.test.ts > VectorSearchEmbeddingsManager > embedding retrieval > when the embeddings have not been cached > retrieves the list of vector search indexes for that collection from the cluster: tests/unit/common/search/vectorSearchEmbeddingsManager.test.ts#L180
AssertionError: expected [] to deep equally contain { type: 'vector', …(3) } - Expected: { "numDimensions": 1536, "path": "plot_embedding", "similarity": "euclidean", "type": "vector", } + Received: [] ❯ tests/unit/common/search/vectorSearchEmbeddingsManager.test.ts:180:32
tests/unit/common/session.test.ts > Session > assertSearchSupported > should throw if it is not supported: tests/unit/common/session.test.ts#L197
AssertionError: expected a thrown error to be Error: Atlas Search is not supported in t… { code: … } - Expected + Received - MongoDBError { - "message": "Atlas Search is not supported in the current cluster.", - "code": 1000004, + TypeError { + "message": "this.serviceProvider.dropDatabase is not a function", } ❯ tests/unit/common/session.test.ts:197:13
tests/unit/common/session.test.ts > Session > assertSearchSupported > should not throw if it is available: tests/unit/common/session.test.ts#L187
AssertionError: promise rejected "TypeError: this.serviceProvider.dropDatab…" instead of resolving ❯ tests/unit/common/session.test.ts:187:57 Caused by: Caused by: TypeError: this.serviceProvider.dropDatabase is not a function ❯ ConnectionStateConnected.populateConnectionMetadata src/common/connectionManager.ts:109:40 ❯ ConnectionStateConnected.isSearchSupported src/common/connectionManager.ts:115:24 ❯ Session.isSearchSupported src/common/session.ts:166:32 ❯ Session.assertSearchSupported src/common/session.ts:173:46 ❯ tests/unit/common/session.test.ts:187:34
tests/unit/common/session.test.ts > Session > getSearchIndexAvailability > should return 'available' if listing search indexes succeed and create search indexes succeed: tests/unit/common/session.test.ts#L156
AssertionError: expected false to be truthy - Expected + Received - true + false ❯ tests/unit/common/session.test.ts:156:55
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 Atlas Local tests
No files were found with the provided path: coverage/lcov.info. No artifacts will be uploaded.
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-test-results
20.9 KB
sha256:cb855332ff11209d46a2e7b30a81b9a594ee6236bf9730c91ad79149767e14e7
run-atlas-local-tests-permissions-1d9eefdb14f5cadf560f16e70a27f440
140 Bytes
sha256:b9f95e89ebffe0f159b6cbd6a3693fcda827cef3507632ad5a213e9176af4fc5
run-atlas-tests-permissions-ba4e38228e6dae89658a9b8116f699ae
140 Bytes
sha256:ee78533e2c45162910f1cb5d1050e555519e44c7d124ca9e00b00804cdc60378
run-git-secrets-permissions-4bb1e99892dd20face32fcbc36e59cc6
140 Bytes
sha256:1453ac8bd6fec540c21b6f42f70af5dd2ef7d0125aeb5f22b39a90163cdf7650
run-tests-permissions-ec289a44ce88c75c6b13a7fd640e2dbc
140 Bytes
sha256:4c174fd32d72bd8585f3a47cf7eccffb407c4c3bffd985177116061de1e8f531