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
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<img src="https://github.com/XcodeBazelMCP/XcodeBuildMCP/blob/HEAD/assets/LOGO.png?raw=true" alt="XcodeBazelMCP" width="200">
<img src="https://github.com/XcodeBazelMCP/XcodeBazelMCP/blob/HEAD/assets/LOGO.png?raw=true" alt="XcodeBazelMCP" width="200">

<h1>XcodeBazelMCP</h1>

Expand All @@ -9,16 +9,16 @@
visionOS, and Swift Package Manager.
</p>

[![CI](https://github.com/XcodeBazelMCP/XcodeBuildMCP/actions/workflows/ci.yml/badge.svg)](https://github.com/XcodeBazelMCP/XcodeBuildMCP/actions/workflows/ci.yml)
[![CI](https://github.com/XcodeBazelMCP/XcodeBazelMCP/actions/workflows/ci.yml/badge.svg)](https://github.com/XcodeBazelMCP/XcodeBazelMCP/actions/workflows/ci.yml)
[![npm package](https://img.shields.io/npm/v/xcodebazelmcp)](https://www.npmjs.com/package/xcodebazelmcp)
[![License MIT](https://img.shields.io/npm/l/xcodebazelmcp)](https://github.com/XcodeBazelMCP/XcodeBuildMCP/blob/main/LICENSE)
[![License MIT](https://img.shields.io/npm/l/xcodebazelmcp)](https://github.com/XcodeBazelMCP/XcodeBazelMCP/blob/main/LICENSE)
[![node >=18.x](https://img.shields.io/node/v/xcodebazelmcp)](https://nodejs.org/)
[![Xcode 16](https://img.shields.io/badge/Xcode-16-blue)](https://developer.apple.com/xcode/)
[![platform macOS](https://img.shields.io/badge/platform-macOS-lightgrey)](https://github.com/XcodeBazelMCP/XcodeBuildMCP)
[![platform macOS](https://img.shields.io/badge/platform-macOS-lightgrey)](https://github.com/XcodeBazelMCP/XcodeBazelMCP)
[![MCP Compatible](https://img.shields.io/badge/MCP-Compatible-green)](https://modelcontextprotocol.io)
[![codecov](https://codecov.io/gh/XcodeBazelMCP/XcodeBuildMCP/branch/main/graph/badge.svg)](https://codecov.io/gh/XcodeBazelMCP/XcodeBuildMCP)
[![codecov](https://codecov.io/gh/XcodeBazelMCP/XcodeBazelMCP/branch/main/graph/badge.svg)](https://codecov.io/gh/XcodeBazelMCP/XcodeBazelMCP)
[![Socket Badge](https://badge.socket.dev/npm/package/xcodebazelmcp/0.1.0)](https://badge.socket.dev/npm/package/xcodebazelmcp/0.1.0)
[![Ask DeepWiki](https://img.shields.io/badge/Ask-DeepWiki-blue?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDJDNi40OCAyIDIgNi40OCAyIDEyczQuNDggMTAgMTAgMTAgMTAtNC40OCAxMC0xMFMxNy41MiAyIDEyIDJ6bTEgMTVoLTJ2LTJoMnYyem0wLTRoLTJWN2gydjZ6IiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==)](https://deepwiki.com/XcodeBazelMCP/XcodeBuildMCP)
[![Ask DeepWiki](https://img.shields.io/badge/Ask-DeepWiki-blue?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDJDNi40OCAyIDIgNi40OCAyIDEyczQuNDggMTAgMTAgMTAgMTAtNC40OCAxMC0xMFMxNy41MiAyIDEyIDJ6bTEgMTVoLTJ2LTJoMnYyem0wLTRoLTJWN2gydjZ6IiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==)](https://deepwiki.com/XcodeBazelMCP/XcodeBazelMCP)
</div>

<br>
Expand Down Expand Up @@ -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
```
Expand Down Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading