AI-ready · One language · MCP

AI-ready platform for complex business applications

AI writes code for any platform, but as the task grows, it is the platform that decides what the result costs in duplication, errors, tokens and review. lsFusion takes accidental complexity off the agent: one declarative language describes the whole application, the platform checks it early and runs code on the fly.

  • 1 languagedata, logic, forms, integrations
  • 6 paradigmsin one declarative language
  • MCPguidance and docs for agents
AI agent · application MCP
Why is this customer's balance negative?
lsfusion_files_search · "balance"
balance(Customer c) = paid(c) - invoiced(c);
lsfusion_eval
EXPORT FROM number(Invoice i), date(i), debt(i)
    WHERE customer(i) = $1 AND debt(i) > 0
    ORDER date(i);
AI
The balance is the amount paid minus the amount invoiced. These invoices still have an outstanding debt.
MCP
Built-in MCP serveryour application’s tools for agents
EVAL
Interpreterruns code on the fly
Works with the AI tools your team uses
  • ◇ Claude Code
  • ◇ Claude
  • ◇ ChatGPT
  • ◇ Codex
  • ◇ Remote MCP clients

Platforms still matter

The more complex the task, the more the platform matters

In simple tasks the choice of platform hardly matters. In complex ones, AI-generated code tends to pile up duplication and contradictions, performance problems and errors, and to cost more tokens and more review time. Much of that depends on the platform, not only on the model.

AUTO

Less accidental complexity

The platform compiles the logic into SQL and optimizes the queries, maintains calculated data incrementally, keeps the interface reactive and connects the database, the application server and the browser — infrastructure an agent does not have to write.

LSF

One language instead of a stack

Data, calculations, constraints, events, forms, reports and integrations are written in one declarative language. An agent reads and writes one language instead of a stack, and modules let it load only the code a task needs.

ERR

Errors caught early

The IntelliJ IDEA plugin highlights errors as the code is written, and the server reports more at startup and at runtime. The earlier an error is found, the faster an agent can fix it — before a person spends time reviewing it.

What makes a platform AI-ready

Eight requirements, one platform

An AI-ready platform removes the complexity that is not part of the task and helps with the rest: larger building blocks to choose from instead of generating from scratch, and loose coupling, so that only the part of the system relevant to a task is in play.

  • ✓
    Declarative and modular — an agent loads anything from the whole project down to the modules a task needs
  • ✓
    One language — not a visual builder, and not a language plus libraries
  • ✓
    Everything as code — logic, forms and their design are plain-text modules
  • ✓
    Open source — an agent can read the platform’s code when in doubt
  • ✓
    No legacy — the platform does not drag its own legacy along, so what looks logical usually is how it works
  • ✓
    Early error checks — in the IDE, at server start and at runtime
  • ✓
    Performance out of the box — query optimization, incremental updates and caching come from the platform: in production, up to 10,000 concurrent users and 1 billion records
  • ✓
    Interpreter — the server runs code on the fly, like an SQL server
Read the AI section of the docs →
How an agent works with lsFusionOne language end to end
AI
AI agentClaude, ChatGPT, Codex or another MCP client
MCP
DOC
Guidance and documentationBrief, Rules and documentation search
ai.lsfusion.org
IDE
IntelliJ IDEA pluginelement search, early error highlighting
MCP
LSF
lsFusion serverinterpreter: runs scripts and actions on the fly
eval · exec
DB
PostgreSQLdata, queries and ACID transactions
SQL
EXPORT FROM number(Order o), date(o), total(o)
    WHERE date(o) >= 2026_01_01
    ORDER total(o) DESC;

AI-managed systems

People managed systems through the UI. Now AI can too

With all the logic in one language and an interpreter on the server, an agent can work with a running system on behalf of a user. These are the scenarios this architecture makes possible.

DOC

Auto-documentation

What does this status mean? The agent reads the actual logic — code, properties, conditions and links — and explains the answer in plain language.

WHY

Drill-down

Why is this customer in the red? The agent breaks an indicator into its components, builds an intermediate form and shows it to the user.

IN

Data entry

Load the delivery from this email. The agent extracts data from unstructured text, matches it to the right objects and fills in the form.

RPT

Reporting

Show sales by region for the month. The agent builds the slice itself: fields, filters, grouping and output format.

UI

Form customization

Add a tab with all the customer’s documents. The agent adapts a form to the user’s task and saves it as the user’s own view.

ACT

Business actions

Move these orders to tomorrow. The agent finds the right operation, checks the context and runs it in a form or through the business logic.

i
A chat does not replace the interface. Forms stay a full declarative UI with reactivity: they are how a person sees and controls the system. The agent works alongside them, not instead of them. The tools for these scenarios are the application’s MCP server, WebMCP in the browser and per-user form customization by code.

Why one language and an interpreter

Three kinds of AI actions, one platform

Agent actions fall into reading data, changing data and dynamic UI. In a three-layer stack (database, application, UI) each next kind adds its problems to the previous ones. In lsFusion all three go through the same language and the same interpreter.

  • Read: the logic is in one place, and the interpreter runs the query at once.
  • Change: when changes are saved, the platform checks constraints, runs events and updates materializations in one transaction.
  • Dynamic UI: forms are written in the same language, so an agent can build one on the fly.
READ
Readdocs · drill-down · reports
WRITE
Changedata entry · business actions
UI
Dynamic UIforms on the fly
REV
Reviewa person checks it in forms
One language+ interpreter

The difference

A three-layer stack and lsFusion

Without one declarative language and an interpreter, most AI scenarios beyond simple reading turn into separate engineering tasks. And generating low-level code for every layer means more errors, more time and more tokens.

AI actionThree-layer stacklsFusion
ReadLogic is spread across database, application and UI; the agent still generates reading code and has to decide where to run itThe agent reads the logic in one place; the interpreter runs the query immediately
ChangeConstraints, events and materializations live in different layers; the agent has to reconcile them itselfThe platform checks constraints, handles events and updates materializations
Dynamic UIA new form means generating, building and deploying UI code — not workable for a one-off viewForms are written in the same language, so a form for the task is built on the fly
One-off executionStacks are built to deploy and run, not to execute arbitrary code onceThe server accepts code and runs it on the fly, like an SQL server

Get started

Give your agent lsFusion knowledge and tools

The guidance and the documentation reach AI tools over MCP, so an agent works from the platform’s rules instead of guessing them from mainstream frameworks.

  1. 01
    Install the Claude Code plugin/plugin marketplace add lsfusion/ai-skills, then /plugin install lsfusion-ai-skills: skills for development, deployment and running code, plus the MCP server
    Plugin
  2. 02
    Connect the MCP serverAdd https://ai.lsfusion.org/mcp to Claude, ChatGPT or Codex
    MCP
  3. 03
    Read the Brief and the RulesA compact map of the language and the coding rules for AI assistants
    Docs
  4. 04
    Use the IntelliJ IDEA pluginIts MCP tools let an agent search the project’s elements and the documentation
    IDE
  5. 05
    Turn on your application’s MCP serverAgents call its tools at /mcp with OAuth, and in a browser with WebMCP the web client gives the same tools to the browser’s agent
    App

AI questions

Before you connect an agent

Read the AI section of the docs

What does “AI-ready” mean?

A platform that takes the complexity unrelated to the task off the agent and gives it convenient means to work with the rest: declarative and modular code, one language, everything as code, open source, no legacy, early error checks, performance out of the box and an interpreter.

Do language models know lsFusion?

Less well than mainstream stacks: lsFusion is a niche technology with a smaller public corpus. That is why its guidance and documentation are served to AI tools over MCP, and the IDE and the server report errors early, so an agent gets feedback it can act on in the next step.

Which AI tools can I use?

Any client that can connect to a remote MCP server. Claude Code gets a plugin with skills and the MCP server; Claude, ChatGPT and Codex connect the MCP server at https://ai.lsfusion.org/mcp.

Can an agent work with a running application?

Yes. Through the HTTP API the server runs lsFusion code and actions on the fly. The application is also an MCP server itself: agents call its tools over HTTPS with OAuth, and in a browser that supports WebMCP the page of the web client gives the browser’s agent the same tools, plus tools of its own for working in the forms the user has open.

Is it safe to let an agent run code?

Give the agent only what it needs: expose specific actions marked with @@api for routine tasks, and allow running arbitrary code (the enableAPI parameter) only for the roles that need it. By default the API is off, the application’s MCP endpoint works only over HTTPS, and code run from text is written to a log with the user, the computer and the address.

Does the interface turn into a chat?

No. Forms remain a full declarative interface with reactivity, because they are how a person sees and controls the system. The agent works alongside them, and the user checks the result in the same forms.

Platforms still matter

It’s not the model that wins. It’s the platform

Connect the lsFusion guidance to your AI assistant and build on a platform that suits AI.