Truncate xcrs description to 100 chars at publish time
The tagged server-xcrs.json may carry a description longer than the MCP Registry's 100-character limit. Truncate it in the workflow so re-runs against an already-tagged release don't fail validation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Seto Elkahfi committed
Aug 2, 2026 at 17:53 UTC
dedb8589d96ed60fdc687404515c45d69384be9a
1 file changed
+1
-1
.github/workflows/release-mcp-registry.yml
+1
-1
@@ -61,7 +61,7 @@ jobs:
61
exit 1
62
fi
63
jq --arg v "${xcrs_version}" \
64
- '.version = $v | .packages |= map(.version = $v)' \
64
+ '.version = $v | .packages |= map(.version = $v) | .description |= if length > 100 then .[0:97] + "..." else . end' \
65
server-xcrs.json > server-xcrs.tmp
66
mv server-xcrs.tmp server-xcrs.json
67
cat server.json