ai
v0.2.3Appling for AI: MCP server, agent sessions and the registry skill
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check
Validate the Appling model and list its errors as file:line:column message. An empty list means the model is valid.
graph_query
Query the semantic graph of the Appling model, the source of truth for business logic: use it before searching application code for rules, states, actions, permissions or flows. With qn: that element with its properties, members and references in both directions. Without qn: elements filtered by kind (Entity, Field, Action, Query...), module or a search text in the qualified name.
| Parameter | Type | Description |
|---|---|---|
kind | string | |
module | string | |
qn | string | |
search | string |
read_source
Read the Appling source text of one element by its qualified name.
| Parameter | Type | Description |
|---|---|---|
qn * | string |
simulate
Ask the simulator about behavior instead of guessing. reach: the shortest path of transitions from the initial state of a machine to a state. actors: for every actor whether it may trigger an action (yes, no, or depends on the data). risks: the invariants an action may violate through the fields it changes. run: run an action on a sample record as an actor, with inputs, and see policies, preconditions, the transition, effects, events, the records it creates, updates or deletes (writes) and violated invariants.
| Parameter | Type | Description |
|---|---|---|
question * | string | |
action | string | actors, risks, run: qualified name of the action |
actor | string | run: qualified name of the actor |
actorFields | object | |
inputs | object | |
machine | string | reach: qualified name of the machine |
record | object | run: field values of the record, such as {"status": "draft", "lines": []} |
state | string | reach: the target state |
edit
Change the model with one edit operation. The edit is validated: it is rejected with the errors when it does not parse or introduces errors. Renames follow every reference. With dryRun, only checks it.
| Parameter | Type | Description |
|---|---|---|
operation * | ||
dryRun | boolean |
language_reference
The complete Appling language documentation: syntax, every keyword of the five layers, expressions, access, modules, migrations and the validation rules, with examples. Without page: the list of pages with their titles and descriptions. With page: that page as Markdown. Read overview first, then the pages for what you write, before writing or editing Appling source.
| Parameter | Type | Description |
|---|---|---|
page | string | Page name from the list, such as overview, domain or expressions |
write_model_file
Create or replace one .appling file of the workspace, such as a new module. The file is written only when the whole workspace still validates with it; otherwise the errors come back. Paths are relative to the workspace folder.
| Parameter | Type | Description |
|---|---|---|
path * | string | Relative path ending in .appling, such as sales/sales.appling |
source * | string | The complete Appling source of the file |
registry_next
The next open task of a generated project in dependency order: the element, what is missing and its model context (properties and related elements), plus the files that produced it. Returns nothing when every task is done or out of attempts.
| Parameter | Type | Description |
|---|---|---|
target | string | Output folder of a generate target; default: the first one |
registry_update
Record the outcome of working on a registry entry: done when the work is implemented and the related tests pass, partial with a note otherwise.
| Parameter | Type | Description |
|---|---|---|
qn * | string | |
status * | string | |
note | string | |
target | string |
run_tests
Run the generated project's tests and return whether they passed with the end of the output.
| Parameter | Type | Description |
|---|---|---|
target | string |
code_references
Where an element and its members are implemented in the application code: each `@appling <qn> <fingerprint>` marker in the code with the declaration it marks (file, start, end, the marker line) and its status: current, stale (the element changed since the code was written, or a migration step renamed it: `marked` is the name in the marker) or orphaned (no such element). Without qn: every reference that is not current, the code to check and record again.
| Parameter | Type | Description |
|---|---|---|
qn | string |
record_code_references
Record where an element is implemented: writes the comment `@appling <qn> <fingerprint>` above the declaration (class, function, block) that starts on each given line, renews the fingerprint of a marker it has there and removes its markers elsewhere. The declaration the marker belongs to is its range, so lines may shift freely afterwards. qn may also be the sub-anchor of a declaring line that is no element: `<usecase>#step[<n>]`, `<usecase>#step[<n>].on[<Error>]`, `<action>#requires[<n>]`, `<page>#component[<n>]`, `<navigation>#item[<label>/<label>]`, `<messages>#message[<key>]` (n from 1). An…
| Parameter | Type | Description |
|---|---|---|
places * | array | |
qn * | string |
implementation_status
How far the model is implemented: per element implemented (a current code reference, or generated code it has not changed since), partial (an open registry task, or a stale code marker: the element changed since its code was written), unimplemented (no code). Returns the counts and every element that is not implemented or changed since the last generation, optionally within one module or element.
| Parameter | Type | Description |
|---|---|---|
module | string | Qualified name of a module or element to narrow to |
set_icons
Set the icons of the nodes on the canvas of the Appling inspector, from the Lucide catalog (lucide.dev, names such as "database", "shopping-cart", "user-round"). They are kept in the project's .appling/view.json, not in the model, and an open canvas shows them at once. A target is the qualified name of a module or a declaration, a kind such as "Entity" (its group and every declaration of that kind without an icon of its own) or "~" for the seed. An empty name removes the icon.
| Parameter | Type | Description |
|---|---|---|
icons * | object | Target to Lucide icon name, such as { "Entity": "database", "sales.Order": "shopping-cart", "~": "cpu" } |