@qodalis/mcp-cli 0.2.3 → 0.2.5

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,20 @@ 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.5] - 2026-11-06
8
+
9
+ ### Changed
10
+
11
+ - Bundled plugin guide (`docs/llms-full.txt`) refreshed for the servers' 1.0.0-beta.19: the dashboard statistics
12
+ endpoints (`/jobs/stats`, `/logs/histogram`, `/status/history`, `/commands/stats`) and the audit log's time filter.
13
+
14
+ ## [0.2.4] - 2026-11-05
15
+
16
+ ### Changed
17
+
18
+ - Bundled plugin guide (`docs/llms-full.txt`) refreshed for the servers' 1.0.0-beta.18: the logs API's filters
19
+ (several levels, service, time range) and the .NET Seq logs plugin (`Qodalis.Cli.Plugin.Logs.Seq`).
20
+
7
21
  ## [0.2.3] - 2026-11-05
8
22
 
9
23
  ### Changed
@@ -1612,10 +1612,28 @@ The audit log is a plugin of its own (.NET `Qodalis.Cli.Plugin.Audit`, Node `@qo
1612
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
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
1614
 
1615
+ ### Server logs and Seq (.NET)
1616
+
1617
+ The dashboard's Logs page reads `GET /api/v1/qcli/logs?level=&search=&service=&from=&to=&limit=&offset=` (`logs:read`; `level` is one level or a comma list of `DEBUG`, `INFO`, `WARN`, `ERROR`; `from`/`to` ISO 8601; at most 500 per page) and tails `/ws/v1/qcli/logs` live. By default the history is the admin plugin's in-memory buffer: the latest 1000 entries of that process, gone on restart.
1618
+
1619
+ - .NET: `cli.AddSeqLogs(seq => { seq.ServerUrl = "http://seq:5341"; seq.ApiKey = ...; seq.ServiceName = "my-api"; })` (`Qodalis.Cli.Plugin.Logs.Seq`) sends every log entry to Seq as CLEF, tagged `Service`, and makes Seq the history: it survives restarts and holds every service that writes there, filtered by service, level, text and time. A service that only writes (a worker without the admin plugin) sets `seq.ReadHistory = false`. Logging never waits for Seq or fails because of it.
1620
+ - The answer carries `store` (`memory`, `seq`), `persistent`, `services` and `hasMore`; `total` is null when the store cannot count (Seq). 502 with `{ error }` when the store is unreachable.
1621
+ - Another store: implement `ILogStore` (`Qodalis.Cli.Abstractions.Logs`) and register it as a singleton.
1622
+
1615
1623
  ### Installed plugins (all servers)
1616
1624
 
1617
1625
  `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
1626
 
1627
+ ### Dashboard statistics endpoints (all servers)
1628
+
1629
+ Since 1.0.0-beta.19 every server answers read-only endpoints the admin dashboard (1.0.0-beta.15) charts; the JSON is the same on .NET, Node and Python. Times are ISO 8601 (no offset = UTC), durations milliseconds; a range is `[since, until)` cut into `buckets` equal columns (1-200, default 24; the default range is the last 24 hours) and a start not before its end answers 400.
1630
+
1631
+ - `GET /api/v1/qcli/jobs/stats?since=&until=&buckets=&job=&group=` (jobs plugin): runs per column by result (`succeeded`, `failed` incl. timed out, `cancelled`, `running`), `totals` (`successRate` = succeeded / (succeeded + failed), `avgDuration`, `p95Duration`, `maxDuration`, `lastFailureAt`) and per job (`jobs[]` with the same totals and its 12 latest runs in `recent`). Counted over every run in the range through the store's execution query, so it works with any jobs store.
1632
+ - `GET /api/v1/qcli/logs/histogram?from=&to=&buckets=&level=&search=&service=` (admin plugin): entries per level (`DEBUG`, `INFO`, `WARN`, `ERROR`) and column with the filters of `GET /logs`, from the in-memory history or, on .NET, Seq (`ILogStore.HistogramAsync`, with a default that pages `QueryAsync`).
1633
+ - `GET /api/v1/qcli/status/history?minutes=` (admin plugin, 1-1440, default 60): the status sampled every 15 seconds for 24 hours (`memoryMb`, `cpuPercent` of one core, `activeWsConnections`, `activeShellSessions`), oldest first; in memory, gone on restart.
1634
+ - `GET /api/v1/qcli/commands/stats` (core, same access as `GET /commands`): executions, failures (non-zero exit, exception, unknown command), average duration and last run of each root command since the server started; `known` is false for commands the registry does not have.
1635
+ - `GET /api/v1/qcli/audit` takes `from` and `to` (ISO 8601 or epoch ms); a custom audit store applies them from `AuditQueryOptions`.
1636
+
1619
1637
  ### Admin dashboard: name and icon (all servers)
1620
1638
 
1621
1639
  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",
3
+ "version": "0.2.5",
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",