# health probe (no auth)
curl -sS https://mcp.oluwadunsin.dev/health
# initialize handshake
curl -sS -D /tmp/h.txt -X POST https://mcp.oluwadunsin.dev/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-Api-Key: <your key>" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"0"}}}'
SESSION=$(grep -i mcp-session-id /tmp/h.txt | awk '{print $2}' | tr -d '\r\n')
curl -sS -X POST https://mcp.oluwadunsin.dev/mcp \
-H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
-H "X-Api-Key: <your key>" -H "Mcp-Session-Id: $SESSION" \
-d '{"jsonrpc":"2.0","method":"notifications/initialized"}'
curl -sS -X POST https://mcp.oluwadunsin.dev/mcp \
-H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
-H "X-Api-Key: <your key>" -H "Mcp-Session-Id: $SESSION" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'