chore: improve ability to use custom tools MCP-295 #621
code-health.yml
on: pull_request
Matrix: Run MongoDB tests
Run git secrets
48s
Report Coverage
44s
Annotations
28 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 }
|
|
tests/integration/build.test.ts > Build Test > should have matching exports between CommonJS and ESM tools modules:
tests/integration/build.test.ts#L63
Error: Cannot find module '/Users/runner/work/mongodb-mcp-server/mongodb-mcp-server/dist/cjs/tools.js'
Require stack:
- /Users/runner/work/mongodb-mcp-server/mongodb-mcp-server/tests/integration/build.test.ts
❯ tests/integration/build.test.ts:63:27
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/Users/runner/work/mongodb-mcp-server/mongodb-mcp-server/tests/integration/build.test.ts' ] }
|
|
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 }
|
|
tests/integration/build.test.ts > Build Test > should have matching exports between CommonJS and ESM tools modules:
tests/integration/build.test.ts#L63
Error: Cannot find module '/home/runner/work/mongodb-mcp-server/mongodb-mcp-server/dist/cjs/tools.js'
Require stack:
- /home/runner/work/mongodb-mcp-server/mongodb-mcp-server/tests/integration/build.test.ts
❯ tests/integration/build.test.ts:63:27
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/mongodb-mcp-server/mongodb-mcp-server/tests/integration/build.test.ts' ] }
|
|
Run MongoDB tests (windows-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 }
|
|
tests/integration/build.test.ts > Build Test > should have matching exports between CommonJS and ESM tools modules:
tests/integration/build.test.ts#L63
Error: Cannot find module 'D:\a\mongodb-mcp-server\mongodb-mcp-server\dist\cjs\tools.js'
Require stack:
- D:\a\mongodb-mcp-server\mongodb-mcp-server\tests\integration\build.test.ts
❯ tests/integration/build.test.ts:63:27
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ 'D:\a\mongodb-mcp-server\mongodb-mcp-server\tests\integration\build.test.ts' ] }
|
|
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 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 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 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...
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
atlas-local-test-results
|
18.3 KB |
sha256:ce67700fadba00848f763f9f9ce8a16fc9bc8a304f003d87e4bdc6b8cd4557c5
|
|
|
atlas-test-results
|
20 KB |
sha256:bf917e2321c81b0e81bdeca67b5f8e10aa1827243971c2afc3d456a23f0b54e4
|
|
|
run-atlas-local-tests-permissions-a51c4c18aa502f9336dfbfb84438502b
|
140 Bytes |
sha256:48900602925304ae044ab1d52e3165ae0dedd9b697be8b4edcbf3e72c2eab109
|
|
|
run-atlas-tests-permissions-c4c3aeaa960baf1e5ddad4f1f73088cd
|
140 Bytes |
sha256:8552dd140abc86338a6e96197a474c4d36d9e7e4ee52d21a8ff42168b7f719b0
|
|
|
run-git-secrets-permissions-d87af90e0d39c1f5c77a5d68d174fd10
|
140 Bytes |
sha256:426b91e3ded31718ba9b373f04e671ab1d2b6a0bea219f26a62978e114069d9b
|
|
|
run-tests-permissions-ad39ce275e036bb3c83d94aa08a6ec6b
|
140 Bytes |
sha256:81e43a407a76fff548af56caa55a2c67b2346d56756a4322be0a6c879c286658
|
|