Skip to content

Open-source Revit MCP server: let Claude and other AI assistants read and edit BIM models, with human approval on every change.

build: single-source SemVer versioning and tag-triggered releases

sammohammad578d13f5d45e680
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4780440..319a13a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -27,6 +27,9 @@ jobs:
with:
python-version: "3.11"
+ - name: Check version consistency
+ run: python scripts/version.py check
+
- name: Install package and test dependencies
shell: pwsh
run: |
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index e9d4ae6..cb05bb2 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,12 +1,19 @@
name: Build GitHub Release
+# Releases are cut by pushing a SemVer tag that matches the VERSION file:
+# python scripts/version.py bump minor (or: set 1.3.0)
+# git commit -am "chore(release): 1.3.0" && git tag v1.3.0 && git push --follow-tags
+# See docs/versioning.md. Tags with a hyphen (v1.3.0-rc.1) publish as pre-releases.
on:
+ push:
+ tags:
+ - "v[0-9]+.[0-9]+.[0-9]+"
+ - "v[0-9]+.[0-9]+.[0-9]+-*"
workflow_dispatch:
inputs:
- version:
- description: Release version without the v prefix
+ tag:
+ description: Existing tag to rebuild, for example v1.3.0
required: true
- default: 1.1.0
revit_version:
description: Revit version to package
required: true
@@ -19,14 +26,30 @@ jobs:
contents: write
steps:
+ - name: Resolve tag
+ id: tag
+ shell: pwsh
+ run: |
+ $tag = if ($env:GITHUB_EVENT_NAME -eq 'push') { $env:GITHUB_REF_NAME } else { '${{ inputs.tag }}' }
+ if ($tag -notmatch '^v\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$') { throw "Tag '$tag' is not vMAJOR.MINOR.PATCH[-prerelease]" }
+ "tag=$tag" >> $env:GITHUB_OUTPUT
+ "version=$($tag.Substring(1))" >> $env:GITHUB_OUTPUT
+ "prerelease=$($tag.Contains('-').ToString().ToLower())" >> $env:GITHUB_OUTPUT
+
- name: Checkout code
uses: actions/checkout@v5
+ with:
+ ref: ${{ steps.tag.outputs.tag }}
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
+ - name: Verify tag, VERSION, manifests and changelog agree
+ shell: pwsh
+ run: python scripts/version.py check --tag "${{ steps.tag.outputs.tag }}"
+
- name: Set up .NET
uses: actions/setup-dotnet@v5
with:
@@ -46,16 +69,26 @@ jobs:
shell: pwsh
run: >
./scripts/build-release.ps1
- -Version "${{ inputs.version }}"
- -RevitVersion "${{ inputs.revit_version }}"
+ -Version "${{ steps.tag.outputs.version }}"
+ -RevitVersion "${{ inputs.revit_version || '2027' }}"
+
+ - name: Write release notes from CHANGELOG
+ shell: pwsh
+ run: python scripts/version.py notes "${{ steps.tag.outputs.version }}" | Out-File -Encoding utf8 release-notes.md
- - name: Create GitHub release
+ - name: Create or update GitHub release
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
- run: >
- gh release create "v${{ inputs.version }}"
- dist/release/*
- --title "AEC Model Bridge v${{ inputs.version }}"
- --generate-notes
- --target "${{ github.sha }}"
+ run: |
+ $tag = '${{ steps.tag.outputs.tag }}'
+ gh release view $tag *> $null
+ if ($LASTEXITCODE -eq 0) {
+ gh release upload $tag (Get-ChildItem dist/release/*).FullName --clobber
+ gh release edit $tag --notes-file release-notes.md
+ } else {
+ $flags = @()
+ if ('${{ steps.tag.outputs.prerelease }}' -eq 'true') { $flags += '--prerelease' }
+ gh release create $tag (Get-ChildItem dist/release/*).FullName `
+ --verify-tag --title "AEC Model Bridge $tag" --notes-file release-notes.md @flags
+ }
diff --git a/VERSION b/VERSION
new file mode 100644
index 0000000..f0bb29e
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+1.3.0
diff --git a/docs/versioning.md b/docs/versioning.md
new file mode 100644
index 0000000..9095853
--- /dev/null
+++ b/docs/versioning.md
@@ -0,0 +1,85 @@
+# Versioning and releases
+
+AEC Model Bridge follows [Semantic Versioning 2.0.0](https://semver.org). The version is `MAJOR.MINOR.PATCH`, and release tags are the same number with a `v` in front: `v1.3.0`.
+
+One file decides the version: [`VERSION`](../VERSION) in the repository root. Everything else is generated from it, so the Revit add-in, the MCP server, the installer and the registry listing can never disagree.
+
+## What each number means
+
+| Bump | Use it when | Example |
+|---|---|---|
+| **MAJOR** | A tool is removed or renamed, a tool's arguments change in a way that breaks existing prompts or recipes, or a supported Revit version is dropped. | `1.3.0` to `2.0.0` |
+| **MINOR** | You add tools, workflows, UI, a new Revit version, or a new provider. Existing behaviour keeps working. | `1.2.1` to `1.3.0` |
+| **PATCH** | Bug fixes, CI fixes, documentation and security patches with no new features. | `1.3.0` to `1.3.1` |
+
+Pre-releases use a hyphen suffix: `1.4.0-rc.1`, `1.4.0-beta.2`. GitHub marks them as pre-releases automatically. The Python wheel is named with the PEP 440 form (`1.4.0rc1`); `build-release.ps1` converts it for you.
+
+## Where the version lives
+
+`scripts/version.py` keeps these in sync:
+
+| File | Field |
+|---|---|
+| `VERSION` | the source of truth |
+| `packages/mcp-server-revit/pyproject.toml` | `version` |
+| `packages/mcp-server-revit/manifest.json` | `version` (MCP bundle) |
+| `server.json` | `version`, package `version`, release download URL |
+| `packages/revit-bridge-addin/RevitBridge.csproj` | `Version`, `AssemblyVersion`, `FileVersion`, `InformationalVersion` |
+| `packages/navisworks-bridge-addin/`, `rhino-bridge-addin/`, `powerbi-bridge-tool/` | `Version` in each `.csproj` |
+| `scripts/installer/AECModelBridge.iss` | `AppVersion` |
+
+`AssemblyVersion` and `FileVersion` are four-part numbers, so `1.3.0` becomes `1.3.0.0` and any pre-release suffix is dropped there.
+
+`server.json` also carries a `fileSha256` for the `.mcpb` bundle. That hash only exists once the release is built, so the publish workflow refreshes it. Do not edit it by hand.
+
+## Cutting a release
+
+1. Make sure `CHANGELOG.md` has your notes under `## Unreleased`.
+2. Pick the bump and let the script do the edits:
+
+ ```powershell
+ python scripts/version.py bump minor # or: major | patch
+ python scripts/version.py set 1.4.0-rc.1 # or set an exact version
+ ```
+
+ This rewrites every file above and renames `## Unreleased` to `## 1.4.0 - <today>`.
+3. Check, commit, tag and push:
+
+ ```powershell
+ python scripts/version.py check
+ git commit -am "chore(release): 1.4.0"
+ git tag v1.4.0
+ git push --follow-tags
+ ```
+
+4. The **Build GitHub Release** workflow starts on the tag. It confirms the tag, `VERSION`, every manifest and the changelog agree, runs the Python tests, builds the add-in and installer bundle, and publishes the GitHub release with the changelog section as its notes.
+5. Publishing the release starts **Publish MCP Server**, which fills in the bundle hash for the registry.
+
+If the tag and `VERSION` disagree, or the changelog has no section for that version, the release stops before building anything.
+
+To rebuild an existing release, run **Build GitHub Release** by hand and enter the tag (for example `v1.4.0`). It re-uploads the files and replaces the notes.
+
+## Checks that run automatically
+
+- **Every push and pull request:** CI runs `python scripts/version.py check`. If someone edits one manifest by hand, the build fails and prints what is out of step and the command that fixes it.
+- **Every tag:** the release workflow runs the same check with `--tag`, so a mistyped tag cannot ship.
+
+## Command reference
+
+```text
+python scripts/version.py show print the current version
+python scripts/version.py check [--tag vX] fail on drift (and on tag/changelog mismatch)
+python scripts/version.py set X.Y.Z set an exact version, roll the changelog
+python scripts/version.py bump minor increment major, minor or patch
+python scripts/version.py notes [X.Y.Z] print one changelog section (used for release notes)
+```
+
+Add `--no-changelog` to `set` or `bump` if you do not want the changelog touched.
+
+## Choosing the Revit year for a release
+
+The release workflow packages one Revit year, `2027` by default. When you run it by hand you can choose another year in the `revit_version` input. For local testing of a single year, build it directly:
+
+```powershell
+./scripts/build-addin.ps1 -RevitVersion 2026 -Configuration Release
+```
diff --git a/packages/mcp-server-revit/manifest.json b/packages/mcp-server-revit/manifest.json
index 59b534c..ca9086a 100644
--- a/packages/mcp-server-revit/manifest.json
+++ b/packages/mcp-server-revit/manifest.json
@@ -2,7 +2,7 @@
"manifest_version": "0.4",
"name": "aec-model-bridge",
"display_name": "AEC Model Bridge",
- "version": "1.1.0",
+ "version": "1.3.0",
"description": "Independent MCP integration for Autodesk Revit software through a local bridge.",
"long_description": "Connect MCP clients to a locally installed Revit application through the AEC Model Bridge add-in. The server exposes model authoring, documentation, inspection, export, worksharing, and advanced API tools.",
"author": {
diff --git a/packages/mcp-server-revit/pyproject.toml b/packages/mcp-server-revit/pyproject.toml
index fdb1f90..2c2100d 100644
--- a/packages/mcp-server-revit/pyproject.toml
+++ b/packages/mcp-server-revit/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "aec-model-bridge"
-version = "1.2.1"
+version = "1.3.0"
description = "Independent Model Context Protocol integration for Autodesk Revit software"
readme = "README.md"
requires-python = ">=3.11"
diff --git a/packages/navisworks-bridge-addin/NavisworksBridge.csproj b/packages/navisworks-bridge-addin/NavisworksBridge.csproj
index b7a3c45..945de6e 100644
--- a/packages/navisworks-bridge-addin/NavisworksBridge.csproj
+++ b/packages/navisworks-bridge-addin/NavisworksBridge.csproj
@@ -5,7 +5,7 @@
<TargetFramework Condition="'$(NavisworksVersion)' == '2027'">net8.0-windows</TargetFramework>
<AssemblyName>NavisworksBridge</AssemblyName>
<RootNamespace>NavisworksBridge</RootNamespace>
- <Version>1.1.0</Version>
+ <Version>1.3.0</Version>
<OutputType>Library</OutputType>
<OutputPath>bin\$(Configuration)\$(NavisworksVersion)\</OutputPath>
<LangVersion>latest</LangVersion>
diff --git a/packages/powerbi-bridge-tool/PowerBIBridge.csproj b/packages/powerbi-bridge-tool/PowerBIBridge.csproj
index ff1cc0a..265055b 100644
--- a/packages/powerbi-bridge-tool/PowerBIBridge.csproj
+++ b/packages/powerbi-bridge-tool/PowerBIBridge.csproj
@@ -7,7 +7,7 @@
<Nullable>enable</Nullable>
<AssemblyName>PowerBIBridge</AssemblyName>
<RootNamespace>PowerBIBridge</RootNamespace>
- <Version>1.0.0</Version>
+ <Version>1.3.0</Version>
<OutputPath>bin\$(Configuration)\</OutputPath>
</PropertyGroup>
diff --git a/packages/revit-bridge-addin/RevitBridge.csproj b/packages/revit-bridge-addin/RevitBridge.csproj
index 6a65c88..e54dcc8 100644
--- a/packages/revit-bridge-addin/RevitBridge.csproj
+++ b/packages/revit-bridge-addin/RevitBridge.csproj
@@ -6,10 +6,10 @@
<TargetFramework Condition="'$(RevitVersion)' == '2027'">net10.0-windows</TargetFramework>
<AssemblyName>AECModelBridge</AssemblyName>
<RootNamespace>RevitBridge</RootNamespace>
- <Version>1.2.1</Version>
- <AssemblyVersion>1.2.1.0</AssemblyVersion>
- <FileVersion>1.2.1.0</FileVersion>
- <InformationalVersion>1.2.1</InformationalVersion>
+ <Version>1.3.0</Version>
+ <AssemblyVersion>1.3.0.0</AssemblyVersion>
+ <FileVersion>1.3.0.0</FileVersion>
+ <InformationalVersion>1.3.0</InformationalVersion>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<OutputType>Library</OutputType>
<OutputPath>bin\$(Configuration)\$(RevitVersion)\</OutputPath>
diff --git a/packages/rhino-bridge-addin/RhinoBridge.csproj b/packages/rhino-bridge-addin/RhinoBridge.csproj
index a8f7e77..9c9c3bc 100644
--- a/packages/rhino-bridge-addin/RhinoBridge.csproj
+++ b/packages/rhino-bridge-addin/RhinoBridge.csproj
@@ -4,7 +4,7 @@
<TargetExt>.rhp</TargetExt>
<AssemblyName>RhinoBridge</AssemblyName>
<RootNamespace>RhinoBridge</RootNamespace>
- <Version>1.1.0</Version>
+ <Version>1.3.0</Version>
<OutputType>Library</OutputType>
<OutputPath>bin\$(Configuration)\</OutputPath>
<LangVersion>latest</LangVersion>
diff --git a/scripts/build-release.ps1 b/scripts/build-release.ps1
index e282933..390a6ee 100644
--- a/scripts/build-release.ps1
+++ b/scripts/build-release.ps1
@@ -1,5 +1,5 @@
param(
- [string]$Version = "1.1.0",
+ [string]$Version = (Get-Content (Join-Path $PSScriptRoot '..\VERSION') -Raw).Trim(),
[string]$RevitVersion = "2027",
[switch]$UpdateServerMetadata
)
@@ -83,7 +83,9 @@ $mcpbPath = Join-Path $releaseDir "aec-model-bridge-$Version.mcpb"
Compress-Archive -Path (Join-Path $mcpbStage "*") -DestinationPath $mcpbZip -CompressionLevel Optimal
Move-Item -LiteralPath $mcpbZip -Destination $mcpbPath
-$wheel = Get-ChildItem -Path (Join-Path $packageDir "server") -Filter "aec_model_bridge-$Version-*.whl" |
+# Wheel file names use PEP 440 (1.3.0rc1); tags and VERSION use SemVer (1.3.0-rc.1).
+$wheelVersion = $Version -replace '-(alpha|a)\.?(\d+)$', 'a$2' -replace '-(beta|b)\.?(\d+)$', 'b$2' -replace '-rc\.?(\d+)$', 'rc$1'
+$wheel = Get-ChildItem -Path (Join-Path $packageDir "server") -Filter "aec_model_bridge-$wheelVersion-*.whl" |
Select-Object -First 1
if (-not $wheel) {
throw "Python wheel for version $Version was not produced."
diff --git a/scripts/install.ps1 b/scripts/install.ps1
index be7320c..a8d9400 100644
--- a/scripts/install.ps1
+++ b/scripts/install.ps1
@@ -1,6 +1,6 @@
param(
[string]$RevitVersion = "2027",
- [string]$Version = "1.1.0",
+ [string]$Version = $(if (Test-Path (Join-Path $PSScriptRoot '..\VERSION')) { (Get-Content (Join-Path $PSScriptRoot '..\VERSION') -Raw).Trim() } else { "" }),
[switch]$AllUsers,
[string]$DistPath
)
diff --git a/scripts/installer/AECModelBridge.iss b/scripts/installer/AECModelBridge.iss
index fda09ef..7c598c1 100644
--- a/scripts/installer/AECModelBridge.iss
+++ b/scripts/installer/AECModelBridge.iss
@@ -4,7 +4,7 @@
[Setup]
AppId={{D41A24F3-87B1-4A51-9F31-30919E371C25}
AppName=AEC Model Bridge
-AppVersion=1.1.0
+AppVersion=1.3.0
AppPublisher=Sam-AEC
AppPublisherURL=https://github.com/Sam-AEC/aec-model-bridge
DefaultDirName=C:\ProgramData\AECModelBridge
diff --git a/scripts/package.ps1 b/scripts/package.ps1
index 0b823ad..096b5a1 100644
--- a/scripts/package.ps1
+++ b/scripts/package.ps1
@@ -1,5 +1,5 @@
param(
- [string]$Version = "1.1.0",
+ [string]$Version = (Get-Content (Join-Path $PSScriptRoot '..\VERSION') -Raw).Trim(),
[string]$RevitVersion = "All"
)
diff --git a/scripts/version.py b/scripts/version.py
new file mode 100644
index 0000000..e50201a
--- /dev/null
+++ b/scripts/version.py
@@ -0,0 +1,218 @@
+#!/usr/bin/env python3
+"""Single source of truth for the AEC Model Bridge version.
+
+The root VERSION file holds the release version (SemVer 2.0.0). This script
+keeps every package manifest in step with it and gives CI and the release
+workflow one thing to ask.
+
+ python scripts/version.py show
+ python scripts/version.py check [--tag v1.3.0]
+ python scripts/version.py set 1.3.0
+ python scripts/version.py bump minor # major | minor | patch
+ python scripts/version.py notes [1.3.0] # changelog section for release notes
+
+`set` and `bump` rewrite all manifests and turn the "## Unreleased" changelog
+section into "## <version> - <today>". `check` exits 1 on any drift, so it can
+gate CI and the tag-triggered release.
+"""
+from __future__ import annotations
+
+import argparse
+import datetime
+import json
+import re
+import sys
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parent.parent
+VERSION_FILE = ROOT / "VERSION"
+CHANGELOG = ROOT / "CHANGELOG.md"
+
+SEMVER = re.compile(r"^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$")
+
+
+def numeric(version: str) -> str:
+ """Four-part numeric form .NET needs for AssemblyVersion/FileVersion."""
+ return ".".join(version.split("-")[0].split(".")) + ".0"
+
+
+def _tag_url(v: str) -> str:
+ return (
+ "https://github.com/Sam-AEC/aec-model-bridge/releases/download/"
+ f"v{v}/aec-model-bridge-{v}.mcpb"
+ )
+
+
+# (file, regex with the version in group "v", how to render the version)
+# A pattern may match several times (server.json has two "version" keys).
+TARGETS: list[tuple[str, str, object]] = [
+ ("packages/mcp-server-revit/pyproject.toml", r'(?m)^version = "(?P<v>[^"]+)"', str),
+ ("packages/mcp-server-revit/manifest.json", r'(?m)^ "version": "(?P<v>[^"]+)"', str),
+ ("server.json", r'(?m)^ "version": "(?P<v>[^"]+)"', str),
+ ("server.json", r'(?m)^ +"version": "(?P<v>[^"]+)",\s*\n\s*"transport"', str),
+ ("server.json", r"releases/download/v(?P<v>[^/]+)/aec-model-bridge-", str),
+ ("server.json", r"aec-model-bridge-(?P<v>[^/]+)\.mcpb", str),
+ ("scripts/installer/AECModelBridge.iss", r"(?m)^AppVersion=(?P<v>.+?)\s*$", str),
+ ("packages/revit-bridge-addin/RevitBridge.csproj", r"<Version>(?P<v>[^<]+)</Version>", str),
+ ("packages/revit-bridge-addin/RevitBridge.csproj", r"<AssemblyVersion>(?P<v>[^<]+)</AssemblyVersion>", numeric),
+ ("packages/revit-bridge-addin/RevitBridge.csproj", r"<FileVersion>(?P<v>[^<]+)</FileVersion>", numeric),
+ ("packages/revit-bridge-addin/RevitBridge.csproj", r"<InformationalVersion>(?P<v>[^<]+)</InformationalVersion>", str),
+ ("packages/navisworks-bridge-addin/NavisworksBridge.csproj", r"<Version>(?P<v>[^<]+)</Version>", str),
+ ("packages/rhino-bridge-addin/RhinoBridge.csproj", r"<Version>(?P<v>[^<]+)</Version>", str),
+ ("packages/powerbi-bridge-tool/PowerBIBridge.csproj", r"<Version>(?P<v>[^<]+)</Version>", str),
+]
+
+
+def read(path: Path) -> str:
+ with path.open(encoding="utf-8", newline="") as fh:
+ return fh.read()
+
+
+def write(path: Path, text: str) -> None:
+ with path.open("w", encoding="utf-8", newline="") as fh:
+ fh.write(text)
+
+
+def current() -> str:
+ version = read(VERSION_FILE).strip()
+ if not SEMVER.match(version):
+ sys.exit(f"VERSION '{version}' is not SemVer (MAJOR.MINOR.PATCH[-prerelease])")
+ return version
+
+
+def expected(render, version: str) -> str:
+ return render(version)
+
+
+def scan(version: str) -> list[str]:
+ """Return one message per place that disagrees with `version`."""
+ problems: list[str] = []
+ for rel, pattern, render in TARGETS:
+ text = read(ROOT / rel)
+ matches = list(re.finditer(pattern, text))
+ if not matches:
+ problems.append(f"{rel}: pattern not found ({pattern[:40]}...)")
+ continue
+ for m in matches:
+ want = expected(render, version)
+ if m.group("v") != want:
+ problems.append(f"{rel}: found {m.group('v')}, want {want}")
+ for rel in ("server.json", "packages/mcp-server-revit/manifest.json"):
+ json.loads(read(ROOT / rel)) # still valid JSON after edits
+ return problems
+
+
+def apply(version: str) -> None:
+ for rel, pattern, render in TARGETS:
+ path = ROOT / rel
+ text = read(path)
+ want = expected(render, version)
+ text = re.sub(
+ pattern,
+ lambda m: m.group(0).replace(m.group("v"), want, 1),
+ text,
+ )
+ write(path, text)
+ write(VERSION_FILE, version + "\n")
+
+
+def changelog_section(version: str) -> str | None:
+ text = read(CHANGELOG)
+ m = re.search(rf"(?ms)^## {re.escape(version)}\b[^\n]*\n(.*?)(?=^## |\Z)", text)
+ return m.group(1).strip() if m else None
+
+
+def roll_changelog(version: str) -> str:
+ text = read(CHANGELOG)
+ if changelog_section(version) is not None:
+ return "changelog already has a section for this version"
+ m = re.search(r"(?ms)^## Unreleased\s*\n(.*?)(?=^## |\Z)", text)
+ if not m or not m.group(1).strip():
+ return "changelog 'Unreleased' is empty - add release notes before tagging"
+ today = datetime.date.today().isoformat()
+ body = m.group(1).strip("\n")
+ new = f"## Unreleased\n\n## {version} - {today}\n\n{body}\n\n"
+ write(CHANGELOG, text[: m.start()] + new + text[m.end():])
+ return f"changelog: Unreleased -> {version} - {today}"
+
+
+def cmd_show(_: argparse.Namespace) -> int:
+ print(current())
+ return 0
+
+
+def cmd_check(args: argparse.Namespace) -> int:
+ version = current()
+ problems = scan(version)
+ if args.tag and args.tag != f"v{version}":
+ problems.append(f"tag {args.tag} does not match VERSION v{version}")
+ if args.tag and changelog_section(version) is None:
+ problems.append(f"CHANGELOG.md has no '## {version}' section for this release")
+ if problems:
+ print(f"Version drift against VERSION={version}:", file=sys.stderr)
+ for p in problems:
+ print(f" - {p}", file=sys.stderr)
+ print("Fix with: python scripts/version.py set " + version, file=sys.stderr)
+ return 1
+ print(f"OK: all manifests at {version}")
+ return 0
+
+
+def cmd_set(args: argparse.Namespace) -> int:
+ if not SEMVER.match(args.version):
+ sys.exit(f"'{args.version}' is not SemVer (MAJOR.MINOR.PATCH[-prerelease])")
+ apply(args.version)
+ print(f"Set {args.version} in {len({t[0] for t in TARGETS})} files + VERSION")
+ if not args.no_changelog:
+ print(roll_changelog(args.version))
+ print("server.json fileSha256 is refreshed by build-release.ps1 -UpdateServerMetadata")
+ return 0
+
+
+def cmd_bump(args: argparse.Namespace) -> int:
+ major, minor, patch, _pre = SEMVER.match(current()).groups()
+ major, minor, patch = int(major), int(minor), int(patch)
+ if args.part == "major":
+ major, minor, patch = major + 1, 0, 0
+ elif args.part == "minor":
+ minor, patch = minor + 1, 0
+ else:
+ patch += 1
+ args.version = f"{major}.{minor}.{patch}"
+ return cmd_set(args)
+
+
+def cmd_notes(args: argparse.Namespace) -> int:
+ version = args.version or current()
+ body = changelog_section(version)
+ if body is None:
+ print(f"No CHANGELOG section for {version}", file=sys.stderr)
+ return 1
+ print(body)
+ return 0
+
+
+def main() -> int:
+ parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
+ sub = parser.add_subparsers(dest="command", required=True)
+ sub.add_parser("show").set_defaults(func=cmd_show)
+ p = sub.add_parser("check")
+ p.add_argument("--tag", help="release tag to validate, e.g. v1.3.0")
+ p.set_defaults(func=cmd_check)
+ p = sub.add_parser("set")
+ p.add_argument("version")
+ p.add_argument("--no-changelog", action="store_true")
+ p.set_defaults(func=cmd_set)
+ p = sub.add_parser("bump")
+ p.add_argument("part", choices=["major", "minor", "patch"])
+ p.add_argument("--no-changelog", action="store_true")
+ p.set_defaults(func=cmd_bump)
+ p = sub.add_parser("notes")
+ p.add_argument("version", nargs="?")
+ p.set_defaults(func=cmd_notes)
+ args = parser.parse_args()
+ return args.func(args)
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/server.json b/server.json
index bcfa60b..092c57a 100644
--- a/server.json
+++ b/server.json
@@ -18,13 +18,13 @@
"source": "github",
"subfolder": "packages/mcp-server-revit"
},
- "version": "1.2.1",
+ "version": "1.3.0",
"packages": [
{
"registryType": "mcpb",
- "identifier": "https://github.com/Sam-AEC/aec-model-bridge/releases/download/v1.2.1/aec-model-bridge-1.2.1.mcpb",
+ "identifier": "https://github.com/Sam-AEC/aec-model-bridge/releases/download/v1.3.0/aec-model-bridge-1.3.0.mcpb",
"fileSha256": "005c9524735ccb1c5d51432bb0969bbd1ad27c4a3765565be8c80922885854a1",
- "version": "1.2.1",
+ "version": "1.3.0",
"transport": {
"type": "stdio"
},