$ U=$(tr -d '\n' < $HOME/mnt/KIOXIA/p2m_mcp_url.txt)
$ curl -s -m 30 -X POST "$U" -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"t","version":"1"}}}' | head -c 250; echo
{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-06-18","capabilities":{"tools":{"listChanged":false}},"serverInfo":{"name":"pixelstomotors-stats","title":"Pixels to Motors のサイトの計測","version":"1.0.0"},"instructions":"pixelstomo
$ curl -s -m 30 -X POST "$U" -H 'content-type: application/json' -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | python3 -c "import json,sys;print([t['name'] for t in json.load(sys.stdin)['result']['tools']])"
['kpi', 'site_usage', 'crawler_visits', 'hakobu_notice', 'how_to_read', 'record_name_search']
$ curl -s -m 60 -X POST "$U" -H 'content-type: application/json' -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"site_usage","arguments":{"since":"2026-11-02"}}}' | head -c 250; echo
{"jsonrpc":"2.0","id":3,"result":{"content":[{"type":"text","text":"{\"total\":1521,\"counted\":112,\"truncated\":false,\"since\":\"2026-11-02\",\"week\":null,\"who\":\"human\",\"byWeek\":[{\"week\":\"2026-11-02\",\"label\":\"2026-11-02 〜 11-08\",\
$ curl -s -m 60 -X POST "$U" -H 'content-type: application/json' -d '{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"crawler_visits","arguments":{"bot":"Claude-User","since":"2026-11-03"}}}' | python3 -c "import json,sys;d=json.loads(json.load(sys.stdin)['result']['content'][0]['text']);print(d['truncated'],d['byPage'][:15])"
False [{'path': '/robots.txt', 'visits': 1, 'bots': 'Claude-User'}, {'path': '/llms.txt', 'visits': 1, 'bots': 'Claude-User'}, {'path': '/record/gamepad-moves-mecharm-270-pymycobot-version', 'visits': 1, 'bots': 'Claude-User'}, {'path': '/record/serving-robot-faceoff-staff-resolves', 'visits': 1, 'bots': 'Claude-User'}, {'path': '/record/ai-reads-more-than-people', 'visits': 1, 'bots': 'Claude-User'}, {'path': '/record/retrained-pi05-still-needs-human-corrections', 'visits': 1, 'bots': 'Claude-User'}, {'path': '/record/building-a-physical-ai-lab-at-home', 'visits': 1, 'bots': 'Claude-User'}, {'path': '/gpu-buy-or-rent', 'visits': 1, 'bots': 'Claude-User'}, {'path': '/record/openpi-remote-inference-first-run', 'visits': 1, 'bots': 'Claude-User'}, {'path': '/record/pi05-mecharm-demo-to-inference', 'visits': 1, 'bots': 'Claude-User'}, {'path': '/record/serving-robot-one-per-narrow-restaurant', 'visits': 1, 'bots': 'Claude-User'}, {'path': '/record/day103', 'visits': 1, 'bots': 'Claude-User'}, {'path': '/record/pi05-first-block-in-box', 'visits': 1, 'bots': 'Claude-User'}]
$ curl -s -m 30 -o /dev/null -w "wrongkey %{http_code}\n" -X POST "https://pixelstomotors.com/mcp/abc" -d '{}'
wrongkey 404
$ K=$(tr -d '\n\r ' < $HOME/mnt/KIOXIA/p2m_stats_key.txt); curl -s -m 60 -o /dev/null -w "hk html %{http_code}\n" -H "Authorization: Bearer $K" "https://pixelstomotors.com/api/hk-stats"
hk html 200
