Skip to content
globules-ioPublic

About

OGX.AI engine - AI generation of OML for OGX.JS / OGX.Server

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OGX.AI

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.

Philosophy

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.

Site

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}

Endpoint

MCP clients POST JSON-RPC to:

https://oml.globules.io/mcp
{
  "mcpServers": {
    "ogx-oml": {
      "url": "https://oml.globules.io/mcp"
    }
  }
}

Resources

The MCP server exposes machine-readable resources describing the language.

Overview

General information about OML and OGX.JS.

oml://overview

App

File layout, app.json, stages, views, controllers, templates, and routes.

oml://app

Attributes

OML config keys for the core components. Optional components keep their keys on read_runtime.

oml://attributes

OSE

Ogx Scripting Engine. Used in HTML templates and in keys that end with :OSE.

oml://ose

Specification

Language syntax, rules, and structure.

oml://specification

Components

Available OML components, properties, datatypes, and constraints.

oml://components

Examples

Reference OML examples demonstrating common patterns and layouts.

oml://examples

Validator rules

Checks that generated OML must satisfy.

oml://validator-rules

Helpers

Static JavaScript helpers. These are not OML nodes.

oml://helpers

Runtime

Index of live object APIs. One object is oml://runtime/{name}.

oml://runtime

Tools

read_oml

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.

read_runtime

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

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

Repository Structure

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

Design Goals

  • 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.

About OML

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

License

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.

About

OGX.AI engine - AI generation of OML for OGX.JS / OGX.Server

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages