ui-mcp
v0.0.1-beta.11MCP server adapter for this project's A2UI integration.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_ui_catalog Get A2UI Catalog
Step 1 of the A2UI MCP workflow. Call this before send_ui_to_client. A2UI tool workflow order: get_ui_catalog -> send_ui_to_client. With no componentNames it returns the catalog directory: the catalog id and every component name with one line saying what it is for. Choose all components the UI needs, then call again with those componentNames. With componentNames it returns only the selected generation contract: A2UI guidance in catalog.instructions and machine-readable component/function definitions in catalog.definitions. The directory is omitted from this selected response. Basic compone…
| Parameter | Type | Description |
|---|---|---|
componentNames | array | Component names whose field rules and schemas you need. Omit on the first call to get the catalog directory — every component name with one line on what it is for — then call again with the compon… |
functionNames | array | Optional catalog function names whose full schemas you need (e.g. formatDate, formatNumber). The directory instructions list available functions by name and arguments; requested schemas are returned i… |
send_ui_to_client
Final step: render UI on the client by submitting structured A2UI messages. A2UI tool workflow: 1. Call get_ui_catalog with no componentNames to see what the catalog has, then call it again with only the componentNames this UI needs. Selected definitions contain the complete JSON Schemas and shared reference context. 2. Call send_ui_to_client last with A2UI messages built from catalog.definitions returned by get_ui_catalog. Do not guess component schemas. Do not call this tool before get_ui_catalog in the same task. This tool validates and returns A2UI messages; it is not the source of compo…
| Parameter | Type | Description |
|---|---|---|
messages * | array | The complete A2UI v0.9.1 UI message array. Every message you generate must use "version": "v0.9.1"; no other wire version is accepted. Use this only as workflow step 2, after fetching component schema… |
surfaceId | string | Optional expected surface id for this UI call. When supplied, `messages[0].createSurface.surfaceId` must match it. |