{"at":"2026-11-22T23:49:13.916Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-22T23:49:14.314Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"guardbee-model-scanner","version":"0.1.0"}},"cacheScope":"private","capabilities":{"tools":{"listChanged":true}},"resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-22T23:49:14.314Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-22T23:49:14.319Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"guardbee-model-scanner","version":"0.1.0"}},"cacheScope":"private","resultType":"complete","tools":[{"description":"Scan a single ML model file for supply-chain risks: dangerous Python globals reachable during pickle deserialization (os/subprocess/eval/socket/dill gadgets, inside PyTorch zip checkpoints, joblib dumps and NumPy object arrays too), a malformed or disguised .safetensors header, a Keras Lambda-layer RCE pattern in .h5/.keras files, a path-traversal external_data reference in .onnx files, malformed GGUF headers and chat templates that escape the Jinja sandbox or carry hidden instructions, and TensorFlow SavedModel/GraphDef/TFLite graphs that read or write files or call Python.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"path":{"description":"Absolute or relative path to the model file (.pt, .pth, .ckpt, .pkl, .pickle, .bin, .dill, .joblib, .jbl, .npy, .npz, .safetensors, .h5, .hdf5, .keras, .onnx, .gguf, .pb, .pbtxt, .tflite)","type":"string"}},"required":["path"],"type":"object"},"name":"scan_file"},{"description":"Recursively scan a directory for ML model files (.pt, .pth, .ckpt, .pkl, .pickle, .bin, .dill, .joblib, .jbl, .npy, .npz, .safetensors, .h5, .hdf5, .keras, .onnx, .gguf, .pb, .pbtxt, .tflite; a TensorFlow SavedModel directory through its saved_model.pb) and report supply-chain risks in each. Automatically skips node_modules, .git, venv, and other non-model directories.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"exclude":{"description":"Skip files/dirs whose path contains one of these strings","items":{"type":"string"},"type":"array"},"include":{"description":"Only scan files whose path contains one of these strings","items":{"type":"string"},"type":"array"},"maxFiles":{"description":"Maximum number of files to scan (default: 2000)","exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"path":{"description":"Absolute or relative path to the directory to scan","type":"string"}},"required":["path"],"type":"object"},"name":"scan_directory"},{"description":"Scan every model file in a Hugging Face model repo at a pinned commit. The revision (branch, tag or commit sha, default main) is resolved to a commit sha and all files are read from it. Files over 256 MB are checked from their first 64 MB (and last 64 MB for zip containers), which hold the headers and pickle streams the checks read. Gated or private repos need HF_TOKEN in the server's environment.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"maxFiles":{"description":"Maximum number of model files to fetch and scan (default: 200)","exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"repo":{"description":"Model repo id, e.g. \"openai-community/gpt2\"","type":"string"},"revision":{"description":"Branch, tag or commit sha (default: main)","type":"string"}},"required":["repo"],"type":"object"},"name":"scan_hf_repo"},{"description":"List every dangerous Python global (module.function) this scanner treats as a red flag when found referenced inside a pickled model file, grouped by risk category","inputSchema":{"properties":{},"type":"object"},"name":"list_patterns"}],"ttlMs":0}}}
{"at":"2026-11-22T23:49:14.420Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-22T23:49:14.837Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"guardbee-model-scanner","version":"0.1.0"}}}}
{"at":"2026-11-22T23:49:14.837Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-22T23:49:14.837Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-22T23:49:14.841Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Scan a single ML model file for supply-chain risks: dangerous Python globals reachable during pickle deserialization (os/subprocess/eval/socket/dill gadgets, inside PyTorch zip checkpoints, joblib dumps and NumPy object arrays too), a malformed or disguised .safetensors header, a Keras Lambda-layer RCE pattern in .h5/.keras files, a path-traversal external_data reference in .onnx files, malformed GGUF headers and chat templates that escape the Jinja sandbox or carry hidden instructions, and TensorFlow SavedModel/GraphDef/TFLite graphs that read or write files or call Python.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"path":{"description":"Absolute or relative path to the model file (.pt, .pth, .ckpt, .pkl, .pickle, .bin, .dill, .joblib, .jbl, .npy, .npz, .safetensors, .h5, .hdf5, .keras, .onnx, .gguf, .pb, .pbtxt, .tflite)","type":"string"}},"required":["path"],"type":"object"},"name":"scan_file"},{"description":"Recursively scan a directory for ML model files (.pt, .pth, .ckpt, .pkl, .pickle, .bin, .dill, .joblib, .jbl, .npy, .npz, .safetensors, .h5, .hdf5, .keras, .onnx, .gguf, .pb, .pbtxt, .tflite; a TensorFlow SavedModel directory through its saved_model.pb) and report supply-chain risks in each. Automatically skips node_modules, .git, venv, and other non-model directories.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"exclude":{"description":"Skip files/dirs whose path contains one of these strings","items":{"type":"string"},"type":"array"},"include":{"description":"Only scan files whose path contains one of these strings","items":{"type":"string"},"type":"array"},"maxFiles":{"description":"Maximum number of files to scan (default: 2000)","exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"path":{"description":"Absolute or relative path to the directory to scan","type":"string"}},"required":["path"],"type":"object"},"name":"scan_directory"},{"description":"Scan every model file in a Hugging Face model repo at a pinned commit. The revision (branch, tag or commit sha, default main) is resolved to a commit sha and all files are read from it. Files over 256 MB are checked from their first 64 MB (and last 64 MB for zip containers), which hold the headers and pickle streams the checks read. Gated or private repos need HF_TOKEN in the server's environment.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"maxFiles":{"description":"Maximum number of model files to fetch and scan (default: 200)","exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"repo":{"description":"Model repo id, e.g. \"openai-community/gpt2\"","type":"string"},"revision":{"description":"Branch, tag or commit sha (default: main)","type":"string"}},"required":["repo"],"type":"object"},"name":"scan_hf_repo"},{"description":"List every dangerous Python global (module.function) this scanner treats as a red flag when found referenced inside a pickled model file, grouped by risk category","inputSchema":{"properties":{},"type":"object"},"name":"list_patterns"}]}}}
