Files
tinyusdz/examples/mcp_server/test-tools-list.sh
Syoyo Fujita 0ceb63b0dc mcp w.i.p.
2025-07-24 12:54:35 +09:00

19 lines
402 B
Bash

hostname=localhost
port_no=8085
entrypoint=mcp
sess_id=`cat sess_id.txt | tr -d '\r'`
sess_header="mcp-session-id: ${sess_id}"
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "${sess_header}" \
-d '{
"jsonrpc": "2.0",
"method": "tools/list",
"params": {},
"id": 2
}' \
http://${hostname}:${port_no}/${entrypoint}