Files
tinyusdz/examples/mcp_server/test-tools-call.sh
Syoyo Fujita 7cd0016526 optimzie base64
mcp w.i.p.
2025-07-25 05:11:04 +09:00

19 lines
399 B
Bash

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/call",
"params": {
"name": "get_version",
"arguments": {
}
},
"id": 2
}' \
http://localhost:8085/mcp