Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mirage.strukto.ai/llms.txt

Use this file to discover all available pages before exploring further.

NotionResource exposes a Notion workspace through Notion’s MCP server. Auth uses an OAuth client provider so secrets stay off the page.
Browser only. The Mirage Node SDK does not currently ship a Notion resource.

Install

pnpm add @struktoai/mirage-browser @modelcontextprotocol/sdk

Config

import { MountMode, NotionResource, Workspace } from '@struktoai/mirage-browser'

const notion = new NotionResource({
  authProvider, // OAuthClientProvider from @modelcontextprotocol/sdk
})

const ws = new Workspace({ '/notion': notion }, { mode: MountMode.READ })
await ws.execute('ls /notion/')
FieldDefaultNotes
authProviderrequiredOAuthClientProvider from @modelcontextprotocol/sdk. Redacted in snapshots.
serverUrlNotion’s hosted MCP endpointOverride if you proxy MCP through your own URL.

Mount mode

read, write (page edits via the MCP server). For the page/database layout and supported edits see the Python Notion docs.