history_session_bootstrap
Initialize or resume a lossless project history archive for a conversation, capturing the user's verbatim first request and returning a session key to reuse in later calls.
Instructions
Initialize or resume a lossless project history archive (docs/history-session/). Call once near the start of a conversation with the user's verbatim first request as initial_user_input. Echo the returned session_key on later calls in this chat. Without host/explicit session_key, the server mints a new hs_ handle and opens a new archive (does not merge into a shared project-active file). Never invent a key. Returns bounded state (≤64 KiB). Disable with MCP_HISTORY_SESSION=0|false|off.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | resume (default) reuses the archive for this session_key; fresh always creates a new archive | |
| title | No | Archive title when creating a new session | |
| history_dir | No | Relative history directory; default docs/history-session | |
| session_key | No | Echo the server-minted handle from a previous bootstrap in this conversation. Omit only on the first call; omitting later opens a new archive instead of merging. | |
| project_root | No | Project root; omit to use workspace resolution | |
| workspace_root | No | Alias of project_root | |
| create_if_missing | No | Create archive when missing; default true | |
| initial_user_input | No | Verbatim first user request for this conversation |