diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 43b79ec..d1a945c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -116,3 +116,47 @@ jobs:
with:
tag_name: ${{ needs.create-tag.outputs.version && format('v{0}', needs.create-tag.outputs.version) || github.ref_name }}
generate_release_notes: true
+
+ update-homebrew:
+ name: Update Homebrew formula
+ needs: [publish, create-tag]
+ if: always() && needs.publish.result == 'success'
+ runs-on: ubuntu-latest
+ steps:
+ - name: Get version
+ id: ver
+ run: |
+ VERSION="${{ needs.create-tag.outputs.version }}"
+ if [ -z "$VERSION" ]; then
+ VERSION="${GITHUB_REF_NAME#v}"
+ fi
+ echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
+
+ - name: Download tarball and compute sha256
+ id: sha
+ run: |
+ URL="https://registry.npmjs.org/xcodebazelmcp/-/xcodebazelmcp-${{ steps.ver.outputs.version }}.tgz"
+ for i in 1 2 3 4 5; do
+ SHA=$(curl -sL "$URL" | shasum -a 256 | awk '{print $1}')
+ [ -n "$SHA" ] && break
+ sleep 10
+ done
+ echo "sha256=${SHA}" >> "$GITHUB_OUTPUT"
+
+ - uses: actions/checkout@v5
+ with:
+ repository: XcodeBazelMCP/homebrew-tap
+ token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
+
+ - name: Update formula
+ run: |
+ sed -i 's|url ".*"|url "https://registry.npmjs.org/xcodebazelmcp/-/xcodebazelmcp-${{ steps.ver.outputs.version }}.tgz"|' Formula/xcodebazelmcp.rb
+ sed -i 's|sha256 ".*"|sha256 "${{ steps.sha.outputs.sha256 }}"|' Formula/xcodebazelmcp.rb
+
+ - name: Commit and push
+ run: |
+ git config user.name "github-actions[bot]"
+ git config user.email "github-actions[bot]@users.noreply.github.com"
+ git add Formula/xcodebazelmcp.rb
+ git commit -m "Update xcodebazelmcp to ${{ steps.ver.outputs.version }}"
+ git push
diff --git a/README.md b/README.md
index cf5c153..e191294 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
-

+
XcodeBazelMCP
@@ -9,16 +9,16 @@
visionOS, and Swift Package Manager.
- [](https://github.com/XcodeBazelMCP/XcodeBuildMCP/actions/workflows/ci.yml)
+ [](https://github.com/XcodeBazelMCP/XcodeBazelMCP/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/xcodebazelmcp)
- [](https://github.com/XcodeBazelMCP/XcodeBuildMCP/blob/main/LICENSE)
+ [](https://github.com/XcodeBazelMCP/XcodeBazelMCP/blob/main/LICENSE)
[](https://nodejs.org/)
[](https://developer.apple.com/xcode/)
- [](https://github.com/XcodeBazelMCP/XcodeBuildMCP)
+ [](https://github.com/XcodeBazelMCP/XcodeBazelMCP)
[](https://modelcontextprotocol.io)
- [](https://codecov.io/gh/XcodeBazelMCP/XcodeBuildMCP)
+ [](https://codecov.io/gh/XcodeBazelMCP/XcodeBazelMCP)
[](https://badge.socket.dev/npm/package/xcodebazelmcp/0.1.0)
- [](https://deepwiki.com/XcodeBazelMCP/XcodeBuildMCP)
+ [](https://deepwiki.com/XcodeBazelMCP/XcodeBazelMCP)
@@ -101,8 +101,8 @@ npx -y xcodebazelmcp mcp --workspace /path/to/your/ios-workspace
### From source
```sh
-git clone https://github.com/XcodeBazelMCP/XcodeBuildMCP.git
-cd XcodeBuildMCP
+git clone https://github.com/XcodeBazelMCP/XcodeBazelMCP.git
+cd XcodeBazelMCP
npm install
npm run build
```
@@ -211,8 +211,8 @@ See [docs/device-support.md](docs/device-support.md) for full details.
## Development
```sh
-git clone https://github.com/XcodeBazelMCP/XcodeBuildMCP.git
-cd XcodeBuildMCP
+git clone https://github.com/XcodeBazelMCP/XcodeBazelMCP.git
+cd XcodeBazelMCP
npm install
npm run build # Build dist/
npm test # Run tests (vitest)
diff --git a/package.json b/package.json
index a7498a7..7457f7a 100644
--- a/package.json
+++ b/package.json
@@ -42,11 +42,11 @@
"license": "MIT",
"repository": {
"type": "git",
- "url": "git+https://github.com/XcodeBazelMCP/XcodeBuildMCP.git"
+ "url": "git+https://github.com/XcodeBazelMCP/XcodeBazelMCP.git"
},
- "homepage": "https://github.com/XcodeBazelMCP/XcodeBuildMCP#readme",
+ "homepage": "https://github.com/XcodeBazelMCP/XcodeBazelMCP#readme",
"bugs": {
- "url": "https://github.com/XcodeBazelMCP/XcodeBuildMCP/issues"
+ "url": "https://github.com/XcodeBazelMCP/XcodeBazelMCP/issues"
},
"devDependencies": {
"@eslint/js": "^9.25.0",