Skip to Content
Anuma SDKExpoInternalType AliasesNotionMcpCaller

NotionMcpCaller

NotionMcpCaller = (tool: string, args: Record<string, unknown>) => Promise<{ json: unknown; status: number; }>

Defined in: src/tools/notion.ts:275 

Calls the portal’s Notion MCP endpoint with a tool name and its arguments, and resolves to the response status + parsed JSON. Consumers wire this to POST {portalBaseUrl}/api/v1/connectors/notion/mcp with the user’s Privy bearer and a JSON body { tool, arguments }; the portal mints the Notion token and runs the MCP handshake server-side.

Parameters

ParameterType

tool

string

args

Record<string, unknown>

Returns

Promise<{ json: unknown; status: number; }>

Last updated on