chore: split connect and switch-connection tool MCP-301 #681
code-health.yml
on: pull_request
Matrix: Run MongoDB tests
Run git secrets
1m 3s
Report Coverage
44s
Annotations
5 errors and 13 warnings
|
Run Atlas tests
Process completed with exit code 1.
|
|
tests/integration/tools/atlas/clusters.test.ts > clusters > with project > atlas-connect-cluster > when not connected > prompts for atlas-connect-cluster when querying mongodb:
tests/integration/tools/atlas/clusters.test.ts#L259
AssertionError: expected 'You need to connect to a MongoDB inst…' to contain 'Please use one of the following tools…'
- Expected
+ Received
- Please use one of the following tools: "atlas-connect-cluster", "atlas-local-connect-deployment", "connect" to connect to a MongoDB instance
+ You need to connect to a MongoDB instance before you can access its data.
+ Please use one of the following tools: "atlas-connect-cluster", "atlas-local-connect-deployment", "connect", "switch-connection" to connect to a MongoDB instance or update the MCP server configuration to include a connection string. Note to LLM: prefer using the "atlas-connect-cluster" tool to connect to an Atlas cluster over using a connection string. Make sure to ask the user to specify a cluster name they want to connect to or ask them if they want to use the "list-clusters" tool to list all their clusters. Do not invent cluster names or connection strings unless the user has explicitly specified them. If they've previously connected to MongoDB using MCP, you can ask them if they want to reconnect using the same cluster/connection.
+ Note to LLM: For MongoDB Atlas Local deployments, ask the user to either provide a connection string, specify a deployment name, or use "atlas-local-list-deployments" to show available local deployments. If a deployment name is provided, prefer using the "atlas-local-connect-deployment" tool. If a connection string is provided, prefer using the "connect" tool. Do not invent deployment names or connection strings unless the user has explicitly specified them. If they've previously connected to a MongoDB Atlas Local deployment using MCP, you can ask them if they want to reconnect using the same deployment.
❯ tests/integration/tools/atlas/clusters.test.ts:259:41
|
|
Run MongoDB tests (windows-latest)
Process completed with exit code 1.
|
|
tests/integration/tools/mongodb/read/aggregate.test.ts > find tool with default configuration:
tests/integration/tools/mongodb/mongodbHelpers.ts#L135
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:135:5
❯ tests/integration/tools/mongodb/mongodbHelpers.ts:94:32
|
|
Report Coverage
Unable to download artifact(s): Artifact not found for name: atlas-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
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 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)
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
|
17.6 KB |
sha256:233f93deee1b4e0b2fc7c1a58fdcc899e06d30168635ab76d5a2d148562e0aed
|
|
|
run-atlas-local-tests-permissions-fc067c57766b40237ded6b3c21b5c8f6
|
140 Bytes |
sha256:f9fad36de7f050432f6b3c84df66017282523ef41e72a3964737311e532817d9
|
|
|
run-atlas-tests-permissions-ba171b7f6d51ee7cde85ca901d2a2f5b
|
140 Bytes |
sha256:9b7ae4780f2c003d0086be72a5c258b7c3099845ea1f992fce340cbc059bdd1a
|
|
|
run-git-secrets-permissions-e2ba67c030161734aecd006b4ffc2f3c
|
140 Bytes |
sha256:e95f4885588ee56fe1f40409fbdf3f71d8632c8feacc934086412be707af97f3
|
|
|
run-tests-permissions-bc3de735bb7117b6252f753a8ac0d400
|
140 Bytes |
sha256:f59803a0ccb906d8cf69b000f81b4af76b6dc6376535fbb7e42750789b103a0d
|
|
|
test-results
|
28.5 KB |
sha256:49d02858bd7b8bbceed1ebb688dc6e9e4d2015752abe83dd4b150e07fd67c00e
|
|