Skip to content

Commit 38761a4

Browse files
committed
Merge branch 'main' into ni/accuracy-tests
2 parents fc9325c + 567d497 commit 38761a4

24 files changed

+1236
-264
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Code Health Long Running Tests
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch: # Allow manual triggering of the workflow in feature branches
8+
9+
permissions: {}
10+
11+
jobs:
12+
run-long-running-tests:
13+
name: Run long running tests
14+
if: github.event_name == 'push' || (github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository)
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
18+
- uses: actions/checkout@v5
19+
- uses: actions/setup-node@v6
20+
with:
21+
node-version-file: package.json
22+
cache: "npm"
23+
- name: Install dependencies
24+
run: npm ci
25+
- name: Run tests
26+
env:
27+
MDB_MCP_API_CLIENT_ID: ${{ secrets.TEST_ATLAS_CLIENT_ID }}
28+
MDB_MCP_API_CLIENT_SECRET: ${{ secrets.TEST_ATLAS_CLIENT_SECRET }}
29+
MDB_MCP_API_BASE_URL: ${{ vars.TEST_ATLAS_BASE_URL }}
30+
run: npm test -- tests/integration/tools/atlas --project=long-running-tests
31+
- name: Upload test results
32+
uses: actions/upload-artifact@v4
33+
if: always()
34+
with:
35+
name: atlas-test-results
36+
path: coverage/lcov.info

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ npx -y mongodb-mcp-server@latest --transport http --httpHost=0.0.0.0 --httpPort=
293293
- `atlas-list-db-users` - List MongoDB Atlas database users
294294
- `atlas-create-db-user` - Creates a MongoDB Atlas database user
295295
- `atlas-list-alerts` - List MongoDB Atlas Alerts for a Project
296+
- `atlas-get-performance-advisor` - Gets Atlas Performance Advisor recommendations (index suggestions, drop index suggestions, schema suggestions, slow query logs)
296297

297298
NOTE: atlas tools are only available when you set credentials on [configuration](#configuration) section.
298299

0 commit comments

Comments
 (0)