OGX.AI is a lightweight MCP (Model Context Protocol) endpoint designed to teach AI agents how to generate valid OML (Object Markup Language) files for OGX.JS.
The goal of this project is not to generate OML on the server. Instead, it provides structured knowledge that allows AI models such as GPT, Claude, Grok, Cursor, Copilot, and other MCP-compatible agents to learn the OML language and generate OML themselves.
The AI model remains responsible for:
- Understanding user requirements
- Designing interfaces
- Generating OML markup
OGX.AI provides:
- OML language specification
- Component catalog
- OML examples
- Validation rules
- Optional OML validation endpoint
This keeps the server simple and allows any AI model to become an OML-aware developer.
The catalog is deployed at:
https://oml.globules.io
That URL returns the overview. Read the rest of the catalog at:
https://oml.globules.io/overview
https://oml.globules.io/app
https://oml.globules.io/attributes
https://oml.globules.io/ose
https://oml.globules.io/specification
https://oml.globules.io/components
https://oml.globules.io/examples
https://oml.globules.io/helpers
https://oml.globules.io/validator-rules
https://oml.globules.io/runtime
https://oml.globules.io/runtime/{name}
MCP clients POST JSON-RPC to:
https://oml.globules.io/mcp
{
"mcpServers": {
"ogx-oml": {
"url": "https://oml.globules.io/mcp"
}
}
}The MCP server exposes machine-readable resources describing the language.
General information about OML and OGX.JS.
oml://overview
File layout, app.json, stages, views, controllers, templates, and routes.
oml://app
OML config keys for the core components. Optional components keep their keys on read_runtime.
oml://attributes
Ogx Scripting Engine. Used in HTML templates and in keys that end with :OSE.
oml://ose
Language syntax, rules, and structure.
oml://specification
Available OML components, properties, datatypes, and constraints.
oml://components
Reference OML examples demonstrating common patterns and layouts.
oml://examples
Checks that generated OML must satisfy.
oml://validator-rules
Static JavaScript helpers. These are not OML nodes.
oml://helpers
Index of live object APIs. One object is oml://runtime/{name}.
oml://runtime
Reads one reference document. name is overview, app, attributes, ose, specification, components, helpers, examples, validator-rules, or runtime.
Call read_oml for app, attributes, and ose before writing an application, then specification, components, and examples before writing a route. The resource URIs above are for hosts that attach MCP resources directly.
Reads properties, methods, and events for one class or helper. name is the object name, such as DynamicList, Uxi, or Color. inherited defaults to true and includes documented base classes.
Call read_runtime when the task needs a method or a runtime field. Do not copy those names into an OML node.
Validation rules are published at oml://validator-rules.
validate_oml is the intended tool for an agent to check generated OML and correct it before returning a result. That tool is not served yet.
Example workflow:
User Request
|
v
AI Agent
|
v
Read OML Specification
Read Components
Read Examples
|
v
Generate OML
|
v
validate_oml()
|
v
Fix Errors
|
v
Return Valid OML
OGX.AI/
|
├── mcp.php
├── .htaccess
|
├── resources/
│ ├── overview.json
│ ├── app.json
│ ├── attributes.json
│ ├── ose.json
│ ├── specs.json
│ ├── components.json
│ ├── examples.json
│ ├── helpers.json
│ ├── validator-rules.json
│ └── runtime/
│ ├── index.json
│ └── one JSON file per object
|
└── README.md
- AI-first
- Machine-readable
- Minimal dependencies
- Language-driven
- Open source
- Vendor neutral
- Human documentation optional
The repository itself serves as the source of truth for OML. AI agents consume the exposed resources directly through MCP and generate OML based on the language specification and available components.
OML (Object Markup Language) is the UI description language used by OGX.JS.
OML is designed to be:
- Declarative
- Component-based
- Human readable
- AI friendly
- Easy to validate
- Easy to generate
Copyright (c) 2026 globules.io
Licensed under the GNU Affero General Public License, version 3 or any later version. The full text is in LICENSE.
You may run this endpoint and use what you learn here to write OML. OML you generate is yours. If you modify OGX.AI and serve that modified version on a network, the people who use it must be able to get the corresponding source of your version.