ci: fix discovery response parsing (#1016)
This commit is contained in:
parent
dd11e5be99
commit
8ee9ee68f1
1 changed files with 1 additions and 4 deletions
5
.github/workflows/conformance.yml
vendored
5
.github/workflows/conformance.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue