@qodalis/mcp-cli 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ All notable changes to this project are documented here. The format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
5
5
  [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## [0.2.2] - 2026-11-05
8
+
9
+ ### Changed
10
+
11
+ - Bundled plugin guide (`docs/llms-full.txt`) refreshed for the servers' 1.0.0-beta.15: inside a
12
+ job (run properties, discard, a service scope per run in .NET), stable job ids, run on start,
13
+ executions across jobs and pruning; the audit log (target, properties, actor and offset
14
+ filters, the .NET EF Core store); the installed plugins list. For all three servers.
15
+
7
16
  ## [0.2.1] - 2026-11-05
8
17
 
9
18
  ### Changed
@@ -1571,6 +1571,51 @@ The jobs API (`/api/v1/qcli/jobs`), the `jobs_*` MCP tools, `server jobs` and th
1571
1571
  - `StopAsync`, `CancelAsync` and `UpdateAsync` default to `NotSupportedException` (HTTP `501`, `NOT_SUPPORTED`); the dashboard shows only the actions in `Actions`.
1572
1572
  - Throw `KeyNotFoundException` for an unknown job (`404`) and `InvalidOperationException` when the job's state refuses the action (`409`).
1573
1573
 
1574
+ ### Jobs: inside a job (all servers)
1575
+
1576
+ A job's execution context gives each run its log lines, `properties` (the run's own values, saved with the execution and returned by the API as `properties`, e.g. `items=32`) and `discard()` (leaves a completed run that found nothing to do out of the history; failed runs are always kept).
1577
+
1578
+ - .NET: `context.Properties["synced"] = 12`, `context.Discard()`, and `context.Services`, a DI scope created for the run (for a `DbContext`).
1579
+ - Node: `context.properties.synced = 12`, `context.discard()`.
1580
+ - Python: `context.properties["synced"] = 12`, `context.discard()`.
1581
+ - Job ids are stable: the `id` option (`Id`, `id`), or the job's name (`-2`, `-3`, ... for duplicate names). The API, the history and a saved pause use the id, so keep it the same across releases. Ids may not contain `/`, `\`, `?` or `#`.
1582
+ - A saved pause or stop survives a restart; disabling a job in code (`Enabled = false`, `enabled: false`, `enabled=False`) always keeps it stopped.
1583
+ - `RunOnStart` / `runOnStart` / `run_on_start` runs a job when the server starts; an interval job keeps its rhythm across restarts (the next run is the last run plus the interval).
1584
+ - Run a job from the host's own code through the scheduler interface: `ICliJobScheduler.TriggerAsync(id)` (.NET, resolve the interface), `scheduler.triggerAsync(id)` (Node), `await scheduler.trigger(id)` (Python).
1585
+ - `GET /api/v1/qcli/jobs/executions?job=a,b&group=&status=&since=&limit=&offset=` lists the runs of several jobs (or every job), newest first. Job storage can delete old runs: `PruneAsync(before)` (.NET), `prune(before)` (Node, Python).
1586
+
1587
+ ```csharp
1588
+ public class SyncOrdersJob : ICliJob
1589
+ {
1590
+ public async Task ExecuteAsync(ICliJobExecutionContext context, CancellationToken cancellationToken)
1591
+ {
1592
+ var synced = await context.Services.GetRequiredService<IOrderSync>().SyncAsync(cancellationToken);
1593
+ if (synced == 0) { context.Discard(); return; }
1594
+ context.Properties["synced"] = synced;
1595
+ }
1596
+ }
1597
+
1598
+ builder.Services.AddControllers().AddCli(cli => cli
1599
+ .AddJob(new SyncOrdersJob(), o => { o.Id = "sync-orders"; o.Interval = TimeSpan.FromMinutes(5); o.RunOnStart = true; })
1600
+ // history and state in your database (Qodalis.Cli.Plugin.Jobs.EfCore)
1601
+ .AddEfCoreJobStorage(o => o.UseNpgsql(connectionString)));
1602
+ ```
1603
+
1604
+ - .NET only: `AddEfCoreJobStorage` keeps the history in any EF Core database and creates its tables (`job_executions`, `job_states`) even in a database that already has others; call `modelBuilder.ApplyJobStorageModel()` to keep them in your own migrations. Database stores return `properties` values as JSON values.
1605
+
1606
+ ### Audit log (all servers)
1607
+
1608
+ The users plugin records sign-ins, token and group changes in its audit log, read with `audit:read` from `GET /api/v1/qcli/audit?event=&username=&actor=&limit=&offset=` (newest 100 without a `limit`, at most 1000), by the console's `audit` and by the dashboard's Audit page.
1609
+
1610
+ - An entry has `event`, `actor`, `username` (the user it is about), `target` (what else it is about, e.g. `group:admins`), `metadata` and `properties` (the host's own values).
1611
+ - A host writes its own entries to the same log: `IAuditStore.LogAsync` (.NET), `auditStore.log(...)` (Node), `await audit_store.log(...)` (Python).
1612
+ - Old entries: `PruneAsync(before)` (.NET), `prune(before)` (Node; Python takes Unix milliseconds).
1613
+ - .NET only: `cli.AddEfCoreAuditStore(o => o.UseNpgsql(connectionString))` (`Qodalis.Cli.Plugin.Users.EfCore`) keeps the log in a database (table `audit_entries`; `modelBuilder.ApplyAuditStorageModel()` for your own migrations). It keeps every entry, failed sign-ins included: prune it from a daily job.
1614
+
1615
+ ### Installed plugins (all servers)
1616
+
1617
+ `GET /api/v1/qcli/plugins/installed` (admin plugin) lists the server plugins the host installed (users, admin, jobs, storage providers, ...) with their package id, version and description; the dashboard's Plugins page shows them above the command modules. The built-in plugins list themselves; a plugin of your own registers with `cli.AddInstalledPlugin(assembly)` (.NET), `builder.addInstalledPlugin(...)` (Node) or `builder.add_installed_plugin(...)` (Python).
1618
+
1574
1619
  ### Admin dashboard: name and icon (all servers)
1575
1620
 
1576
1621
  The dashboard is "Qodalis Cli Admin" with the Qodalis Solutions logo unless the admin plugin sets its branding: the name and icon (browser tab, sidebar, sign-in page) and the terminal's name in its welcome banner.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qodalis/mcp-cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Model Context Protocol (MCP) server for Qodalis CLI: plugin-development tools (docs search, API declarations, scaffolding) for AI assistants, and a resilient stdio proxy to a Qodalis CLI server's commands, files, data explorer and jobs.",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",