File tree Expand file tree Collapse file tree 5 files changed +35
-35
lines changed Expand file tree Collapse file tree 5 files changed +35
-35
lines changed Original file line number Diff line number Diff line change 6
6
- main
7
7
pull_request :
8
8
jobs :
9
- build :
10
- runs-on : ubuntu-latest
11
- steps :
12
- - uses : GitHubSecurityLab/actions-permissions/monitor@v1
13
- with :
14
- config : ${{ vars.PERMISSIONS_CONFIG }}
15
- - name : Checkout repository
16
- uses : actions/checkout@v4
17
- - uses : actions/setup-node@v4
18
- with :
19
- node-version-file : package.json
20
- cache : " npm"
21
- - name : Install dependencies
22
- run : |
23
- npm ci
24
- - name : build
25
- run : |
26
- npm run build
27
- - name : Check for uncommitted files
28
- run : |
29
- export FILES=
30
- FILES=$(git ls-files -o -m --directory --exclude-standard --no-empty-directory)
31
- export LINES=
32
- LINES=$(echo "$FILES" | awk 'NF' | wc -l)
33
- if [ "$LINES" -ne 0 ]; then
34
- echo "Detected files that need to be committed:"
35
- echo "${FILES}"
36
- echo ""
37
- echo "Try running: npm run build"
38
- exit 1
39
- fi
40
9
prettier :
41
10
runs-on : ubuntu-latest
42
11
steps :
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Publish
3
+ on :
4
+ push :
5
+ tags :
6
+ - v*
7
+ jobs :
8
+ publish :
9
+ runs-on : ubuntu-latest
10
+ environment : Production
11
+ steps :
12
+ - uses : GitHubSecurityLab/actions-permissions/monitor@v1
13
+ with :
14
+ config : ${{ vars.PERMISSIONS_CONFIG }}
15
+ - name : Checkout Repository
16
+ uses : actions/checkout@v2
17
+ - uses : actions/setup-node@v4
18
+ with :
19
+ node-version-file : package.json
20
+ registry-url : " https://registry.npmjs.org"
21
+ cache : " npm"
22
+ - name : Install dependencies
23
+ run : |
24
+ npm ci
25
+ - env :
26
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
27
+ run : |
28
+ npm publish
29
+ - run : |
30
+ gh release create ${{ github.ref }} --title "${{ github.ref }}" --notes "Release ${{ github.ref }}" --generate-notes
Original file line number Diff line number Diff line change
1
+ dist
1
2
node_modules
2
3
.vscode /mcp.json
3
4
.github /prompts /*
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ It should look like this
102
102
``` json
103
103
{
104
104
"servers" : {
105
- "demo-atlas -server" : {
105
+ "mongodb-mcp -server" : {
106
106
"type" : " stdio" ,
107
107
"command" : " /Users/<user>/workplace/atlas-mcp-server/dist/index.js" ,
108
108
"args" : []
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " mongodb-mcp-server" ,
3
3
"version" : " 0.0.0" ,
4
- "private" : true ,
5
4
"main" : " dist/index.js" ,
6
5
"type" : " module" ,
7
6
"scripts" : {
7
+ "prepare" : " npm run build" ,
8
8
"build:clean" : " rm -rf dist" ,
9
9
"build:compile" : " tsc" ,
10
10
"build:addshebang" : " echo '#!/usr/bin/env node' > dist/index2.js && cat dist/index.js >> dist/index2.js && mv dist/index2.js dist/index.js" ,
14
14
"prettier" : " prettier" ,
15
15
"check" : " npm run check:lint && npm run check:format" ,
16
16
"check:lint" : " eslint ." ,
17
- "check:format" : " npm run prettier -c ." ,
18
- "reformat" : " npm run prettier -- -- write . && npm run check:lint -- --fix "
17
+ "check:format" : " prettier -c ." ,
18
+ "reformat" : " prettier --write ."
19
19
},
20
20
"license" : " Apache-2.0" ,
21
21
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments