Skip to content

chore: improve ability to use custom tools MCP-295 #623

chore: improve ability to use custom tools MCP-295

chore: improve ability to use custom tools MCP-295 #623

Triggered via pull request November 17, 2025 13:19
Status Failure
Total duration 8m 45s
Artifacts 6

code-health.yml

on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
2m 14s
Run Atlas tests
Run Atlas Local tests
3m 54s
Run Atlas Local tests
Run git secrets
1m 8s
Run git secrets
Report Coverage
47s
Report Coverage
Fit to window
Zoom out
Zoom in

Annotations

26 errors and 13 warnings
Run MongoDB tests (macos-latest)
Process completed with exit code 1.
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > resolveTelemetryMetadata > should return metadata with connection_auth_type when connected via connection string: tests/integration/inMemoryTransport.ts#L24
McpError: MCP error -32602: MCP error -32602: Tool Random not found ❯ Client._onresponse node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27 ❯ InMemoryTransport._transport.onmessage node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22 ❯ Object.write tests/integration/inMemoryTransport.ts:24:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: -32602, data: undefined }
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > resolveTelemetryMetadata > should return empty metadata when not connected: tests/integration/helpers.ts#L336
AssertionError: expected undefined to be defined ❯ expectDefined tests/integration/helpers.ts:336:17 ❯ tests/integration/tools/mongodb/mongodbTool.test.ts:333:13
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > when a tool is not usable > should not even be registered: tests/integration/tools/mongodb/mongodbTool.test.ts#L324
AssertionError: expected [ { name: 'connect', …(5) }, …(21) ] to have a length of 1 but got 22 - Expected + Received - 1 + 22 ❯ tests/integration/tools/mongodb/mongodbTool.test.ts:324:34
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > when MCP is using injected connection error handler > and comes across a MongoDB Error - MisconfiguredConnectionString > should handle the error: tests/integration/inMemoryTransport.ts#L24
McpError: MCP error -32602: MCP error -32602: Tool Random not found ❯ Client._onresponse node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27 ❯ InMemoryTransport._transport.onmessage node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22 ❯ Object.write tests/integration/inMemoryTransport.ts:24:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: -32602, data: undefined }
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > when MCP is using injected connection error handler > and comes across a MongoDB Error - NotConnectedToMongoDB > should handle the error: tests/integration/inMemoryTransport.ts#L24
McpError: MCP error -32602: MCP error -32602: Tool Random not found ❯ Client._onresponse node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27 ❯ InMemoryTransport._transport.onmessage node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22 ❯ Object.write tests/integration/inMemoryTransport.ts:24:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: -32602, data: undefined }
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > when MCP is using default connection error handler > and comes across a MongoDB Error - MisconfiguredConnectionString > should handle the error: tests/integration/inMemoryTransport.ts#L24
McpError: MCP error -32602: MCP error -32602: Tool Random not found ❯ Client._onresponse node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27 ❯ InMemoryTransport._transport.onmessage node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22 ❯ Object.write tests/integration/inMemoryTransport.ts:24:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: -32602, data: undefined }
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > when MCP is using default connection error handler > and comes across a MongoDB Error - NotConnectedToMongoDB > should handle the error: tests/integration/inMemoryTransport.ts#L24
McpError: MCP error -32602: MCP error -32602: Tool Random not found ❯ Client._onresponse node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27 ❯ InMemoryTransport._transport.onmessage node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22 ❯ Object.write tests/integration/inMemoryTransport.ts:24:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: -32602, data: undefined }
Run MongoDB tests (ubuntu-latest)
Process completed with exit code 1.
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > resolveTelemetryMetadata > should return metadata with connection_auth_type when connected via connection string: tests/integration/inMemoryTransport.ts#L24
McpError: MCP error -32602: MCP error -32602: Tool Random not found ❯ Client._onresponse node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27 ❯ InMemoryTransport._transport.onmessage node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22 ❯ Object.write tests/integration/inMemoryTransport.ts:24:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: -32602, data: undefined }
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > resolveTelemetryMetadata > should return empty metadata when not connected: tests/integration/helpers.ts#L336
AssertionError: expected undefined to be defined ❯ expectDefined tests/integration/helpers.ts:336:17 ❯ tests/integration/tools/mongodb/mongodbTool.test.ts:333:13
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > when a tool is not usable > should not even be registered: tests/integration/tools/mongodb/mongodbTool.test.ts#L324
AssertionError: expected [ { name: 'connect', …(5) }, …(21) ] to have a length of 1 but got 22 - Expected + Received - 1 + 22 ❯ tests/integration/tools/mongodb/mongodbTool.test.ts:324:34
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > when MCP is using injected connection error handler > and comes across a MongoDB Error - MisconfiguredConnectionString > should handle the error: tests/integration/inMemoryTransport.ts#L24
McpError: MCP error -32602: MCP error -32602: Tool Random not found ❯ Client._onresponse node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27 ❯ InMemoryTransport._transport.onmessage node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22 ❯ Object.write tests/integration/inMemoryTransport.ts:24:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: -32602, data: undefined }
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > when MCP is using injected connection error handler > and comes across a MongoDB Error - NotConnectedToMongoDB > should handle the error: tests/integration/inMemoryTransport.ts#L24
McpError: MCP error -32602: MCP error -32602: Tool Random not found ❯ Client._onresponse node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27 ❯ InMemoryTransport._transport.onmessage node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22 ❯ Object.write tests/integration/inMemoryTransport.ts:24:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: -32602, data: undefined }
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > when MCP is using default connection error handler > and comes across a MongoDB Error - MisconfiguredConnectionString > should handle the error: tests/integration/inMemoryTransport.ts#L24
McpError: MCP error -32602: MCP error -32602: Tool Random not found ❯ Client._onresponse node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27 ❯ InMemoryTransport._transport.onmessage node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22 ❯ Object.write tests/integration/inMemoryTransport.ts:24:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: -32602, data: undefined }
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > when MCP is using default connection error handler > and comes across a MongoDB Error - NotConnectedToMongoDB > should handle the error: tests/integration/inMemoryTransport.ts#L24
McpError: MCP error -32602: MCP error -32602: Tool Random not found ❯ Client._onresponse node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27 ❯ InMemoryTransport._transport.onmessage node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22 ❯ Object.write tests/integration/inMemoryTransport.ts:24:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: -32602, data: undefined }
Run MongoDB tests (windows-latest)
Process completed with exit code 1.
tests/integration/tools/mongodb/create/insertMany.test.ts > insertMany tool when search is disabled: tests/integration/tools/mongodb/mongodbHelpers.ts#L141
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:141:5 ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:97:32
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > resolveTelemetryMetadata > should return metadata with connection_auth_type when connected via connection string: tests/integration/inMemoryTransport.ts#L24
McpError: MCP error -32602: MCP error -32602: Tool Random not found ❯ Client._onresponse node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27 ❯ InMemoryTransport._transport.onmessage node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22 ❯ Object.write tests/integration/inMemoryTransport.ts:24:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: -32602, data: undefined }
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > resolveTelemetryMetadata > should return empty metadata when not connected: tests/integration/helpers.ts#L336
AssertionError: expected undefined to be defined ❯ expectDefined tests/integration/helpers.ts:336:17 ❯ tests/integration/tools/mongodb/mongodbTool.test.ts:333:13
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > when a tool is not usable > should not even be registered: tests/integration/tools/mongodb/mongodbTool.test.ts#L324
AssertionError: expected [ { name: 'connect', …(5) }, …(21) ] to have a length of 1 but got 22 - Expected + Received - 1 + 22 ❯ tests/integration/tools/mongodb/mongodbTool.test.ts:324:34
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > when MCP is using injected connection error handler > and comes across a MongoDB Error - MisconfiguredConnectionString > should handle the error: tests/integration/inMemoryTransport.ts#L24
McpError: MCP error -32602: MCP error -32602: Tool Random not found ❯ Client._onresponse node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27 ❯ InMemoryTransport._transport.onmessage node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22 ❯ Object.write tests/integration/inMemoryTransport.ts:24:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: -32602, data: undefined }
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > when MCP is using injected connection error handler > and comes across a MongoDB Error - NotConnectedToMongoDB > should handle the error: tests/integration/inMemoryTransport.ts#L24
McpError: MCP error -32602: MCP error -32602: Tool Random not found ❯ Client._onresponse node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27 ❯ InMemoryTransport._transport.onmessage node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22 ❯ Object.write tests/integration/inMemoryTransport.ts:24:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: -32602, data: undefined }
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > when MCP is using default connection error handler > and comes across a MongoDB Error - MisconfiguredConnectionString > should handle the error: tests/integration/inMemoryTransport.ts#L24
McpError: MCP error -32602: MCP error -32602: Tool Random not found ❯ Client._onresponse node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27 ❯ InMemoryTransport._transport.onmessage node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22 ❯ Object.write tests/integration/inMemoryTransport.ts:24:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: -32602, data: undefined }
tests/integration/tools/mongodb/mongodbTool.test.ts > MongoDBTool implementations > when MCP is using default connection error handler > and comes across a MongoDB Error - NotConnectedToMongoDB > should handle the error: tests/integration/inMemoryTransport.ts#L24
McpError: MCP error -32602: MCP error -32602: Tool Random not found ❯ Client._onresponse node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27 ❯ InMemoryTransport._transport.onmessage node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22 ❯ Object.write tests/integration/inMemoryTransport.ts:24:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: -32602, data: undefined }
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 git secrets
1 added, 0 removed; done.
Run git secrets
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
Run git secrets
Updating certificates in /etc/ssl/certs...
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 Local tests
1 added, 0 removed; done.
Run Atlas Local tests
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
Run Atlas Local tests
Updating certificates in /etc/ssl/certs...
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...

Artifacts

Produced during runtime
Name Size Digest
atlas-local-test-results
18.3 KB
sha256:c1c3dbe9c8145225d7eb4275e68f7baa7ebefc329b80ca23c24871f57069e5e0
atlas-test-results
20 KB
sha256:a36b31eda7efccdd2177f37ba70fbca8d3215703c5404826df4c2e2a6117ac4a
run-atlas-local-tests-permissions-8e301e444dba83dcdbc743e042e31f16
140 Bytes
sha256:cd16f7ef7d5ba80e016e84ac2cb084c0eeb5873ee9e244bf394e76e0dd08f211
run-atlas-tests-permissions-ca4e0d1beb6b30bb44f2c64acdde87b9
140 Bytes
sha256:97e1da61db8c075be69eda192e6fe352ce99de6bfc89445f60dd3ab362000300
run-git-secrets-permissions-f58eee54b97c3807f396c1ef7c2fdd99
140 Bytes
sha256:e7bb732c77d6f0d533516b150571dbf5b5d4322e8d3f0fa5de0f981c81fd7e9e
run-tests-permissions-aaa5c093d65e9d2cd10598836983fc18
140 Bytes
sha256:280382620b7c1f10e934ccaa251aed6f63f7a3ec2bac5f60ba619d4e28ef0127