chore: bump mcp SDK, refactor tool arguments #805
code-health.yml
on: pull_request
Matrix: Run MongoDB tests
Run git secrets
2m 3s
Report Coverage
28s
Annotations
41 errors and 3 warnings
|
Run Atlas tests
Process completed with exit code 1.
|
|
tests/integration/tools/atlas/clusters.test.ts > clusters > with project > atlas-connect-cluster > connects to cluster:
tests/integration/tools/atlas/clusters.test.ts#L169
AssertionError: expected 'Attempting to connect to cluster "Clu…' to contain 'Connected to cluster'
- Expected
+ Received
- Connected to cluster
+ Attempting to connect to cluster "ClusterTest-6930b53a8fcc5c4b9f58e031"...
+ Warning: Provisioning a user and connecting to the cluster may take more time, please check again in a few seconds.
+ Note: Your current IP address has been added to the Atlas project's IP access list to enable secure connection.
+ Note: A temporary user has been created to enable secure connection to the cluster. For more information, see https://dochub.mongodb.org/core/mongodb-mcp-server-tools-considerations
+
+ Note to LLM Agent: it is important to include the following link in your response to the user in case they want to get more information about the temporary user created: https://dochub.mongodb.org/core/mongodb-mcp-server-tools-considerations
❯ tests/integration/tools/atlas/clusters.test.ts:169:37
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'maxDocumentsPerQuery' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key maxDocumentsPerQuery is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'maxBytesPerQuery' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key maxBytesPerQuery is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'httpPort' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key httpPort is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'transport' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key transport is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'apiClientSecret' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key apiClientSecret is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'apiClientId' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key apiClientId is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'apiBaseUrl' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key apiBaseUrl is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > override behavior > should not be able tooverride connectionString with header:
tests/integration/transports/configOverrides.test.ts#L115
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key connectionString is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:115:39
|
|
tests/unit/toolBase.test.ts > ToolBase > resolveTelemetryMetadata > should include custom telemetry metadata:
src/tools/tool.ts#L481
TypeError: server.mcpServer.registerTool is not a function
❯ TestTool.register src/tools/tool.ts:481:34
❯ tests/unit/toolBase.test.ts:148:22
|
|
tests/unit/toolBase.test.ts > ToolBase > resolveTelemetryMetadata > should return empty metadata by default:
src/tools/tool.ts#L481
TypeError: server.mcpServer.registerTool is not a function
❯ TestTool.register src/tools/tool.ts:481:34
❯ tests/unit/toolBase.test.ts:148:22
|
|
Run Atlas Local tests
Process completed with exit code 1.
|
|
tests/integration/tools/atlas-local/listDeployments.test.ts > atlas-local-list-deployments > should not crash when calling the tool:
tests/integration/tools/atlas-local/listDeployments.test.ts#L30
AssertionError: expected 'Error running atlas-local-list-deploy…' to contain 'No deployments found.'
Expected: "No deployments found."
Received: "Error running atlas-local-list-deployments: client.listDeployments is not a function"
❯ tests/integration/tools/atlas-local/listDeployments.test.ts:30:39
|
|
tests/integration/tools/atlas-local/deleteDeployment.test.ts > atlas-local-delete-deployment > should delete a deployment when calling the tool:
tests/integration/tools/atlas-local/deleteDeployment.test.ts#L50
AssertionError: expected '' to contain 'test-deployment-1764799816823'
- Expected
+ Received
- test-deployment-1764799816823
❯ tests/integration/tools/atlas-local/deleteDeployment.test.ts:50:47
|
|
tests/integration/tools/atlas-local/deleteDeployment.test.ts > atlas-local-delete-deployment > should return 'no such container' error when deployment to delete does not exist:
tests/integration/tools/atlas-local/deleteDeployment.test.ts#L30
AssertionError: expected 'Cannot use \'in\' operator to search …' to contain 'The Atlas Local deployment "non-exist…'
Expected: "The Atlas Local deployment "non-existent" was not found. Please check the deployment name or use "atlas-local-list-deployments" to see available deployments."
Received: "Cannot use 'in' operator to search for 'deploymentName' in undefined"
❯ tests/integration/tools/atlas-local/deleteDeployment.test.ts:30:35
|
|
tests/integration/tools/atlas-local/createDeployment.test.ts > atlas-local-create-deployment > should create a deployment when name is not provided:
tests/integration/tools/atlas-local/createDeployment.test.ts#L143
AssertionError: expected '' to contain 'local2554'
- Expected
+ Received
- local2554
❯ tests/integration/tools/atlas-local/createDeployment.test.ts:143:41
|
|
tests/integration/tools/atlas-local/createDeployment.test.ts > atlas-local-create-deployment > should create a deployment with the correct name:
tests/integration/tools/atlas-local/createDeployment.test.ts#L113
AssertionError: expected '' to contain 'test-deployment-1764799881790'
- Expected
+ Received
- test-deployment-1764799881790
❯ tests/integration/tools/atlas-local/createDeployment.test.ts:113:41
|
|
tests/integration/tools/atlas-local/createDeployment.test.ts > atlas-local-create-deployment > should create a deployment when calling the tool:
tests/integration/tools/atlas-local/createDeployment.test.ts#L64
AssertionError: expected [ { type: 'text', …(1) } ] to have a length of 2 but got 1
- Expected
+ Received
- 2
+ 1
❯ tests/integration/tools/atlas-local/createDeployment.test.ts:64:31
|
|
tests/integration/tools/atlas-local/connectDeployment.test.ts > atlas-local-connect-deployment > should return 'no such container' error when connecting to non-existent deployment:
tests/integration/tools/atlas-local/connectDeployment.test.ts#L35
AssertionError: expected 'Cannot use \'in\' operator to search …' to contain 'The Atlas Local deployment "non-exist…'
Expected: "The Atlas Local deployment "non-existent" was not found. Please check the deployment name or use "atlas-local-list-deployments" to see available deployments."
Received: "Cannot use 'in' operator to search for 'deploymentName' in undefined"
❯ tests/integration/tools/atlas-local/connectDeployment.test.ts:35:35
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'maxDocumentsPerQuery' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key maxDocumentsPerQuery is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'maxBytesPerQuery' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key maxBytesPerQuery is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'httpPort' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key httpPort is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'transport' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key transport is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'apiClientSecret' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key apiClientSecret is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'apiClientId' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key apiClientId is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'apiBaseUrl' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key apiBaseUrl is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > override behavior > should not be able tooverride connectionString with header:
tests/integration/transports/configOverrides.test.ts#L115
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key connectionString is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:115:39
|
|
tests/unit/toolBase.test.ts > ToolBase > resolveTelemetryMetadata > should include custom telemetry metadata:
src/tools/tool.ts#L481
TypeError: server.mcpServer.registerTool is not a function
❯ TestTool.register src/tools/tool.ts:481:34
❯ tests/unit/toolBase.test.ts:148:22
|
|
tests/unit/toolBase.test.ts > ToolBase > resolveTelemetryMetadata > should return empty metadata by default:
src/tools/tool.ts#L481
TypeError: server.mcpServer.registerTool is not a function
❯ TestTool.register src/tools/tool.ts:481:34
❯ tests/unit/toolBase.test.ts:148:22
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'maxDocumentsPerQuery' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key maxDocumentsPerQuery is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'maxBytesPerQuery' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key maxBytesPerQuery is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'httpPort' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key httpPort is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'transport' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key transport is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'apiClientSecret' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key apiClientSecret is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'apiClientId' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key apiClientId is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > not-allowed behavior > should reject 'apiBaseUrl' with header:
tests/integration/transports/configOverrides.test.ts#L202
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key apiBaseUrl is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:202:39
|
|
tests/integration/transports/configOverrides.test.ts > Config Overrides via HTTP > override behavior > should not be able tooverride connectionString with header:
tests/integration/transports/configOverrides.test.ts#L115
AssertionError: expected 'Streamable HTTP error: Error POSTing …' to contain 'Error POSTing to endpoint (HTTP 400)'
Expected: "Error POSTing to endpoint (HTTP 400)"
Received: "Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc":"2.0","error":{"code":-32000,"message":"failed to handle request","data":"Config key connectionString is not allowed to be overridden"}}"
❯ tests/integration/transports/configOverrides.test.ts:115:39
|
|
tests/unit/toolBase.test.ts > ToolBase > resolveTelemetryMetadata > should include custom telemetry metadata:
src/tools/tool.ts#L481
TypeError: server.mcpServer.registerTool is not a function
❯ TestTool.register src/tools/tool.ts:481:34
❯ tests/unit/toolBase.test.ts:148:22
|
|
tests/unit/toolBase.test.ts > ToolBase > resolveTelemetryMetadata > should return empty metadata by default:
src/tools/tool.ts#L481
TypeError: server.mcpServer.registerTool is not a function
❯ TestTool.register src/tools/tool.ts:481:34
❯ tests/unit/toolBase.test.ts:148:22
|
|
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 tests
No files were found with the provided path: coverage/lcov.info. No artifacts will be uploaded.
|
|
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 | |
|---|---|---|---|
|
run-atlas-local-tests-permissions-20c23ee28c77b793d2dd001561dbc924
|
140 Bytes |
sha256:e45f83a4e00c2e506cba277ec16b82a2f171528a5d8a4e00efbd4262335233e3
|
|
|
run-atlas-tests-permissions-2c8e10e84deacb7d22d21a3bc0101f3b
|
140 Bytes |
sha256:8ae6e25998f3ff8fce185b356c970ec0ef96e38ca5e264a4cfdd8b9856995dc9
|
|
|
run-git-secrets-permissions-a059cbc75656c976954aff685cb2f751
|
140 Bytes |
sha256:602b5dca5ecfb793a34a3565286e4155291ae9f4f24dd121671d5f29ff1c74a4
|
|
|
run-tests-permissions-3829f3f62c9df3dbd09d71b25fd571f0
|
140 Bytes |
sha256:e489c15bffbffd76962e25fa4631f9611809d3cf0b3faba51d318314506063c3
|
|