# A2UI, OpenAI, and Gravity UI integration guide

Gravity AI UI uses OpenAI structured output to produce a compose_gravity_interface payload. The app validates that payload, transports interface updates as A2UI messages, and renders trusted Gravity UI components instead of arbitrary JSX.

## Integration path

- Model output is constrained to a typed composed interface contract.
- Server validation keeps generated UI inside the curated component registry.
- A2UI messages let clients render progressive product-interface snapshots.
- The Streamable HTTP MCP server exposes search, fetch, generate, and refine tools to agents.

## Agent resources

- OpenAPI spec: https://gravity-ai.ydb-qdrant.tech/openapi.json
- MCP server: https://gravity-ai.ydb-qdrant.tech/mcp
- MCP docs: https://gravity-ai.ydb-qdrant.tech/mcp.md