Session files store complete MCP request/response sequences as JSON, providing a portable record of interactions for replay, debugging, and evidence.Documentation Index
Fetch the complete documentation index at: https://docs.q-uestionable.ai/llms.txt
Use this file to discover all available pages before exploring further.
Session File Format
A session file contains aProxySession object with metadata and an ordered list of ProxyMessage entries:
Session Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique session UUID |
started_at | ISO 8601 timestamp | When the proxy started |
ended_at | ISO 8601 timestamp or null | When the proxy ended (null if still active) |
transport | string | Transport type: stdio, sse, or streamable-http |
server_command | string or null | Server startup command (stdio only) |
server_url | string or null | Server endpoint URL (SSE/HTTP only) |
messages | array | Ordered list of ProxyMessage objects |
metadata | object | Custom metadata (target name, audit notes, etc.) |
Message Fields
| Field | Type | Description |
|---|---|---|
proxy_id | string | Unique proxy-assigned UUID for this message |
sequence | integer | Monotonic sequence number (0-based) within the session |
timestamp | ISO 8601 timestamp | When the proxy received this message |
direction | string | client_to_server or server_to_client |
transport | string | Transport type (stdio, sse, or streamable-http) |
jsonrpc_id | integer, string, or null | JSON-RPC id field (null for notifications) |
method | string or null | JSON-RPC method name (null for responses) |
correlated_id | string or null | Proxy ID of the request this response correlates to |
modified | boolean | true if the user modified this message before forwarding |
payload | object | The complete JSON-RPC message content |
original_payload | object or null | Pre-modification snapshot (present only when modified is true) |
Saving Sessions
Auto-save on Startup
Use--session-file to automatically save when the proxy exits:
Save During Session
Presss in the TUI at any time to save the current session to disk.
Export Command
Export a saved session to a new file:Inspecting Sessions
Quick Review
Print session contents to stdout:Verbose Output
Include full JSON payloads:Message Modification Recording
When you modify a message in intercept mode, the proxy records both versions:original_payload field is only present when modified is true, preserving evidence of user modifications.
Use Cases
Finding Reproduction
Attach the session file when reporting a vulnerability to provide complete evidence:Regression Testing
Store sessions from successful interactions and replay them against new versions:Audit Trails
Export sessions with metadata for compliance documentation:File Size Considerations
Session files scale linearly with message count and payload size. A typical agent interaction with 50 messages averages 10-50 KB. High-volume capture sessions can be 1-10 MB for thousands of messages. For long-running proxies, periodically save sessions with--session-file to manage file size.