Files
giochino/kitbitz-mcp-call.sh

17 lines
583 B
Bash
Executable File

#!/bin/bash
# Kitbitz MCP client
MCP_URL="https://mcp.kitbitz.art"
call_tool() {
local name="$1"
local args="$2"
curl -s -X POST "$MCP_URL" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"$name\",\"arguments\":$args}}" \
-o - 2>/dev/null | head -1
}
echo "=== SEARCH: characters ==="
call_tool search_illustrations '{"query":"person character sport","formats":["svg","png"],"limit":15}' | python3 -m json.tool 2>/dev/null | head -80