@yawlabs/mcph 0.32.0 → 0.33.0
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 +4 -0
- package/dist/index.js +23 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@yawlabs/mcph` are documented here. This project uses [semantic versioning](https://semver.org) and a CI-gated release flow: pushing a `vX.Y.Z` tag triggers `.github/workflows/release.yml`, which publishes to npm.
|
|
4
4
|
|
|
5
|
+
## 0.33.0 — 2026-04-18
|
|
6
|
+
|
|
7
|
+
- **`mcph doctor` ENVIRONMENT section** — New block enumerating every behavior-modifier env var mcph actually reads (`MCPH_POLL_INTERVAL`, `MCPH_SERVER_CAP`, `MCPH_MIN_COMPLIANCE`, `MCPH_AUTO_LOAD`, `MCPH_PRUNE_RESPONSES`). Each shows its current value, or `(not set — <default>)` when unset. Closes a diagnostic gap where users reporting "my server cap isn't taking effect" or "compliance filter isn't blocking anything" had no doctor signal on whether the knob was even set. TOKEN / URL / DISABLE_PERSISTENCE still get their dedicated sections (richer context there).
|
|
8
|
+
|
|
5
9
|
## 0.32.0 — 2026-04-18
|
|
6
10
|
|
|
7
11
|
- **Unknown CLI subcommand detection + typo suggestions** — `mcph <typo>` (e.g. `mcph instal`, `mcph docto`) now exits 2 with `unknown subcommand "X". Did you mean: install?` instead of silently falling through to MCP-server mode and erroring opaquely on the missing token. Bare flags (anything with a leading `-`) still fall through so server startup can parse them.
|
package/dist/index.js
CHANGED
|
@@ -946,7 +946,7 @@ function errorMessage(err) {
|
|
|
946
946
|
}
|
|
947
947
|
|
|
948
948
|
// src/doctor-cmd.ts
|
|
949
|
-
var VERSION = true ? "0.
|
|
949
|
+
var VERSION = true ? "0.33.0" : "dev";
|
|
950
950
|
async function runDoctor(opts = {}) {
|
|
951
951
|
const lines = [];
|
|
952
952
|
const write = opts.out ?? ((s) => process.stdout.write(s));
|
|
@@ -981,6 +981,7 @@ async function runDoctor(opts = {}) {
|
|
|
981
981
|
print(` value: ${config.apiBase}`);
|
|
982
982
|
print(` source: ${config.apiBaseSource}`);
|
|
983
983
|
print("");
|
|
984
|
+
renderEnvSection({ env, print });
|
|
984
985
|
await renderStateSection({ home, env, print });
|
|
985
986
|
const clients = probeClients({ home, os, cwd });
|
|
986
987
|
print("INSTALLED CLIENTS (probed config files)");
|
|
@@ -1034,6 +1035,24 @@ async function runDoctor(opts = {}) {
|
|
|
1034
1035
|
}
|
|
1035
1036
|
return { exitCode, lines, snapshot: { version: VERSION, config, clients } };
|
|
1036
1037
|
}
|
|
1038
|
+
function renderEnvSection(opts) {
|
|
1039
|
+
const { env, print } = opts;
|
|
1040
|
+
const vars = [
|
|
1041
|
+
{ name: "MCPH_POLL_INTERVAL", defaultHint: "default 60s" },
|
|
1042
|
+
{ name: "MCPH_SERVER_CAP", defaultHint: "default 6" },
|
|
1043
|
+
{ name: "MCPH_MIN_COMPLIANCE", defaultHint: "filter inactive" },
|
|
1044
|
+
{ name: "MCPH_AUTO_LOAD", defaultHint: "auto-load inactive" },
|
|
1045
|
+
{ name: "MCPH_PRUNE_RESPONSES", defaultHint: "pruning active" }
|
|
1046
|
+
];
|
|
1047
|
+
const widest = vars.reduce((m, v) => Math.max(m, v.name.length), 0);
|
|
1048
|
+
print("ENVIRONMENT (behavior overrides)");
|
|
1049
|
+
for (const v of vars) {
|
|
1050
|
+
const raw = env[v.name];
|
|
1051
|
+
const value = raw === void 0 || raw === "" ? `(not set \u2014 ${v.defaultHint})` : raw;
|
|
1052
|
+
print(` ${v.name.padEnd(widest)} ${value}`);
|
|
1053
|
+
}
|
|
1054
|
+
print("");
|
|
1055
|
+
}
|
|
1037
1056
|
async function renderStateSection(opts) {
|
|
1038
1057
|
const { home, env, print } = opts;
|
|
1039
1058
|
const raw = env.MCPH_DISABLE_PERSISTENCE;
|
|
@@ -3890,7 +3909,7 @@ function categorizeSpawnError(err) {
|
|
|
3890
3909
|
}
|
|
3891
3910
|
async function connectToUpstream(config, onDisconnect, onListChanged) {
|
|
3892
3911
|
const client = new Client(
|
|
3893
|
-
{ name: "mcph", version: true ? "0.
|
|
3912
|
+
{ name: "mcph", version: true ? "0.33.0" : "dev" },
|
|
3894
3913
|
{ capabilities: {} }
|
|
3895
3914
|
);
|
|
3896
3915
|
let transport;
|
|
@@ -4407,7 +4426,7 @@ var ConnectServer = class _ConnectServer {
|
|
|
4407
4426
|
this.apiUrl = apiUrl6;
|
|
4408
4427
|
this.token = token6;
|
|
4409
4428
|
this.server = new Server(
|
|
4410
|
-
{ name: "mcph", version: true ? "0.
|
|
4429
|
+
{ name: "mcph", version: true ? "0.33.0" : "dev" },
|
|
4411
4430
|
{
|
|
4412
4431
|
capabilities: {
|
|
4413
4432
|
tools: { listChanged: true },
|
|
@@ -6488,7 +6507,7 @@ ${installBlock}
|
|
|
6488
6507
|
);
|
|
6489
6508
|
process.exit(0);
|
|
6490
6509
|
} else if (subcommand === "--version" || subcommand === "-V") {
|
|
6491
|
-
process.stdout.write(`mcph ${true ? "0.
|
|
6510
|
+
process.stdout.write(`mcph ${true ? "0.33.0" : "dev"}
|
|
6492
6511
|
`);
|
|
6493
6512
|
process.exit(0);
|
|
6494
6513
|
} else if (subcommand && !subcommand.startsWith("-")) {
|
package/package.json
CHANGED