s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All packages
Agents & runtime v0.57.40 New

@happyvertical/smrt-mcp-openai

Optional OpenAI navigation, settings, context, messages, and composer mentions for authorized s-m-r-t MCP Apps.

Source ↗

What it gives you

Optional OpenAI navigation, settings, context, messages, and composer mentions for authorized s-m-r-t MCP Apps.

  1. 01Ordinary s-m-r-t apps do not import this package
  2. 02Server helpers wrap existing app-MCP workflows; they add no second server and no authorization policy
  3. 03Browser helpers depend on the portable smrt-mcp-apps bridge and fall back to inline layouts and plain links

Server composition

withOpenAiEntrypoints marks idempotent read tools as global or thread entry points. bindOpenAiSettings wraps a read and an update workflow into structured settings; the owning handlers authorize ownership, recheck the tenant, and persist atomically. openAiDisplayMetadata and openAiOnboardingDeclaration return metadata the application merges itself.

Browser navigation

observeOpenAiNavigation consumes bounded host context, recognizes only deep links, and calls a designated server tool with the URL. Repeated identical routes do not duplicate calls. Query parameters are untrusted input, never identity or approval. Only a rejected tool call selects the denied fallback.

Context, messages, mentions

updateOpenAiModelContext and sendOpenAiMessage use negotiated native support and fall back to portable text. withOpenAiMentionSearch declares bounded composer search; results are discovery hints, and the selection workflow rechecks ownership on every call.