Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ jobs:
pnpm install --frozen-lockfile
pnpm run typecheck

check-dxt:
name: DXT Manifest Validation
check-mcpb:
name: MCPB Manifest Validation
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -89,7 +89,7 @@ jobs:
- name: Validate manifest.json
run: |
pnpm install --frozen-lockfile
pnpm run check:dxt
pnpm run check:mcpb

license-check:
name: Dependency License Check
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/update-release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-dxt:
name: Build DXT Package
build-mcpb:
name: Build MCPB Package
needs:
- release-draft
runs-on: ubuntu-latest
Expand All @@ -43,21 +43,21 @@ jobs:
node-version-file: .node-version
cache: "pnpm"

- name: Build DXT
- name: Build MCPB
run: |
pnpm install --frozen-lockfile
pnpm run build:dxt
pnpm run build:mcpb

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: garoon-mcp-server.dxt
path: build/garoon-mcp-server.dxt
name: garoon-mcp-server.mcpb
path: build/garoon-mcp-server.mcpb

upload-binaries:
name: Upload DXT Package to Release Draft
name: Upload MCPB Package to Release Draft
needs:
- build-dxt
- build-mcpb
- release-draft
permissions:
contents: write
Expand All @@ -71,8 +71,8 @@ jobs:
with:
path: ./artifacts

- name: Upload DXT package
- name: Upload MCPB package
run: |
gh release upload ${{ needs.release-draft.outputs.tag_name }} ./artifacts/garoon-mcp-server.dxt --clobber
gh release upload ${{ needs.release-draft.outputs.tag_name }} ./artifacts/garoon-mcp-server.mcpb --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ coverage/

# Build
NOTICE
*.dxt
*.mcpb
build/
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dxt_version": "0.1",
"manifest_version": "0.2",
"name": "garoon-mcp-server",
"display_name": "Garoon MCP Server",
"version": "0.1.0",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
"dev": "./scripts/run-inspector.sh",
"prebuild": "node scripts/generate-build-constants.js",
"build": "tsc",
"build:dxt": "./scripts/build-dxt.sh",
"check:dxt": "dxt validate .",
"build:mcpb": "./scripts/build-mcpb.sh",
"check:mcpb": "mcpb validate .",
"clean": "pnpm \"/^clean:.*/\"",
"clean:dist": "rm -rf dist",
"clean:dxt": "rm -rf build",
"clean:mcpb": "rm -rf build",
"start": "node dist/index.js",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
Expand All @@ -59,7 +59,7 @@
"zod": "^3.25.76"
},
"devDependencies": {
"@anthropic-ai/dxt": "^0.2.6",
"@anthropic-ai/mcpb": "^1.1.1",
"@cybozu/eslint-config": "^24.3.0",
"@cybozu/license-manager": "^1.4.0",
"@types/node": "^24.5.2",
Expand Down
38 changes: 28 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions scripts/build-dxt.sh → scripts/build-mcpb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eux
cd "$(dirname "$0")/.."

pnpm run clean
BUILD_TYPE=dxt pnpm run build
BUILD_TYPE=mcpb pnpm run build
pnpm run license:extract

mkdir -p build/tmp
Expand All @@ -21,6 +21,6 @@ cp -r dist build/tmp/

pnpm --prefix build/tmp install --prod --frozen-lockfile --config.shamefully-hoist=true

pnpm exec dxt pack build/tmp build/garoon-mcp-server.dxt
pnpm exec mcpb pack build/tmp build/garoon-mcp-server.mcpb

echo "DXT package created successfully at build/garoon-mcp-server.dxt"
echo "MCPB package created successfully at build/garoon-mcp-server.mcpb"