ci: fix discovery response parsing (#1016)

This commit is contained in:
Dale Seo 2026-07-20 20:55:21 -04:00 • committed by GitHub
commit 8ee9ee68f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,8 +97,6 @@ jobs:
-H "Mcp-Method: server/discover" -H "Mcp-Method: server/discover"
) )
# The stateless server streams responses as SSE, so unwrap the
# `data:` payload before parsing as JSON.
discover_response="$( discover_response="$(
curl --fail-with-body --silent --show-error \ curl --fail-with-body --silent --show-error \
"${common_headers[@]}" \ "${common_headers[@]}" \
@ -118,8 +116,7 @@ jobs:
} }
} }
}' \ }' \
"$endpoint" \ "$endpoint"
| sed -n 's/^data: //p'
)" )"
jq -e ' jq -e '
.result.resultType == "complete" and .result.resultType == "complete" and