#!/usr/bin/env bash # Rebuilds the standalone Novelly.Mcp binary that Claude Code (or Claude Desktop) spawns # per .mcp.json. Aspire does not run or manage this process, so nothing else rebuilds it — # run this after pulling changes that touch src/Novelly.Mcp, or the MCP server silently # keeps serving whatever was published last. set -euo pipefail cd "$(dirname "${BASH_SOURCE[0]}")/.." && source ./scripts/ci/lib.sh cd "$CI_ROOT" ensure_dotnet log "Publishing Novelly.Mcp to ./mcp-server" dotnet publish src/Novelly.Mcp -c Release -o ./mcp-server log "Done. Reconnect the MCP server (e.g. /mcp in Claude Code) to pick up the new build."