Skip to content

Commit e6a2e5f

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/npm_and_yarn-170d91aa79
2 parents a477f86 + aad10be commit e6a2e5f

File tree

94 files changed

+5272
-824
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+5272
-824
lines changed

.github/workflows/accuracy-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
path: .accuracy/test-summary.html
4646
- name: Comment summary on PR
4747
if: github.event_name == 'pull_request' && github.event.label.name == 'accuracy-tests'
48-
uses: marocchino/sticky-pull-request-comment@d2ad0de260ae8b0235ce059e63f2949ba9e05943 # v2
48+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2
4949
with:
5050
# Hides the previous comment and add a comment at the end
5151
hide_and_recreate: true

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ jobs:
5555
rm -rf node_modules
5656
npm pkg set scripts.prepare="exit 0"
5757
npm install --omit=dev
58-
- run: npx -y @modelcontextprotocol/inspector --cli --method tools/list -- node dist/index.js
58+
- run: npx -y @modelcontextprotocol/inspector@0.16.2 --cli --method tools/list -- node dist/esm/index.js

.github/workflows/code_health.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ jobs:
7676
- name: Install dependencies
7777
run: npm ci
7878
- name: Download test results
79-
uses: actions/download-artifact@v4
79+
uses: actions/download-artifact@v5
8080
with:
8181
name: test-results
8282
path: coverage/mongodb
8383
- name: Download atlas test results
84-
uses: actions/download-artifact@v4
84+
uses: actions/download-artifact@v5
8585
with:
8686
name: atlas-test-results
8787
path: coverage/atlas

.github/workflows/docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Docker Buildx
1919
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435
2020
- name: Login to Docker Hub
21-
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
21+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1
2222
with:
2323
username: "${{ secrets.DOCKERHUB_USERNAME }}"
2424
password: "${{ secrets.DOCKERHUB_PASSWORD }}"

.github/workflows/jira-issue.yml

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
---
2-
name: Create JIRA ticket for new issues
2+
# This workflow automatically creates JIRA tickets when GitHub issues are opened
3+
# and closes JIRA tickets when GitHub issues are closed.
4+
#
5+
# Required secrets:
6+
# - JIRA_API_TOKEN: Your JIRA API token
7+
#
8+
name: Create and close JIRA tickets for GitHub issues
39

410
on:
511
issues:
6-
types: [opened, labeled]
12+
types: [opened, labeled, closed]
713

814
permissions:
915
issues: write
@@ -20,7 +26,7 @@ jobs:
2026
config: ${{ vars.PERMISSIONS_CONFIG }}
2127

2228
- name: Create JIRA ticket
23-
uses: mongodb/apix-action/create-jira@v10
29+
uses: mongodb/apix-action/create-jira@v13
2430
id: create
2531
continue-on-error: true
2632
with:
@@ -70,3 +76,36 @@ jobs:
7076
} catch (error) {
7177
console.log('⚠️ Could not remove create-jira label:', error.message);
7278
}
79+
80+
close_jira_task:
81+
name: Close Jira issue
82+
runs-on: ubuntu-latest
83+
if: github.event.action == 'closed'
84+
steps:
85+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
86+
with:
87+
config: ${{ vars.PERMISSIONS_CONFIG }}
88+
89+
- name: Find JIRA ticket by GitHub issue number
90+
id: find_jira
91+
uses: mongodb/apix-action/find-jira@v13
92+
with:
93+
token: ${{ secrets.JIRA_API_TOKEN }}
94+
jql: "project = MCP AND description ~ '${{ github.event.issue.html_url }}'"
95+
96+
- name: Close JIRA ticket
97+
if: steps.find_jira.outputs.found == 'true'
98+
uses: mongodb/apix-action/transition-jira@v13
99+
id: close_jira_ticket
100+
continue-on-error: true
101+
with:
102+
token: ${{ secrets.JIRA_API_TOKEN }}
103+
issue-key: ${{ steps.find_jira.outputs.issue-key }}
104+
transition-id: 61
105+
- name: Add closure comment
106+
if: steps.close_jira_ticket.outcome == 'success'
107+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
108+
with:
109+
issue-number: ${{ github.event.issue.number }}
110+
body: |
111+
The corresponding JIRA ticket has been automatically closed.

.github/workflows/prepare_release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
id: bump-version
3333
run: |
3434
echo "NEW_VERSION=$(npm version ${{ inputs.version }} --no-git-tag-version)" >> $GITHUB_OUTPUT
35+
npm run build:update-package-version
3536
- name: Create release PR
3637
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # 7.0.8
3738
id: create-pr

.smithery/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ RUN npm ci --production --ignore-scripts
2727
# Expose no ports (stdio only)
2828

2929
# Default command
30-
CMD ["node", "dist/index.js"]
30+
CMD ["node", "dist/esm/index.js"]

.smithery/smithery.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ startCommand:
4040
# A function that produces the CLI command to start the MCP on stdio.
4141
|-
4242
(config) => {
43-
const args = ['dist/index.js'];
43+
const args = ['dist/esm/index.js'];
4444
if (config) {
4545
if (config.atlasClientId) {
4646
args.push('--apiClientId');

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This project implements a Model Context Protocol (MCP) server for MongoDB and Mo
3333
{
3434
"mcpServers": {
3535
"MongoDB": {
36-
"command": "/path/to/mongodb-mcp-server/dist/index.js"
36+
"command": "/path/to/mongodb-mcp-server/dist/esm/index.js"
3737
}
3838
}
3939
}
@@ -104,7 +104,7 @@ npm run inspect
104104
This is equivalent to:
105105

106106
```shell
107-
npx @modelcontextprotocol/inspector -- node dist/index.js
107+
npx @modelcontextprotocol/inspector -- node dist/esm/index.js
108108
```
109109

110110
## Pull Request Guidelines

eslint.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ export default defineConfig([
4848
rules: {
4949
"@typescript-eslint/switch-exhaustiveness-check": "error",
5050
"@typescript-eslint/no-non-null-assertion": "error",
51+
eqeqeq: "error",
52+
"no-self-compare": "error",
53+
"no-unassigned-vars": "error",
54+
"@typescript-eslint/await-thenable": "error",
55+
"@typescript-eslint/explicit-function-return-type": "error",
5156
},
5257
},
5358
globalIgnores([

0 commit comments

Comments
 (0)