Repository navigation
Closed
Description
Found while writing frontmcp.dev's Tool UI and @frontmcp/react reference. Each item was checked against the published 1.8.4 packages, whose UI code 1.8.5 doesn't change. The checks used Playground examples, Node and jsdom projects, and Chromium pages against a real server.
@frontmcp/react
- It doesn't start in a browser. A plain Vite build of the smallest app succeeds, then fails on load with
(0 , A.createRequire) is not a function. - The subpath entry points are disconnected from the provider.
@frontmcp/react/state,/apiand/aieach carry their ownFrontMcpContextandserverRegistry. As a result:useStoreResource,useReduxResource,useValtioResourceanduseApiClientregister nothing.useAIToolsanduseToolsstay{ tools: null, loading: true }.
- Inline schemas loop forever.
useDynamicTool({ schema: z.object(…) })written inside a component, under anything that reads server state, never settles.AgentSearchalways does this, andAgentContentdoes without aninputSchema. - Router entries can't go into
create().create({ tools: createRouterEntries().tools })throws aZodErrorattools.0.name. -
ToolFormsubmits an untouched enum field as"". - Store resources don't update subscribers. A root
useStoreResource("state://…")keeps its first value untilrefetch(). -
useServer()ignores the provider's name; it always reads"default". - The docs are wrong in several places:
datais the whole MCP result, soString(data)shows[object Object].- Tool failures arrive in
datawithisError: true, not inerror. - Plain objects in
create({ resources })fail with "Expected a class or a resource function". zisn't re-exported.
Tool UI (ui option)
- With
ui,outputSchemastops stripping fields. Returning{ name, passwordHash }withoutputSchema: { name }sends the hash instructuredContent, incontentand to the page, for every client except"gemini". -
ui.cspnever reaches the page's own CSP.connect-srclists only the five CDNs, so a widget'sfetchto a declaredconnectDomainsorigin is blocked. - The widget resource carries CSP only after a call.
resources/readbefore anytools/callhas no_meta. - Widget URIs are wrong in two ways.
resourceUri: "ui://my-app/card.html"is advertised, but reading it returns-32602 Resource not found. An unknownui://widget/<name>.htmlreturns a placeholder page instead of an error. - A capitalized template function, or any React component used as
template, renders nothing. The page gets an empty<div id="root">and stays on "Loading widget...". - Markdown and MDX template strings aren't converted.
-
.tsxwidgets don't build in ES-module projects (Dynamic require of "path" is not supported). - Serving modes: hybrid mode sends no code (
_meta["ui/component"]is only{ type, hash, toolName }), anddirect-urlandcustom-urlbehave as inline. - Options that do nothing:
- Accepted with no effect:
widgetDescription,widgetAccessible,displayMode,prefersBorder,sandboxDomain,contentSecurity,hydrate,runtimeOptions,mdxComponents,bundlingMode,uiTypeandhtmlResponsePrefix. - Nothing is sanitized.
<script>,onclickandjavascript:in trusted markup reach the page.
- Accepted with no effect:
- Host settings are ignored.
extApps.enabled: falsestill answersui/*requests. Capabilities put inextApps.hostCapabilities(openLink,modelContextUpdate,widgetTools) have no implementation and fail with-32003. - MCP Apps clients aren't detected on 2026-07-28. A client declaring the capability gets platform
"unknown". - Tool output handling is wrong for two hosts. After an MCP Apps host's
tool-result,useToolOutput()holds the content array instead of the object. Static widgets under the OpenAI Apps SDK show{}. -
@frontmcp/uihooks misbehave in real pages.useHostContext()is alwaysnull.- In MCP Apps hosts,
useTheme()stays"light", anduseCapability("canCallTools")staysfalseafter the handshake.
-
autoResize: falsedoesn't stopui/setSize. - The bridge's minifier removes spaces in messages (
…on this platform(ext-apps)). - The docs don't match the code in five places:
card(),badge(),descriptionList(),button(),form()andinput()aren't exported from@frontmcp/ui.useCallToolreturns a tuple.- There's no
openai/outputTemplate. - There's no dual payload.
- Markup isn't sanitized by default.
Activity
fix(react,ui): browser start-up, shared provider context, Tool UI out…
fix(react,ui): browser start-up, shared provider context, Tool UI out…
Cherry-pick: fix(react,ui): browser start-up, shared provider context…
frontegg-david commentedon Sep 30, 2026
Fixed in #664 (release/1.8.x), back-ported to main in #669: browser start-up, shared provider context, and Tool UI output, CSP and URI handling, with tests. Ships in the next 1.8.x release.
fix: deployment, CLI, Nx, Tool UI, React, WebMCP and edge items from …