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
10 changes: 5 additions & 5 deletions .github/workflows/release-waxmcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
- runs-on: macos-14
platform: darwin-x64
triple: x86_64-apple-macosx14.0
source-build: true
source_build: true
- runs-on: macos-14
platform: darwin-arm64
triple: arm64-apple-macosx14.0
source-build: true
source_build: true
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
Expand All @@ -34,13 +34,13 @@ jobs:
swift-version: "6.2"

- name: Build binaries
if: ${{ matrix.source-build }}
if: ${{ matrix.source_build }}
run: |
set -euo pipefail
./Resources/scripts/build-waxmcp-binaries.sh "${{ matrix.platform }}" "${{ matrix.triple }}"

- name: Reuse checked-in binaries
if: ${{ !matrix.source-build }}
if: ${{ !matrix.source_build }}
run: |
set -euo pipefail
./Resources/scripts/build-waxmcp-binaries.sh "${{ matrix.platform }}"
Expand All @@ -57,7 +57,7 @@ jobs:
sha256sum -c "$PLATFORM_DIR/wax-cli.sha256"
fi
# Verify wax-mcp binary exists (for source builds)
if [[ "${{ matrix.source-build }}" == "true" ]]; then
if [[ "${{ matrix.source_build }}" == "true" ]]; then
test -f "$PLATFORM_DIR/wax-mcp"
test -f "$PLATFORM_DIR/wax-mcp.sha256"
fi
Expand Down
2 changes: 1 addition & 1 deletion Resources/npm/waxmcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ and resource bundles:

```bash
cd /path/to/Wax
./scripts/release-waxmcp.sh 0.1.15
./scripts/release-waxmcp.sh 0.1.18
git add Resources/npm/waxmcp/package.json Sources/WaxMCPServer/main.swift Resources/npm/waxmcp/dist
git commit -m "release: bump waxmcp version"
```
Expand Down
2 changes: 1 addition & 1 deletion Resources/npm/waxmcp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "waxmcp",
"version": "0.1.15",
"version": "0.1.18",
"description": "npx launcher for the Wax MCP server",
"repository": {
"type": "git",
Expand Down
8 changes: 4 additions & 4 deletions Resources/scripts/release-waxmcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ set -euo pipefail

if [[ "${1:-}" == "" ]]; then
echo "usage: scripts/release-waxmcp.sh <version>" >&2
echo "example: scripts/release-waxmcp.sh 0.1.15" >&2
echo "example: scripts/release-waxmcp.sh 0.1.18" >&2
exit 2
fi

VERSION="$1"

if ! [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "error: version must be semver like 0.1.15 (got '$VERSION')" >&2
echo "error: version must be semver like 0.1.18 (got '$VERSION')" >&2
exit 2
fi

Expand All @@ -31,8 +31,8 @@ if [[ ! -f "$SERVER_SWIFT" ]]; then
fi

echo "-> Bump versions to $VERSION"
perl -0pi -e 's/"version"\\s*:\\s*"[^"]+"/"version": "'"$VERSION"'"/' "$PKG_JSON"
perl -0pi -e 's/let serverVersion\\s*=\\s*"[^"]+"/let serverVersion = "'"$VERSION"'"/' "$SERVER_SWIFT"
perl -0pi -e 's/"version"\s*:\s*"[^"]+"/"version": "'"$VERSION"'"/' "$PKG_JSON"
perl -0pi -e 's/let serverVersion\s*=\s*"[^"]+"/let serverVersion = "'"$VERSION"'"/' "$SERVER_SWIFT"

echo "-> Build release binaries (darwin-arm64)"
cd "$ROOT"
Expand Down
2 changes: 1 addition & 1 deletion Sources/WaxMCPServer/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ struct WaxMCPServerCommand: ParsableCommand {
)

// SYNC: keep this version in sync with Resources/npm/waxmcp/package.json "version"
let serverVersion = "0.1.15"
let serverVersion = "0.1.18"
writeStderr("wax-mcp v\(serverVersion) starting")
let server = Server(
name: "wax-mcp",
Expand Down
Loading