Skip to main content
Defined in: client/browser-stores.ts:15 KeyValueStore backed by localStorage. Synchronous and simple; suitable for OAuth tokens and client registration state in single-page apps. Keys are namespaced by a prefix to avoid collisions with other app state.

Implements

Constructors

Constructor

Defined in: client/browser-stores.ts:18

Parameters

prefix?
string = 'fastmcp:'

Returns

LocalStorageStore

Methods

delete()

Defined in: client/browser-stores.ts:30

Parameters

key
string

Returns

Promise<void>

Implementation of


get()

Defined in: client/browser-stores.ts:22

Parameters

key
string

Returns

Promise<string | null>

Implementation of


set()

Defined in: client/browser-stores.ts:26

Parameters

key
string
value
string

Returns

Promise<void>

Implementation of