> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class: McpRequestJournal

> A small host-side write-ahead journal.

[mcp/node](/api/modules/mcp_node).McpRequestJournal

A small host-side write-ahead journal. The host must supply a replay-stable
call ID (Eve callId, or a persisted Mastra workflow step identity).
Exclusive publication and fsync survive concurrency and process termination.
This stores request intent, never business acceptance.

## Implements

* [`McpRequestStore`](/api/interfaces/mcp_node.McpRequestStore)

## Constructors

### constructor

• **new McpRequestJournal**(`directory`)

#### Parameters

| Name | Type |
| :- | :- |
| `directory` | `string` |

## Methods

### load

▸ **load**(`callId`): `Promise`\<`null` | [`McpRequestRecord`](/api/modules/mcp_node#mcprequestrecord)>

#### Parameters

| Name | Type |
| :- | :- |
| `callId` | `string` |

#### Returns

`Promise`\<`null` | [`McpRequestRecord`](/api/modules/mcp_node#mcprequestrecord)>

#### Implementation of

[McpRequestStore](/api/interfaces/mcp_node.McpRequestStore).[load](/api/interfaces/mcp_node.McpRequestStore#load)

***

### prepare

▸ **prepare**(`callId`, `input`): `Promise`\<[`McpRequestRecord`](/api/modules/mcp_node#mcprequestrecord)>

#### Parameters

| Name | Type |
| :- | :- |
| `callId` | `string` |
| `input` | `Omit`\<[`McpRequestRecord`](/api/modules/mcp_node#mcprequestrecord), `"request_key"`> |

#### Returns

`Promise`\<[`McpRequestRecord`](/api/modules/mcp_node#mcprequestrecord)>

#### Implementation of

[McpRequestStore](/api/interfaces/mcp_node.McpRequestStore).[prepare](/api/interfaces/mcp_node.McpRequestStore#prepare)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.