Python Helpers¶
The Python helpers provide small, inspectable utilities for local payload generation and offline response inspection.
Use:
samples/python/build_payloads.py
samples/python/knowledge_base_mcp_consumer.py
samples/python/inspect_retrieve_response.py
Run the inspector against checked-in sample responses:
python3 samples/python/inspect_retrieve_response.py samples/responses/mcp-retrieve.sample.json
python3 samples/python/inspect_retrieve_response.py samples/responses/fabric-airline-ops-retrieve.sample.json
python3 samples/python/inspect_retrieve_response.py samples/responses/combined-airline-ops-retrieve.sample.json
Use build_payloads.py when you want representative MCP Server KS, Fabric Ontology KS, MCP-only KB, Fabric-only KB, and combined KB payloads generated from the reusable Python builders.
Use knowledge_base_mcp_consumer.py only with a deployed Knowledge Base. Its canonical environment, authentication, sanitized evidence, and POSIX/Windows command contract are in Call the Knowledge Base Through MCP.
Next: read Offline Replay.