@qodalis/mcp-cli 0.2.1 → 0.2.3
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 +18 -0
- package/docs/llms-full.txt +45 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@ 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.3] - 2026-11-05
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Bundled plugin guide (`docs/llms-full.txt`) refreshed for the servers' 1.0.0-beta.17: the audit log is a
|
|
12
|
+
plugin of its own on every server (.NET `Qodalis.Cli.Plugin.Audit` and `Audit.EfCore`, Node
|
|
13
|
+
`@qodalis/cli-server-plugin-audit`, Python `qodalis-cli-server-plugin-audit`), how to add it alone and set its
|
|
14
|
+
store.
|
|
15
|
+
|
|
16
|
+
## [0.2.2] - 2026-11-05
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Bundled plugin guide (`docs/llms-full.txt`) refreshed for the servers' 1.0.0-beta.15: inside a
|
|
21
|
+
job (run properties, discard, a service scope per run in .NET), stable job ids, run on start,
|
|
22
|
+
executions across jobs and pruning; the audit log (target, properties, actor and offset
|
|
23
|
+
filters, the .NET EF Core store); the installed plugins list. For all three servers.
|
|
24
|
+
|
|
7
25
|
## [0.2.1] - 2026-11-05
|
|
8
26
|
|
|
9
27
|
### Changed
|
package/docs/llms-full.txt
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 plugin (all servers)
|
|
1607
|
+
|
|
1608
|
+
The audit log is a plugin of its own (.NET `Qodalis.Cli.Plugin.Audit`, Node `@qodalis/cli-server-plugin-audit`, Python `qodalis-cli-server-plugin-audit`): it keeps the entries and serves `GET /api/v1/qcli/audit?event=&username=&actor=&limit=&offset=` (`audit:read`; newest first, 100 without a `limit`, at most 1000) and `DELETE /api/v1/qcli/audit` (`audit:clear`; records `audit_cleared` with who did it), read by the console's `audit` and the dashboard's Audit page, and listed on its Plugins page. The users plugin adds it and records sign-ins, failed sign-ins, user, group, token and shell events there; a host can add it alone: .NET `cli.AddAudit()`, Node `new CliAuditBuilder().build()` mounted with `mountPlugin` (pass it to the users plugin with `setAuditPlugin` to share it), Python `CliAuditBuilder().build()` mounted with `mount_plugin` (the users plugin joins a mounted one).
|
|
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 through the audit store: `IAuditStore.LogAsync` (.NET, `Qodalis.Cli.Abstractions.Audit`), `auditStore.log(...)` (Node), `await audit_store.log(...)` (Python).
|
|
1612
|
+
- Another store: `cli.SetAuditStore<T>()` (.NET), `CliAuditBuilder.setStore(store)` (Node), `CliAuditBuilder().set_store(store)` (Python); the users plugin's audit-store option still works and does the same. The contract (`AuditEntry`, `AuditQueryOptions`, the store interface) is in each server's abstractions package. Old entries: `PruneAsync(before)` (.NET), `prune(before)` (Node; Python takes Unix milliseconds).
|
|
1613
|
+
- .NET only: `cli.AddEfCoreAuditStore(o => o.UseNpgsql(connectionString))` (`Qodalis.Cli.Plugin.Audit.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.
|
|
3
|
+
"version": "0.2.3",
|
|
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",
|