diff --git a/.dxtignore b/.dxtignore new file mode 100644 index 0000000..cbebea1 --- /dev/null +++ b/.dxtignore @@ -0,0 +1,14 @@ +.github/ +bin/ +cmd/ +e2e/ +node_modules/ +pkg/ +.gitignore +.goreleaser.yaml +.npmignore +Dockerfile +go.mod +go.sum +main.go +Makefile diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f061ee1..566df40 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -24,6 +24,15 @@ jobs: with: go-version: 1.22.x - uses: actions/checkout@v3.0.0 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 22.x + cache: "npm" + - name: Build dxt package + run: | + npm install -g @anthropic-ai/dxt + dxt pack - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 15bfc3f..69e2221 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -45,6 +45,15 @@ jobs: run: | docker login --username linuxsuren --password ${{secrets.DOCKER_HUB_PUBLISH_SECRETS}} docker login ${{ env.REGISTRY }}/linuxsuren --username linuxsuren --password ${{secrets.GH_PUBLISH_SECRETS}} + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 22.x + cache: "npm" + - name: Build dxt package + run: | + npm install -g @anthropic-ai/dxt + dxt pack - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 255aa39..182397b 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -28,6 +28,9 @@ archives: format: zip files: - README.md + - files: + - atest-mcp-server.dxt + id: dxt checksum: name_template: 'checksums.txt' snapshot: diff --git a/README.md b/README.md index 3dcdd74..c328dfe 100644 --- a/README.md +++ b/README.md @@ -62,3 +62,16 @@ or as stdio mode: } } ``` + +## How to build + +You can build the binary with the following command: +```shell +make build +``` + +You can build `.dxt` package with the following command: +```shell +npm install -g @anthropic-ai/dxt +dxt pack +``` diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..7c39275 --- /dev/null +++ b/manifest.json @@ -0,0 +1,24 @@ +{ + "dxt_version": "0.1", + "name": "atest-mcp-server-launcher", + "version": "1.0.1", + "description": "Auto-download & launch https://github.com/LinuxSuRen/atest-mcp-server", + "author": { + "name": "linuxsuren" + }, + "server": { + "type": "node", + "entry_point": "launcher.js", + "mcp_config": { + "command": "node", + "args": [ + "${__dirname}/launcher.js" + ], + "env": {} + } + }, + "keywords": [ + "atest" + ], + "license": "MIT" +}