$ErrorActionPreference = "Stop"

$projectDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$jar = Join-Path $projectDir "target\smqjh-mcp-server-0.1.0.jar"
if (-not (Test-Path $jar)) {
  & (Join-Path $projectDir "build.ps1")
}

java -jar $jar
