@yawlabs/mcp 0.76.2 → 0.78.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 +973 -753
- package/README.md +16 -5
- package/dist/{auto-upgrade-I7PUQHNN.js → auto-upgrade-TDMGTOK3.js} +4 -2
- package/dist/{chunk-CNEMSMQD.js → chunk-33LK4DLQ.js} +59 -29
- package/dist/chunk-3RRZQPA5.js +39 -0
- package/dist/{chunk-EPEOXHMM.js → chunk-AB63LGSO.js} +136 -49
- package/dist/index.js +10291 -8820
- package/dist/{oam-spawn-VPVBHI7B.js → oam-spawn-UUOFWXFP.js} +2 -2
- package/package.json +4 -4
- package/schemas/yaw-mcp.config.v1.json +57 -0
- package/dist/chunk-C3AQHLOR.js +0 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,753 +1,973 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to `@yawlabs/mcp` (formerly `@yawlabs/mcph`) are documented here. This project uses [semantic versioning](https://semver.org) and a script-gated release flow: `./release.sh <version>` runs lint + typecheck + tests + build, bumps, tags, publishes to npm, and publishes `server.json` to the MCP registry.
|
|
4
|
-
|
|
5
|
-
## 0.
|
|
6
|
-
|
|
7
|
-
**
|
|
8
|
-
|
|
9
|
-
`
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
The
|
|
32
|
-
|
|
33
|
-
**Fixed --
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
**Changed --
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
**Fixed --
|
|
60
|
-
|
|
61
|
-
The
|
|
62
|
-
|
|
63
|
-
**Fixed --
|
|
64
|
-
|
|
65
|
-
A
|
|
66
|
-
|
|
67
|
-
**Fixed --
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
**Fixed --
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
**
|
|
76
|
-
|
|
77
|
-
The `
|
|
78
|
-
|
|
79
|
-
**Fixed --
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
**Fixed --
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
**Fixed -- `
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
**Fixed --
|
|
92
|
-
|
|
93
|
-
The
|
|
94
|
-
|
|
95
|
-
**Fixed --
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
**Fixed -- `
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
**
|
|
108
|
-
|
|
109
|
-
The
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
**Fixed --
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
The
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
The
|
|
160
|
-
|
|
161
|
-
**
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
**Fixed -- the
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
**
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
The
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
to 0.
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
-
|
|
450
|
-
|
|
451
|
-
The
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
- `
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
-
|
|
520
|
-
-
|
|
521
|
-
|
|
522
|
-
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
-
|
|
568
|
-
- **
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
- **
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
- **
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
- **`
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
- **`
|
|
619
|
-
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
-
|
|
632
|
-
|
|
633
|
-
## 0.
|
|
634
|
-
|
|
635
|
-
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
-
|
|
644
|
-
|
|
645
|
-
## 0.
|
|
646
|
-
|
|
647
|
-
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
-
|
|
683
|
-
-
|
|
684
|
-
-
|
|
685
|
-
- `
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
-
|
|
718
|
-
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
-
|
|
740
|
-
-
|
|
741
|
-
-
|
|
742
|
-
-
|
|
743
|
-
|
|
744
|
-
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
-
|
|
753
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@yawlabs/mcp` (formerly `@yawlabs/mcph`) are documented here. This project uses [semantic versioning](https://semver.org) and a script-gated release flow: `./release.sh <version>` runs lint + typecheck + tests + build, bumps, tags, publishes to npm, and publishes `server.json` to the MCP registry.
|
|
4
|
+
|
|
5
|
+
## 0.78.0 -- the vault passphrase prompt reaches the code that needed it, and sidecars stop drifting
|
|
6
|
+
|
|
7
|
+
**Added -- sidecars stopped moving, and nothing said so**
|
|
8
|
+
|
|
9
|
+
`sidecars install` exists to pin: it trades npx's per-spawn `@latest` re-resolution for a tree that runs the same bytes every time, and `sidecars-cmd.ts` says so outright ("The version pins itself"). What it never had was anything to move the pin afterward, so a sidecar sat on whatever version the last manual install happened to fetch, indefinitely and silently. Found the obvious way: a machine running `@yawlabs/tailscale-mcp` 0.13.3 against a published 0.18.0, five minor versions behind, with `doctor` reporting the installed version and no indication it was stale.
|
|
10
|
+
|
|
11
|
+
`serve` now checks staleness in the background on the same fire-and-forget footing as `maybeAutoUpgrade`, and refreshes so the NEXT spawn picks it up. The running session's pin is never swapped underneath it -- that is the property sidecars were bought for, and an "auto-update" that broke it would be worse than the staleness.
|
|
12
|
+
|
|
13
|
+
Four things keep the pinning intact. Only `@latest` / unpinned specs are eligible: an explicit `@0.13.3` is the user's stated intent and is never auto-moved, it lands in `skipped` with that reason. It never downgrades -- installed ahead of the registry (a linked dev build, a release yanked after we fetched it) is not stale -- and the comparison is semver via `oam-spawn`'s `compareVersions`, never a string compare, because "0.9.0" against "0.10.0" is exactly the pair a lexicographic compare gets backwards. The 24h throttle records a timestamp only when a check actually ran, so losing the lock to another pane retries next startup instead of sitting out a day on a refresh that never happened. And the background npm runner is injected with `stdio: "ignore"`: the default routes npm's stdout to fd 2 and inherits stderr, which from inside `serve` would put install progress into the served MCP stream.
|
|
14
|
+
|
|
15
|
+
`doctor` marks a stale package inline and says WHY it will not be picked up when the reason is a deliberate pin rather than a missed check -- "re-run `yaw-mcp sidecars install`" is advice that cannot succeed against an explicit pin. Opt out with `YAW_MCP_SIDECAR_REFRESH=0`.
|
|
16
|
+
|
|
17
|
+
**Fixed -- the vault passphrase prompt asked the user, then threw the answer away**
|
|
18
|
+
|
|
19
|
+
`resolveServerEnv` fails closed when a server's env carries `${secret:...}` refs and the vault is locked, and its error text ("YAW_MCP_VAULT_PASSPHRASE is not set") already matched `detectMissingCredentials`. So on an elicitation-capable client the user WAS prompted for the vault passphrase by name -- and the accepted value went into `elicitedEnv`, which is merged into the CHILD's env, while `resolveServerEnv` reads yaw-mcp's own. The prompt appeared, the user typed the right passphrase, and the spawn failed with the identical error; the already-elicited guard then suppressed a second ask. Everything needed was wired except the destination.
|
|
20
|
+
|
|
21
|
+
The refusal is now a typed `VaultPassphraseRequiredError` carrying the namespace and the referencing env keys, and the activation path routes it to a dedicated prompt that stores the answer in a module-level session value `resolveServerEnv` actually reads. Deliberately not `process.env`: every local spawn builds its child env from `stripInternalSecretsFromEnv(process.env)`, so a passphrase parked there would be one strip-list bug away from every upstream. Asked at most once per session (one vault, one passphrase) and latched when asked, not when answered, so a decline is honoured rather than re-prompted on the next server that touches the vault.
|
|
22
|
+
|
|
23
|
+
Matching by error TYPE rather than by message text also closes a phishing shape the generic path allowed: the credential haystack includes a child's stderr, so a server that printed "YAW_MCP_VAULT_PASSPHRASE is not set" could be handed the vault passphrase, through a prompt naming the server rather than yaw-mcp, and the value would then be merged into that same server's env on retry. The generic elicitation path now filters out `INTERNAL_SECRET_ENV_KEYS` entirely.
|
|
24
|
+
|
|
25
|
+
**Fixed -- a wrong vault passphrase was a dead end, and a typed one was unrecoverable**
|
|
26
|
+
|
|
27
|
+
Three defects found reviewing the above. A WRONG `YAW_MCP_VAULT_PASSPHRASE` threw a raw unlock error, which reached the generic missing-credential path where the internal-key filter (correctly) refuses to elicit yaw-mcp's own secrets -- so nothing offered a correction and every vault-backed server failed for the life of the process. An unlock failure now throws the same typed error tagged `reason: "invalid"`, with wording that does not tell a user who set the variable that it is unset. That also makes the session-over-env precedence reachable for the first time; while the only prompt fired on a wholly absent passphrase, a session value could never coexist with an env one and the ordering decided nothing.
|
|
28
|
+
|
|
29
|
+
The elicited value was stored in module-global state BEFORE anything checked it, and the ask-once latch then made a single transposed character cost the session. It is verified against the vault before it is stored, the budget is two prompts rather than one, and a rejected typo no longer latches -- while an explicit decline still ends it immediately. A corrupt check marker (the passphrase is right, the marker is damaged) is deliberately re-thrown untouched rather than turned into a prompt for a passphrase that was never wrong.
|
|
30
|
+
|
|
31
|
+
The passphrase also outlived the server that collected it: it lives in a module variable so no child env can inherit it, which meant a second `ConnectServer` in one process inherited plaintext its own user never typed. `shutdown()` now clears it, making its lifetime the server's -- what the prompt ("for this session") told the user. Separately, a vault refusal is decided before any child spawns, so it no longer burns the 1s retry and the warn-level "retrying" line that read like a transient spawn failure.
|
|
32
|
+
|
|
33
|
+
**Fixed -- `doctor` told remote servers they would fail to start over a locked vault**
|
|
34
|
+
|
|
35
|
+
The new SECRET VAULT section listed every server whose configured env carried `${secret:...}`, including remote entries. A remote entry's env is never sent anywhere -- `resolveServerEnv` never runs for one, and the connect logs "Ignoring env on a remote server" and proceeds unauthenticated -- so the section reported a cause that did not exist and sent the reader to unlock a vault that was never in the path. It now considers local servers only.
|
|
36
|
+
|
|
37
|
+
**Added -- `doctor` gained a SECRET VAULT section, and `--help` finally lists the passphrase**
|
|
38
|
+
|
|
39
|
+
`YAW_MCP_VAULT_PASSPHRASE` was absent from `yaw-mcp --help`'s environment table while the README pointed at that table for "the full list", and `doctor` said nothing about the vault at all. A user whose server refused to spawn had no surface connecting a `${secret:NAME}` in bundles.json to the variable that makes it work. The var is now in `--help`, and `doctor` reports the vault file, its entry NAMES, which servers reference which names, whether a passphrase is present, and any referenced name that is not stored -- mirrored into `--json` as `.vault`. Names and booleans only: no secret value, and no passphrase, appears in either surface, which is also why the passphrase stays out of `DOCTOR_ENV_VARS` (that block prints raw values). The section is informational and never moves the exit code -- an unset passphrase is the normal state for a terminal run, since it belongs in the env your MCP client spawns yaw-mcp with, which doctor cannot see.
|
|
40
|
+
|
|
41
|
+
## 0.77.0 -- the learning signal stops recording things it did not observe, the silent failures get loud, and the dead ends are retired
|
|
42
|
+
|
|
43
|
+
Seven commits of full-pass review work, taken through repeated adversarial rounds. The two user-visible contract changes are first; the rest are fixes.
|
|
44
|
+
|
|
45
|
+
**Changed (BREAKING) -- `try`'s event-reporting seam is gone**
|
|
46
|
+
|
|
47
|
+
`try` stopped POSTing anything when the hosted backend was retired, but the seam it posted through stayed: a `postEvent` option on `runTry` / `runTryCleanup` / `gcExpiredTrials`, a `TryEventBody` type, an `ANON_ID_PLACEHOLDER` constant, `doctor`'s `postTryEvent`, and roughly thirty test injectors. The default implementation was a no-op, so every one of those tests was overriding nothing with nothing. All of it is removed, along with the now-unread `env` option on `gcExpiredTrials`. `TryEventBody` and `ANON_ID_PLACEHOLDER` were exported, so this is a breaking change for anyone importing them -- nothing in the CLI surface moves. `try --base` is still PARSED, so an existing script passing it keeps working, but nothing addresses it any more and the help text now says so.
|
|
48
|
+
|
|
49
|
+
**Changed -- `doctor`'s text path exits 2 where it used to exit 0**
|
|
50
|
+
|
|
51
|
+
An expired trial the sweep could not finish (its client config unreadable, or rewritten to a shape the peel refuses) was reported on both surfaces but only `--json` treated it as a warning. The text path printed the line and then exited 0 under "All good". Those warnings now fold into the same `config.warnings` list both paths read, so the two agree. A script keying on `doctor`'s text exit code will see a 2 it did not see before -- that is the point: the condition always warranted one.
|
|
52
|
+
|
|
53
|
+
**Fixed -- the learning signal recorded outcomes it had not observed**
|
|
54
|
+
|
|
55
|
+
A routing fault -- the broker failing to reach a server at all -- was being booked as evidence ABOUT that server. It was detected by matching prose in the error string, so the classification drifted the moment any message was reworded. Faults now carry a non-enumerable structural brand applied at the point they are constructed, and every one of the six emitters sets it; the health block is skipped entirely on a fault rather than recording a non-observation. `markReply` moved out from behind the deferred-learning guard, and a new `redispatch.markUse` flips further-use only when a reply was actually seen, so a redispatch miss can no longer be inferred from a call that never returned.
|
|
56
|
+
|
|
57
|
+
`classifyError`'s HTTP-status matcher was rewritten to require status context rather than a bare three-digit number, which had been matching counts ("returned 429 rows"), version fragments and URL ports. Added word-level checks for the quota, bad-credentials and access-denied phrasings that real upstreams return.
|
|
58
|
+
|
|
59
|
+
**Fixed -- three data-write paths could destroy what they were writing**
|
|
60
|
+
|
|
61
|
+
The secrets vault took its change-detection baseline AFTER loading, so a concurrent edit between load and save was invisible; the baseline is now taken before the load and re-checked before every write. `state.json` read failures (EACCES, EBUSY, EISDIR) were indistinguishable from a missing file, so a transient read error caused the empty fallback to be saved over healthy state -- reads now carry a `loadFailed` flag and the session leaves persistence disabled rather than overwriting. And three writers building JSON objects by plain assignment could have a `__proto__` key silently vanish on the next flush, undoing load-side hardening one save later.
|
|
62
|
+
|
|
63
|
+
**Fixed -- auto-reconnect bypassed the activation path it was supposed to share**
|
|
64
|
+
|
|
65
|
+
A dropped connection was re-established by an inline loop that skipped the cap check, the in-flight join, the elicitation retry and the route refresh. It now routes through `activateOne` like every other activation. The stale connection stays in the map during the attempt (disconnected afterwards, identity-guarded) so a concurrent caller cannot observe a hole, and only the initiating call refreshes routes -- joiners rebuild locally. Cap accounting was rebuilt around a single `evaluateCapFor`, so pending reservations and prewarm claims occupy slots consistently, and a candidate's own error-state entry no longer counts against it. The dead `reconcileConfig` path was deleted rather than left as a second, diverging activation route. Best-of-N sampling now aborts its outstanding request instead of leaking it past the timeout.
|
|
66
|
+
|
|
67
|
+
**Fixed -- `add`, `install` and `migrate` previewed one thing and did another**
|
|
68
|
+
|
|
69
|
+
`add --dry-run` predicted an outcome the real run could refuse: the upsert decision is now a pure function both paths call, so a cross-slug refusal, a kept namespace or an unreadable file shows up in the preview. `install` evaluated `--dry-run` before `--skip`, so a skip that should have short-circuited still previewed a write; `--all` with `--scope` is now rejected at parse time rather than silently ignored; and the Windows `%APPDATA%` root is threaded through the probe instead of being read from the live environment, so an injected home is honoured end to end. `migrate` realpaths both sides before comparing, so a symlinked home no longer hides the legacy directory it was asked to find.
|
|
70
|
+
|
|
71
|
+
**Fixed -- the failure paths that failed silently**
|
|
72
|
+
|
|
73
|
+
`audit` resolved `${secret:...}` references only after handing the spawn to the runner, so a missing vault passphrase surfaced as an upstream error rather than a refusal; it now fails closed, exit 2, naming the unresolved refs. It also scrubs the broker's own internal secrets from the environment before spawning the target. Trial-GC failures were counted and discarded -- they now carry the slug, the client path and which stage failed, and reach both doctor surfaces. Guarded the sidecar manifest and marker writes (an unwritable directory reported success), gave `guide.ts` an errno split so a real read error warns instead of reading as "no guide", and raised the `uv` download budget to 20 minutes after measuring the actual artifacts at 18.5-23.0 MB -- the previous ceiling demanded roughly 0.6 Mbit/s. Unknown `config.json` keys and a below-floor foundry corpus now warn instead of passing quietly.
|
|
74
|
+
|
|
75
|
+
**Changed -- the dead ends are retired and every surface is made to tell the truth**
|
|
76
|
+
|
|
77
|
+
The standalone-binary track ended at 0.70.2, older than npm, so `upgrade` pointed at a release that could only move users backwards; it now says to install from npm and delete the executable. A bare leading-dash argument exits 2 instead of starting the MCP server on a typo. `doctor`'s environment section lists all thirteen behaviour overrides rather than six. `release.sh` preflights its own tooling and no longer trusts a `SKIP_CONFIRM` value it never validated. `MIN_OAM_VERSION` moves to 0.12.1, with the re-verified mechanism separated in-source from the older per-server matrix so the two cannot be mistaken for one measurement.
|
|
78
|
+
|
|
79
|
+
**Fixed -- a zero-tool upstream was re-spawned on every session start, forever**
|
|
80
|
+
|
|
81
|
+
A resources/prompts-only server answers "zero tools", and that answer was discarded at four separate points, so pre-warm could never record what it had already paid to learn. Empty tool lists now persist as a known state. An entry whose tools ALL failed validation is still dropped and re-learned -- the raw list length is what separates a real empty answer from a corrupt file.
|
|
82
|
+
|
|
83
|
+
**Fixed -- `foundry` stopped redacting dot-separated phone numbers**
|
|
84
|
+
|
|
85
|
+
The IPv4-and-version exclusion was written as "three or more dots" but quantified at two, so `555.123.4567` cleared the nine-digit phone floor, matched the exclusion, and was persisted verbatim into the harvest. The quantifier now matches the comment, and dotted IPs and versions still fall through it.
|
|
86
|
+
|
|
87
|
+
**Fixed -- `doctor` counted shell history twice for anyone who relocates `HISTFILE`**
|
|
88
|
+
|
|
89
|
+
`export HISTFILE=$HOME/.zsh_history` made the HISTFILE entry and the hardcoded zsh entry name the same file, and every command in it was counted once per source -- inflating SHADOWED CLI USAGE and pushing a CLI over the reporting threshold on a single real invocation. Sources are deduped by resolved path, keeping the LAST match so the format-aware reader wins; keeping the first would dedupe correctly and then mis-parse the file.
|
|
90
|
+
|
|
91
|
+
**Fixed -- the degraded-runtime cache could invert an explicit `defaultRuntime`**
|
|
92
|
+
|
|
93
|
+
The negative cache that avoids re-reading a broken `bundles.json` was keyed on one file's stat signature while the verdict is computed from two, so an explicit user-global `defaultRuntime: "node"` written after a broken project file was never picked up. `loadLocalBundles` now reports every path it consulted, and the watch set is built from that rather than re-derived. Reuse is also bounded in time: stat signatures catch content edits immediately, but a project `.yaw-mcp/` that does not exist yet is an absence no stat can watch, and only a time bound makes that input converge.
|
|
94
|
+
|
|
95
|
+
**Fixed -- the KDF guard did not enforce the bound its own comment claimed**
|
|
96
|
+
|
|
97
|
+
`N` and `r` were bounded independently at values that multiply out to a 1 GiB working set, four times the documented 256MB ceiling, and the derived `maxmem` was large enough to let the allocation through. The product is bounded now; the per-field caps remain as sanity limits, and the documented worst case is still accepted.
|
|
98
|
+
|
|
99
|
+
**Fixed -- `try --dry-run` promised a removal the real run refuses**
|
|
100
|
+
|
|
101
|
+
The preview compared the previous marker's client path and entry name but never consulted the trust check that `peelTrialEntry` runs first, so it printed "would remove" for a marker the real run declines with a warning. The preview consults the same gate and names the refusal reason.
|
|
102
|
+
|
|
103
|
+
**Fixed -- `install --list` printed paths in a shape neither OS uses**
|
|
104
|
+
|
|
105
|
+
Only the leading separator was keyed to the listed OS, leaving the rest host-shaped, so `--list --os linux` on Windows rendered `~/.cursor\mcp.json`. Every separator the host could have produced is now rewritten. The oam-absent tip also stopped appearing on a fully successful `--all --skip` run -- where every entry it describes is present and about to be used -- because a skip is a success that writes nothing.
|
|
106
|
+
|
|
107
|
+
**Changed -- packaging: `schemas/` ships, and the `@types/node` floor matches `engines`**
|
|
108
|
+
|
|
109
|
+
The config JSON schema was referenced by `$id` and reachable only through a raw GitHub URL; it is in the `files` array now. `@types/node` moved from `^26` to `^20` to match `engines: >=20` and the `node20` build target -- the type surface had been admitting APIs that compile clean and throw on the oldest Node the package claims to support. It type-checks clean at the lower floor, so nothing was relying on them.
|
|
110
|
+
|
|
111
|
+
## 0.76.2 -- no code changes
|
|
112
|
+
|
|
113
|
+
Published 2026-08-27 carrying nothing but the version number: no source change, no dependency change, no metadata change beyond the bump itself. 0.76.1 had published to npm successfully three days earlier, so this was not a recovery from a failed release, and the repository records no reason for it -- the tag is unannotated and the commit touches only `package.json`, `package-lock.json` and `server.json`. Documented so a reader who finds no entry can tell "nothing shipped" from "nobody wrote it down".
|
|
114
|
+
|
|
115
|
+
## 0.76.1 -- seventeen review findings against the 0.76.0 hardening pass
|
|
116
|
+
|
|
117
|
+
The follow-up round to the sweep below, fixing what that sweep got wrong or left half-applied.
|
|
118
|
+
|
|
119
|
+
**Changed (BREAKING) -- a `.yaw-mcp/` outside `$HOME` is no longer trusted by default**
|
|
120
|
+
|
|
121
|
+
A project config directory found above the current checkout but outside `$HOME` is now skipped unless it is demonstrably owned by the current user. On platforms where ownership cannot be verified -- Windows in particular, where `geteuid` does not exist -- that means it is skipped outright, with one warning naming the candidate and the way back: `YAW_MCP_ALLOW_UNOWNED_PROJECT_DIRS=1`. A shared checkout on a multi-user box, or a repo cloned to a drive outside the home tree, will stop picking up a `bundles.json` it used to load.
|
|
122
|
+
|
|
123
|
+
**Fixed -- Windows launcher entries lost or gained arguments to the `.cmd` shim**
|
|
124
|
+
|
|
125
|
+
An argument containing `&` was re-parsed by the npm `.cmd` shim's `%*` expansion, truncating the command at the ampersand and, in the worst shape, letting the remainder run as a second command. Entries are now written so they survive that re-parse intact.
|
|
126
|
+
|
|
127
|
+
**Fixed -- a symlinked or case-variant `$HOME` made yaw-mcp load the user's own config as project config**
|
|
128
|
+
|
|
129
|
+
The walk that looks for a project `.yaw-mcp/` compared paths without resolving symlinks or normalising case, so on macOS and Windows the user-global directory could be claimed as a project directory and loaded twice under two different scopes.
|
|
130
|
+
|
|
131
|
+
**Fixed -- startup pre-warm could disconnect a server that was already live**
|
|
132
|
+
|
|
133
|
+
Pre-warm spawns dormant servers and tears them down again. It did not check whether a namespace had been activated in the meantime, so a server the client had explicitly loaded could be dropped underneath it. Servers started during boot now also see the client's real capabilities, so elicitation, sampling and roots work on them instead of being silently unavailable.
|
|
134
|
+
|
|
135
|
+
**Fixed -- an activation could be held open by a misbehaving upstream**
|
|
136
|
+
|
|
137
|
+
A server that kept returning a next-page cursor could hold an activation open for roughly a thousand sequential list requests. That is now bounded.
|
|
138
|
+
|
|
139
|
+
**Fixed -- smaller truth-ups**
|
|
140
|
+
|
|
141
|
+
`activate`, `dispatch` and `discover` announce a `tools/list` change when they advertise a server that was already connected. Every upgrade command yaw-mcp prints now pins the same `--prefix` it would actually spawn and pastes as a single token. macOS trust grants written by older builds are recognised again instead of re-prompting, and the `trust grant` review stops calling a `pkg@v1.2.3` pin unpinned. Cached compliance grades record the rubric that produced them rather than a constant protocol date. `list --json` shows required env keys that were seeded blank, matching `add --json`. The oam pinned-sidecar refresh command is copy-paste safe in `cmd.exe`.
|
|
142
|
+
|
|
143
|
+
## 0.76.0 -- the oam floor moves to 0.11.0, and a full-pass sweep across platform, protocol and freshness
|
|
144
|
+
|
|
145
|
+
The oam section below was previously filed in this changelog under a `0.75.5` heading. That version was never tagged and never published; the work shipped here, and the heading has been folded in rather than left pointing at a release that does not exist.
|
|
146
|
+
|
|
147
|
+
**Changed -- the oam floor moves to 0.11.0**
|
|
148
|
+
|
|
149
|
+
`MIN_OAM_VERSION` tracks the latest oam release as policy, and v0.11.0 is now current (published 2026-08-22). Three of the releases between the old 0.9.0 floor and this one fix things this workload sits directly on top of, so this is not only policy: 0.10.1 fixed a live `kill()` on an extra-fd child being a silent no-op on Unix -- a CDP browser child could not be terminated at all -- and a failed extra-fd spawn emitting `error` with no `close`, which stalled a driver probing for a browser binary that is not installed. 0.11.0 scoped Windows child handle inheritance with a `PROC_THREAD_ATTRIBUTE_HANDLE_LIST`; without it a concurrent spawn could leak one child's pipe ends into an unrelated child, and pre-warm activates servers three at a time.
|
|
150
|
+
|
|
151
|
+
A machine below the floor falls back to node/npx with one warning naming both versions and the command that fixes it (`oam self-update`), exactly as before.
|
|
152
|
+
|
|
153
|
+
**Changed -- the native-addon note says what was measured instead of declining to guess**
|
|
154
|
+
|
|
155
|
+
The compat note in `oam-spawn.ts` recorded native addons (ssh2) as UNVERIFIED. Measured against oam 0.11.0: oam refuses to dlopen a `.node` addon by default and throws a CATCHABLE error carrying `OAM-NATIVE0001`, and that refusal is deliberate -- it exists so the universal `try { require(native) } catch { pure-JS fallback }` pattern keeps working, which is also why oam omits `process.versions.modules`/`napi` so addon loaders do not try in the first place. With a compiled `sshcrypto.node` on disk, ssh2 loads and its Client and kex layers behave identically to the node control, because its binding require is try/catch-wrapped and it degrades to the pure-JS cipher path. The addon is refused; the sidecar is not. `OAM_ENABLE_NATIVE_ADDONS=1` would not change that outcome either -- that addon is NAN/node-gyp and oam's alpha N-API loader rejects it for a missing `napi_register_module_v1`.
|
|
156
|
+
|
|
157
|
+
The residual risk is narrower than "native addons are broken", and the note now says so: a package that requires a `.node` with NO fallback, LAZILY at first tool call, would fail past the boot-scoped downgrade. That case is still untested, and it is the one worth writing down.
|
|
158
|
+
|
|
159
|
+
The bundled-browser measurement was re-run at the same time. Both browser servers now serve a real `tools/call` navigate hosted on oam, not just an initialize handshake.
|
|
160
|
+
|
|
161
|
+
**Added -- an oam heap-cap death names the one variable that fixes it**
|
|
162
|
+
|
|
163
|
+
Since oam 0.9.2 the runtime caps its V8 heap (4 GiB unless `OAM_MAX_HEAP_MB` says otherwise) and turns what node renders as an ungraceful "Ineffective mark-compacts near heap limit" abort into a deterministic exit 134 with `error[OAM-RT-OOM]` on stderr, stdout left clean so the protocol channel is not corrupted on the way out. That is a better death than node's -- bounded, self-describing, not mistakable for a crash -- but only if something reads it. Unrecognized, it landed inside a 500-character stderr tail under a generic "failed to start", and the lever that fixes it was never mentioned to the person who needed it. The activation error now leads with the cause and names both escape hatches: `OAM_MAX_HEAP_MB` for the server's env, or `"runtime": "node"` for that server in `bundles.json`.
|
|
164
|
+
|
|
165
|
+
The failure CATEGORY is deliberately unchanged. An OOM really is "exited non-zero before handshake", so `install_failure` is already correct and the boot-probe downgrade needs no new branch -- inventing a category for it would have made a node respawn look like a different failure and pinned the server to node on evidence that never implicated the runtime.
|
|
166
|
+
|
|
167
|
+
**Fixed -- `install` and `doctor` no longer offer an installer that cannot run**
|
|
168
|
+
|
|
169
|
+
oam ships five assets: windows x64/arm64, macos x64/arm64, and linux x64. There is no `aarch64-unknown-linux-gnu` build, and `install.sh` refuses outright rather than degrading. Both surfaces branched on OS alone, so on Linux/arm64 they printed the curl one-liner as the fix -- a command that exits non-zero for a runtime the user never needed, since node is already a full fallback. They now report the platform and point at building from source instead.
|
|
170
|
+
|
|
171
|
+
The gate answers only for the CURRENT machine, deliberately. `doctor` and `install` both take an `--os` override, and a report asked about a different OS carries no arch with it; assuming this machine's arch for it would turn "I do not know" into a confident claim about a platform we cannot see.
|
|
172
|
+
|
|
173
|
+
**Fixed -- two stale citations**
|
|
174
|
+
|
|
175
|
+
`doctor`'s comment explaining the unparseable-version line quoted a floor two bumps old, and the prerelease-ranking test described itself as running "against a 0.8.3 floor" while asserting against whatever `MIN_OAM_VERSION` currently is. Both now read floor-agnostically, so the next bump cannot strand them again. Relatedly, `upstream.test.ts`'s `oam-spawn` mock listed its two exports by hand, so importing one more thing from that module in `upstream.ts` broke every test in the file with an error that surfaced as an unrelated redaction failure; it spreads the real module now and overrides only the spawn and probe entry points.
|
|
176
|
+
|
|
177
|
+
**Fixed -- the vault passphrase reached spawned upstream servers**
|
|
178
|
+
|
|
179
|
+
`YAW_MCP_VAULT_PASSPHRASE`, its rotation counterpart, and the legacy `YAW_MCP_TOKEN` were inherited by every child process yaw-mcp spawned, so an upstream server could read the key that unlocks the local secret vault out of its own environment. All three are now stripped from the child environment, and the match is case-insensitive because Windows environment lookups are.
|
|
180
|
+
|
|
181
|
+
**Fixed -- `list --json` printed stored secret values**
|
|
182
|
+
|
|
183
|
+
A `bundles.json` entry can carry a `--env` secret, and `list --json` is exactly the output that gets piped into CI logs and pasted into bug reports. It now reports `envKeys` -- key names only, never the values -- matching what `add --json` already did.
|
|
184
|
+
|
|
185
|
+
**Fixed -- Windows `cmd /c` entries let cmd.exe metacharacters split the command**
|
|
186
|
+
|
|
187
|
+
An entry whose command or arguments contained `&`, `|`, `<`, `>`, `^` or parentheses was written unquoted into the client config, where cmd.exe would treat those characters as chaining, piping and redirection rather than as data. They are escaped now.
|
|
188
|
+
|
|
189
|
+
**Fixed -- data loss and platform-correctness on the storage paths**
|
|
190
|
+
|
|
191
|
+
A `state.json` hand-edited in Notepad came back with a UTF-8 BOM, which failed to parse and took every learned tool list, every pack detection and all cross-session learning with it -- the file now tolerates the BOM. Atomic writes on Windows survive a transient handle held by antivirus, an indexer or a sync client instead of failing the write. The bootstrapped `uv` binary is selected to match the machine's libc and architecture rather than assuming glibc/x64, a `uv` or `uvx` server configured with a Windows executable extension now bootstraps instead of failing to launch, and a wedged `uv` PATH probe can no longer keep the process from exiting.
|
|
192
|
+
|
|
193
|
+
**Fixed -- protocol conformance against real upstream servers**
|
|
194
|
+
|
|
195
|
+
Paginated upstreams lost everything past the first page. Proxied servers could no longer prompt for input, request sampling, or read workspace roots. Proxied tools lost their `outputSchema`, `title` and `_meta` in `tools/list`, tools requiring task-based execution were advertised as directly callable, and `resources/templates/list` answered `Method not found` instead of an empty result. Progress notifications stalled, duplicated, or ran past 100%. Screenshot and structured-output servers were marked flaky for the crime of returning no text.
|
|
196
|
+
|
|
197
|
+
**Fixed -- config and CLI surfaces that reported the wrong thing**
|
|
198
|
+
|
|
199
|
+
Servers added with `yaw-mcp add` started with their shell-provided env vars blanked. `audit` blamed the namespace you typed when the real fault was a malformed `bundles.json`. Windows project-scope installs wrote a `projects` key Claude Code does not read. `install --os <other-os>` is now refused unless paired with `--dry-run` or `--list`, since it can only ever describe another machine. Upgrading over an older install strips every dead `permissions.allow` wildcard rather than the hand-kept subset. Project config, the `YAW-MCP.md` guide and project bundles are found for checkouts outside `$HOME`, and legacy migration reaches a home directory reached by a dot-dot path.
|
|
200
|
+
|
|
201
|
+
Malformed and whitespace-padded environment settings fall back to their documented defaults instead of silently changing behaviour; four working-but-undocumented environment variables appear in `--help`; and `exec` rejects a step named `__proto__` up front instead of losing its output.
|
|
202
|
+
|
|
203
|
+
**Changed -- freshness policy**
|
|
204
|
+
|
|
205
|
+
Learned tool lists are re-verified weekly rather than trusted for the full 30-day persistence window, so an upstream that renames or drops a tool is caught within a week. `add` and `try` warn when the catalog snapshot they resolved against is more than 90 days old. Cached compliance grades record which rubric produced the letter, and the compliance suite dependency moves to `^0.17.1`.
|
|
206
|
+
|
|
207
|
+
## 0.75.4 -- the "prefer over local CLI" hint starts firing
|
|
208
|
+
|
|
209
|
+
**Fixed -- the CLI-shadow hint never appeared for a configured server**
|
|
210
|
+
|
|
211
|
+
`formatShadowLine` decided whether a server shadowed a local CLI by reading `server.toolCache` -- a field that production config never carries. `validateEntry` drops every key outside its whitelist, so a `toolCache` written into `bundles.json` by hand was stripped on load, the cached list was always undefined, and the guard bailed before emitting anything. The hint was unreachable in normal use.
|
|
212
|
+
|
|
213
|
+
It now reads the tool list yaw-mcp learns at connect time, so a server whose tools share a known CLI prefix (`npm_search`, `npm_audit`, ...) gets `prefer over local CLI: npm` in `mcp_connect_discover`, and the built-in guide resource starts appearing in `resources/list` for the same reason -- it renders empty, and is therefore withheld, when nothing matches.
|
|
214
|
+
|
|
215
|
+
This works for any namespace the loader accepts: lowercase letters, digits and underscores. A namespace containing a hyphen is rejected by the loader itself and the whole server entry is skipped, so hyphenated names do not reach this path at all.
|
|
216
|
+
|
|
217
|
+
The rest of the release is internal: the tool-cache merge was deduplicated into a single helper, its object-identity and profile-ordering invariants were pinned by tests, and several comments describing the shadow guard as dead code were corrected now that the path is live.
|
|
218
|
+
|
|
219
|
+
## 0.75.2 -- no code changes
|
|
220
|
+
|
|
221
|
+
Published 2026-08-11 carrying nothing but the version number, the same shape as 0.76.2 above. 0.75.1 had published successfully two days earlier, and the repository records no reason for the bump. (0.75.3 was never tagged and never published; there is nothing missing between this entry and the next.)
|
|
222
|
+
|
|
223
|
+
## 0.75.1 -- the gateway gate reaches resources and prompts
|
|
224
|
+
|
|
225
|
+
**Fixed -- `resources/list` and `prompts/list` still advertised servers the client had never activated**
|
|
226
|
+
|
|
227
|
+
0.75.0 gated `tools/list` on the set of servers activated in this session but left the other two list surfaces ungated, so a server the client had not asked for still contributed its resources and its prompts. Both now take the same gate.
|
|
228
|
+
|
|
229
|
+
Two carve-outs are deliberate. Built-in resources are emitted before the connection loop, so they are never withheld. And the read and get routes are left ungated: a resource or prompt that is not listed is still reachable by URI or by name, exactly as an unadvertised tool remains callable.
|
|
230
|
+
|
|
231
|
+
The stakes are lower than for tools. Neither list is inlined into every model request the way the tool list is, so the cost this removes is client surface area -- the entries that fill @-mention and slash-command menus -- rather than per-turn context.
|
|
232
|
+
|
|
233
|
+
**Fixed -- the session-activation flag outlived the teardown paths that should have cleared it**
|
|
234
|
+
|
|
235
|
+
Unloading a server now clears its gateway activation alongside the existing idle-count and tool-filter cleanup, so a namespace cannot stay advertised after being unloaded. Two of the paths hardened here turned out to be unreachable -- `reconcileConfig` ran once during startup, before any connection could exist, so its body never had a connection to iterate -- and were deleted outright in 0.77.0.
|
|
236
|
+
|
|
237
|
+
## 0.75.0 -- the gateway becomes the default surface
|
|
238
|
+
|
|
239
|
+
**Changed (BREAKING) -- `tools/list` advertises the gateway, not the whole catalog**
|
|
240
|
+
|
|
241
|
+
Every `tools/list` used to inline the entire catalog: the ten `mcp_connect_*` meta-tools, every tool of every connected upstream, and a deferred placeholder for every cached-but-inactive configured server. On the maintainer's install that came to 252 tools and roughly 27,000 tokens -- about 13% of a 200K context window -- sent before the user had typed anything. A 32,768-token local model died with a hard 400 on every turn; that install now fits.
|
|
242
|
+
|
|
243
|
+
It now advertises the ten meta-tools plus only the namespaces the client has explicitly activated this session. Nothing becomes unreachable: the routing table still covers every tool whether advertised or not, so `mcp_connect_dispatch` and a direct `tools/call` by name both still activate the server and reach a tool that was never listed. Discovery moves to `mcp_connect_discover` / `_suggest` / `_bundles` followed by an explicit activate.
|
|
244
|
+
|
|
245
|
+
The old cost was invisible in Claude Code, which hides tool descriptions locally. Clients without that compensation paid the full 27,000 tokens.
|
|
246
|
+
|
|
247
|
+
**Added -- `YAW_MCP_TOOL_EXPOSURE`**
|
|
248
|
+
|
|
249
|
+
`full` restores the previous surface, and it is the only way back -- there is no `bundles.json` key and no CLI flag for it. Unset, empty and `gateway` all select the new default. An unrecognised value logs `unrecognized YAW_MCP_TOOL_EXPOSURE "..."; using "gateway"` rather than silently restoring the 27,000-token payload, and the variable is re-read on every `tools/list` instead of being cached at startup.
|
|
250
|
+
|
|
251
|
+
**Changed -- `activate` and `deactivate` now actually move tools in and out of the client's list**
|
|
252
|
+
|
|
253
|
+
Both used to be no-ops as far as the advertised surface went: everything was listed all the time, live tools directly and idle ones as placeholders, which made `Unloaded "X". Tools removed from context.` untrue. Activating a server by name now adds its namespace to the advertised surface and unloading removes it.
|
|
254
|
+
|
|
255
|
+
Being merely connected does not qualify, and that is deliberate -- pre-warm spawns dormant servers on its own, so keying on connectedness would have re-advertised the whole catalog through the back door. A dispatch, a deferred first call or a discover auto-warm each reach their tool without dumping the rest of that namespace into the list. The set is session-scoped and never persisted, so every new client session starts back at the ten meta-tools.
|
|
256
|
+
|
|
257
|
+
## 0.74.3 -- an absent oam says how to install it, and bundled browsers turn out to be hostable
|
|
258
|
+
|
|
259
|
+
**Added -- the two surfaces that reported an absent oam now say what to do about it**
|
|
260
|
+
|
|
261
|
+
`doctor`'s OAM RUNTIME section ended at `binary: not installed` -- the one line a reader opens doctor to act on, and the only branch with no command under it, while its below-min and unusable siblings each print a `fix:`. It now prints `install:` underneath. The label is deliberate: node is a full fallback, so nothing is broken and this is not a repair instruction. `yaw-mcp install` had the matching hole -- its runtime reason-chain explained relative-path, not-durably-installed, below-min and unusable, then fell off the end for plain absence, so the common case on a fresh machine got an npx entry with no line saying an alternative existed.
|
|
262
|
+
|
|
263
|
+
Both name the installer for the platform the report is **about**, not the one it runs on, so `--os windows` hands back the PowerShell one-liner rather than a curl command that machine cannot run. Under `install --all` the note prints once for the run instead of once per client: absence is a machine-level fact and the common case, unlike the rare misconfigurations above it, which still print per client where they belong.
|
|
264
|
+
|
|
265
|
+
**Changed -- bundled browsers are oam-hostable, and the source said they were not**
|
|
266
|
+
|
|
267
|
+
The compat note in `oam-spawn.ts` called servers with bundled browsers "not oam-hostable yet" and framed oam as an opt-in tier it stopped being two releases ago. Measured against oam 0.9.0: `@modelcontextprotocol/server-puppeteer` and `@playwright/mcp` each launch a real Chromium and navigate hosted on oam, identical in outcome to the node control. oam 0.9.0 is what changed it -- before that release `child_process` ignored `stdio` entirely, which is exactly the npm bin-shim shape every sidecar launches through, so they booted and then sat mute forever. `MIN_OAM_VERSION` gates that fix in. Native addons (ssh2) are marked unverified rather than promoted to either claim.
|
|
268
|
+
|
|
269
|
+
## 0.74.2 -- the oam floor moves to 0.9.0, and a full-pass sweep of the runtime
|
|
270
|
+
|
|
271
|
+
**Changed -- the oam floor moves to 0.9.0**
|
|
272
|
+
|
|
273
|
+
`MIN_OAM_VERSION` tracks the latest oam release as policy, and v0.9.0 is now current. A machine running an older oam falls back to node/npx with one warning naming both versions and the command that fixes it (`oam self-update`), and `doctor` reports `installed (v0.8.3) -- below min 0.9.0; IGNORED, servers run on node`. That is the documented trade: an aggressive floor costs a fallback, a lax one silently hosts production sidecars on a runtime nobody else is running.
|
|
274
|
+
|
|
275
|
+
**Fixed -- `--help` described the opposite of the shipped default**
|
|
276
|
+
|
|
277
|
+
The `YAW_MCP_DEFAULT_RUNTIME` entry still read `Unset = node (today's default)`. Unset has meant oam-when-installed since 0.74.1; `doctor`, the README and this changelog all already said so, leaving the CLI's own help as the only surface contradicting the feature it documents.
|
|
278
|
+
|
|
279
|
+
**Fixed -- an oam-hosted npx server could receive different arguments than the npx fallback**
|
|
280
|
+
|
|
281
|
+
The `-y`/`--yes` filter ran over the whole argument list rather than only the flags npx itself consumes, so a `--yes` belonging to the SERVER was dropped when the launch was rewritten for oam and kept when it was not. Same configuration, different child argv depending on whether oam happened to be installed -- which the rewrite exists specifically never to do.
|
|
282
|
+
|
|
283
|
+
**Fixed -- a broken `bundles.json` could invert an explicit `defaultRuntime: "node"`**
|
|
284
|
+
|
|
285
|
+
A file that exists but cannot be parsed produced no value, and that empty answer was cached for the life of the process. Since unset now means oam-when-installed, the cached blank silently flipped a machine that had explicitly opted OUT back onto oam. Only that degraded-and-empty combination is now left uncached; every healthy shape, including "no bundles.json at all", still resolves once and stays cached, so the connect path does not re-read per spawn.
|
|
286
|
+
|
|
287
|
+
**Fixed -- the version-pinning notice was silent or misleading depending on where the sidecar came from**
|
|
288
|
+
|
|
289
|
+
Hosting on oam runs a copy from disk, so `@latest` stops re-resolving and the version pins itself. The notice that says so only fired for npx-cache copies -- never for a durable install, and never for the managed tree that `sidecars install` exists to create. It now covers all three, carries the directory the entry was resolved out of, and names the command that actually refreshes THAT copy. The broker's own `node_modules` is correctly treated as a cache when it sits under `_npx`, which is where `npx -y @yawlabs/mcp` puts it; the managed tree logs at debug, since re-running `sidecars install` is a decision the user already made.
|
|
290
|
+
|
|
291
|
+
**Fixed -- `sidecars install --json` reported no error on a failed install**
|
|
292
|
+
|
|
293
|
+
When npm exited 0 but no requested package resolved, the command exited 1 while the JSON document still carried `error: null`, so a caller branching on `error` -- the field that document exists to provide -- read a failed install as a clean one.
|
|
294
|
+
|
|
295
|
+
**Added -- `doctor --json` reports the managed install**
|
|
296
|
+
|
|
297
|
+
The `oamRuntime` block now carries `managed`, mirroring the text report: the managed directory and the installed version of each configured package. That version is what an oam-hosted sidecar actually runs and nothing else reports it, since `bundles.json` only ever says `@latest`.
|
|
298
|
+
|
|
299
|
+
**Fixed -- usage output could be truncated when piped**
|
|
300
|
+
|
|
301
|
+
Thirteen subcommands wrote their usage to stdout and then called `process.exit()`, which force-flushes the event loop and can cut a buffered body short on a slow consumer (`yaw-mcp install --help | less`). They now set the exit code and let Node drain the write, matching what `--help` and the dispatch tail already did.
|
|
302
|
+
|
|
303
|
+
**Fixed -- a server that had just loaded could dead-end on "no longer available"**
|
|
304
|
+
|
|
305
|
+
Four paths activated an upstream without rebuilding the routing tables or telling the client its lists had moved: discover's auto-warm, the auto-loaded recurring pack, the lazy activation behind a deferred tool, and prewarm's reconciliation. The namespace was connected, but `toolRoutes` still held the placeholder built from the persisted tool cache -- so the very next call took the deferred branch, found the server already up, and returned `no longer available after loading X`. No retry clears that, for a server that loaded fine seconds earlier, and the session stays wedged until the client restarts. The deferred path made it worse by rebuilding only when activation reported a change, which is exactly false when the namespace was already warm. Every activation and deactivation site now goes through one helper that does both halves, because doing one of them is the bug that kept recurring.
|
|
306
|
+
|
|
307
|
+
**Fixed -- `mcp_connect_read_tool` ran servers the project profile and the compliance floor had refused**
|
|
308
|
+
|
|
309
|
+
The tool spawns a server transiently to read one schema, and it consulted neither gate before doing it. A namespace excluded by the project's allow/deny profile, or graded below `YAW_MCP_MIN_COMPLIANCE`, still had its configured command executed with its vault-resolved env -- secrets included. Disconnecting afterwards does not make that acceptable; every other surface narrows by the profile before it reaches a server. Both gates now run here, in the same order and with the same wording activation uses. The floor itself also went from two copies to one: the duplicate in `activate` produced identical text for the common case but reordered precedence for a server failing two gates, so a below-grade server that was also disabled reported one reason to `activate` and a different one to `dispatch`.
|
|
310
|
+
|
|
311
|
+
**Fixed -- a busy upstream could be closed in the middle of your call**
|
|
312
|
+
|
|
313
|
+
The idle reaper runs on other calls' completions, and a namespace's idle counter is only reset once its own call returns. A slow call to B could therefore be tipped over the threshold by a burst of short calls to A: B's transport closed, your pending call rejected, and the rejection booked as B's own zero-reward failure -- dragging the ranking of a healthy server down for a fault yaw-mcp caused. Namespaces with a call in flight are now skipped and re-evaluated on the next completion. Shutdown had the mirror-image problem: it snapshotted the connection map while prewarm activations were still mid-handshake, leaving live child processes nothing would ever disconnect (the parent exiting is what masked it). It now refuses new activations first, drains what was already past the gate, and clears any credentials elicited during the session, as that field's contract promised. That drain is bounded at two seconds: an unbounded one outlived the ten-second force-exit timer, so a SIGTERM arriving mid-handshake turned a clean shutdown into `exited with code 1`. Because a late activation can re-arm the state-save debounce the pre-drain flush already cleared, shutdown re-flushes if that happened -- the bound must not buy promptness with a lost write. The in-flight skip also had to be re-checked immediately before each disconnect rather than once while listing candidates: the list is consumed in an awaiting loop, so by the second entry the snapshot it was built from is stale. The idle baseline is also re-read per call instead of latched at import, and `YAW_MCP_IDLE_THRESHOLD` now works at all -- only the pre-rename `MCP_CONNECT_IDLE_THRESHOLD` was ever read.
|
|
314
|
+
|
|
315
|
+
**Fixed -- prompts could route to the wrong upstream, and one blip could empty a server's inventory**
|
|
316
|
+
|
|
317
|
+
Prompt namespacing carried the cross-namespace collision that was fixed for tools in 0.74.0. Namespace `gh` with a `review_pr` prompt and namespace `gh_review` with a `pr` prompt both flatten to `gh_review_pr`; `prompts/list` advertised the first upstream's prompt while `prompts/get` executed the last writer's, so the model saw one server's description and got another server's prompt, and a later-activated server could capture an earlier one's traffic. Both surfaces now agree on the first writer. In the same area, the resources and prompts refreshers returned an empty list on any error, so a single transport blip or list timeout on a `list_changed` notification replaced a healthy server's entire inventory with nothing -- until some future notification that may never arrive. A failed refresh now leaves the previous inventory standing, which is what the tools refresher already got for free.
|
|
318
|
+
|
|
319
|
+
**Fixed -- `install` destroyed comments in client configs and loosened their permissions**
|
|
320
|
+
|
|
321
|
+
`install` read the client config with a JSONC parser and wrote it back through `JSON.stringify`, deleting every `//` and `/* */` in the file. `.vscode/mcp.json` is documented JSONC and its `inputs` array is routinely commented; Claude Code's `settings.json` is hand-maintained and carries hooks and model settings around the one key being patched. Both are now spliced in place, the way `yaw-mcp try` already wrote them -- only the `mcp` entry and the `permissions.allow` node move, and the rest of the file keeps its comments, key order and indentation byte for byte.
|
|
322
|
+
|
|
323
|
+
The atomic write underneath was a second bug. `rename` publishes a new inode, so the surviving file took the umask default rather than the mode it had -- widening a config `yaw-mcp try` had deliberately written 0600 because it holds an inline secret. An existing target's mode is now carried forward whenever the caller passes none, and every write gets a unique temp path so two concurrent writers to the same file cannot truncate each other's.
|
|
324
|
+
|
|
325
|
+
`install` also stopped stripping a legacy `permissions.allow` wildcard while leaving the legacy server entry that wildcard grants -- it only warns about that entry, so removing the pattern in the same run revoked a live grant and made Claude Code re-prompt on every one of that server's tool calls. Alongside those: `--all` says "every client available on this OS" instead of promising detection it never did, `--dry-run` says "Would overwrite" rather than announcing a write that has not happened, `--scope project` honours the documented `cwd` override instead of writing `.vscode/mcp.json` into whatever directory the process started in, and each fallback to node when oam cannot host the broker now names its reason -- below the floor, unusable, or resolvable only as a bare name a GUI-launched client would never find.
|
|
326
|
+
|
|
327
|
+
**Fixed -- `remove` skipped its confirmation on exactly the files most likely to hold a secret**
|
|
328
|
+
|
|
329
|
+
The destructive-confirmation gate parsed `bundles.json` with `JSON.parse` while the write path used the loader's JSONC parser. One `// prod token lives in 1Password` line, or one trailing comma, made the file look malformed to the gate and perfectly fine to the delete -- so the preview, the off-TTY refusal and the `[y/N]` prompt were all skipped on hand-edited files, which are precisely the ones carrying stored env values `add` cannot bring back. Both now read the file the same way.
|
|
330
|
+
|
|
331
|
+
**Fixed -- re-running `add` threw away what was already on the entry**
|
|
332
|
+
|
|
333
|
+
`yaw-mcp add <slug>` rebuilds its entry from the catalog every time, and replaced the stored one wholesale. Re-adding a server to pick up a new launch command silently dropped a persisted `--env` value, an explicit `"isActive": false`, a per-server `"runtime"` override, a hand-tuned `connectTimeoutMs`, and any field outside the writer's vocabulary -- all of it under an `Updated ...` success line. An upsert is a partial update now: a field the incoming entry leaves undefined keeps its on-disk value, `env` merges per key so an empty incoming value never blanks a stored one, and an incoming `isActive: true` will not re-enable something you deliberately turned off (an explicit `false` still disables). `--json` and the ambient-env note report the entry as written rather than the pre-merge input, so they describe a file that exists -- with env reduced to `envKeys`, key names only. Reporting the on-disk entry verbatim meant a value persisted by an earlier run was printed on stdout by a later `add` that never passed it, so the field that made the report honest was also the one that leaked it.
|
|
334
|
+
|
|
335
|
+
**Fixed -- `sidecars install` could not actually move a `@latest` sidecar forward**
|
|
336
|
+
|
|
337
|
+
npm cannot re-resolve a dist-tag against an existing tree: with a lockfile present, a package locked at 0.3.6 under a `latest` range reports "up to date" and stays there. The command whose entire purpose is refreshing the pin was therefore a no-op after the first run, and "Re-run this command to move them forward" was false. It now runs `npm update` after the install, which does honour the manifest's ranges -- an exact-pinned spec still cannot drift -- and reports a failed refresh separately from a failed install, since the tree is still usable either way.
|
|
338
|
+
|
|
339
|
+
It also stopped over-promising in the other direction. When nothing on the machine would read the managed tree -- no oam, or every server resolving to node -- it names the closed gate instead of announcing that versions are now fixed. It names the config the server list came from, and warns when that is a project `bundles.json`, because the managed tree is keyed on home alone: installing from project A writes A's dependency set into the one directory every project shares, and the broker in B then resolves out of it on A's versions with nothing in B to say why. Loader warnings go to stderr instead of being swallowed, and a `bundles.json` that exists but cannot be parsed is now reported as `unreadable-config` with a non-null `error` and exit 1, rather than as "no servers configured yet".
|
|
340
|
+
|
|
341
|
+
**Fixed -- `doctor` reported the runtime policy rather than the spawn**
|
|
342
|
+
|
|
343
|
+
The oam rewrite has six deterministic refusals -- a `node` launch naming no entry file or opening with a flag, an `npx` launch with no spec, a flag where the spec belongs, a git or path target, or a version range. Each holds on every machine, oam installed or not, and `doctor` reported all of them as "oam". Each is now its own runtime code with its own reason, derived through the rewrite's own predicates rather than re-implemented, and `sidecars` no longer hands `doctor` a partial server object that made every refused server look hosted.
|
|
344
|
+
|
|
345
|
+
Two more reporting failures went with it. An oam that is installed but wedged -- `oam --version` hanging, exiting non-zero, or not executable -- was reported as "not installed", sending someone who has oam installed off to install it again while the real cause never surfaced; it now reads `installed but UNUSABLE` with the underlying error and a command to reproduce it. And a `bundles.json` that had stopped parsing -- every server gone -- still printed "All good. yaw-mcp should start cleanly." and exited 0, because the loader's warnings were never folded into the report.
|
|
346
|
+
|
|
347
|
+
`doctor` now also checks that a client's yaw-mcp entry can start at all: an absolute launch command that no longer exists, a bare `oam` that a GUI-launched client cannot resolve against its own PATH (older installs wrote exactly that, and nothing rewrites them), or a stale `oam run <entry>` path. oam cannot fetch a missing entry on demand, so each of those is a hard launch failure with no fallback, and `doctor` is the only thing that can surface them.
|
|
348
|
+
|
|
349
|
+
**Fixed -- an oam boot failure pinned a server to node on no evidence**
|
|
350
|
+
|
|
351
|
+
When an oam-hosted server failed to boot, yaw-mcp respawned it on node and remembered the downgrade for the rest of the process. It recorded that memo *before* the respawn, so a server failing for a reason that has nothing to do with the runtime -- a missing `GITHUB_TOKEN`, which fails identically on both -- was pinned to node anyway. The in-process credential retry then supplied the token and reconnected on node, and every later reconnect stayed there, while `doctor` still reported oam. Nothing clears the memo short of a restart, so the memo is now written only when the node attempt actually behaves differently: booting cleanly, or failing in a different category. One wasted oam boot is cheaper than silently disabling oam hosting for the life of the process on evidence that never implicated it.
|
|
352
|
+
|
|
353
|
+
**Fixed -- a version-pinned sidecar could be hosted from a copy that does not match the pin**
|
|
354
|
+
|
|
355
|
+
`oam run <entry>` runs whatever sits at the path it is handed, so hosting a spec that constrains its version means proving the copy on disk satisfies it. `npx -y pkg@1.2.3` was resolved by package name alone, so the pin was honoured on npx and quietly ignored on oam. An exact pin now moves to oam only when the resolved copy declares that same version; a range or partial (`^1.2.3`, `~1.2`, `1.x`) always stays on npx, since honouring one means a semver range evaluator this package does not carry. The version parser also stopped truncating prereleases -- `oam 0.8.3-rc.1` read as `0.8.3`, which compared equal to the floor and was hosted, while every line printing the oam version named a release the machine does not have. Comparison now follows semver's prerelease precedence rules rather than a numeric triple.
|
|
356
|
+
|
|
357
|
+
Relatedly, node and npx launches are matched on the command's basename with any Windows executable extension stripped, so `/usr/bin/node app.js`, `node.exe`, and nvm or volta shims are now hosted on oam like a bare `node` -- they previously fell through to node with no explanation. `doctor` uses the same predicate, so the report and the spawn cannot disagree about it.
|
|
358
|
+
|
|
359
|
+
**Fixed -- the zsh completion ran most of its own subcommand list as shell commands**
|
|
360
|
+
|
|
361
|
+
The generator joined 19 subcommand specs with a bare newline, so only the first reached `_values` and the other 18 were emitted as standalone commands: the first TAB after `yaw-mcp ` offered `install` and nothing else, followed by 18 `command not found` errors. The specs also used `name:description`, which is `_describe` syntax -- `_values` reads the text after the colon as an argument spec, so every subcommand that did render came out with no description. bash, fish and PowerShell were unaffected. `install --help` is offered now too; it was always accepted and never completed.
|
|
362
|
+
|
|
363
|
+
**Fixed -- a two-character namespace was invisible to discover and dispatch**
|
|
364
|
+
|
|
365
|
+
The BM25 index dropped tokens shorter than three characters everywhere, including in identifiers. A server namespaced `pg`, `gh`, or `db` therefore had a permanently empty namespace field -- the second-heaviest weight in the ranking -- and an intent naming only that namespace ("use pg") ranked nothing at all; `s3` and `ec2` fragments inside tool names went the same way. Descriptions keep the three-character floor, where noise words actually live. Namespaces, server names and tool names index down to one character, because an identifier is chosen rather than written: a two-letter namespace is a deliberate name, not a stopword.
|
|
366
|
+
|
|
367
|
+
The query side needed one more rule than that, and it is the reason to read this entry twice. A preposition is a routine whole segment of a snake_case tool name (`export_to_csv`), and being rare among identifiers its IDF is HIGH -- so once the query tokenized down to one character too, `to` scored. The intent "convert the spreadsheet to a chart" matched Postgres and dispatch loaded it, reporting `loaded top 1 of 1 matching servers` where it had correctly reported no match before. Closed-class function words are now subtracted from the query in the one-to-two character band only. Short identifiers -- `go`, `do`, `pr`, `id`, `db`, `pg`, `s3` -- are deliberately exempt, because matching those is why the floor was widened in the first place.
|
|
368
|
+
|
|
369
|
+
**Fixed -- three commands that misreported their own failure**
|
|
370
|
+
|
|
371
|
+
`yaw-mcp compliance <target> --min-grade A` printed "Grade F is below threshold A" on stderr and exited 0. The wrapper discarded the child's exit status, so `--strict` and `--min-grade` were silent no-ops through yaw-mcp and no CI gate built on them ever fired. A malformed report from the compliance child -- spawned unpinned, so everyone runs whatever npm calls latest -- could also print `undefined/undefined passed` and exit 0; every field the summary formats is now validated before rendering, and anything that fails routes into the existing "unexpected JSON" path.
|
|
372
|
+
|
|
373
|
+
`yaw-mcp audit` threw a raw errno out of the dispatcher when `grades.json` could not be written -- a read-only home in a container or a locked-down CI image is the common shape. The grade the suite had just spent minutes computing was never printed, and the process exited 1, the code documented as "no server with that namespace", so anything branching on exit codes read a cache-write failure as a typo. The grade prints either way now, with a dedicated exit 3 and a `cacheError` field in `--json`.
|
|
374
|
+
|
|
375
|
+
And a damaged vault verification marker reported `wrong passphrase for this vault` -- for a passphrase that was correct, about a vault whose secrets were all still readable. A key that opens an entry but not the marker now names the marker as the damaged part.
|
|
376
|
+
|
|
377
|
+
**Fixed -- `bundles match` offered activations the broker would refuse**
|
|
378
|
+
|
|
379
|
+
The partition counted every enabled server in `bundles.json`, while the broker also narrows by the `config.json` allow/deny profile. A denied namespace made a bundle read as "Ready to activate" alongside an `mcp_connect_activate` snippet the server then hard-refused -- the one thing that command exists to get right. The profile is applied now, and what it excluded is named rather than silently missing from the count, so a bundle that "should" be ready reads as the deny-list working instead of as a broken matcher.
|
|
380
|
+
|
|
381
|
+
**Fixed -- the long tail**
|
|
382
|
+
|
|
383
|
+
The rest is the kind of thing you only notice when it bites. A per-server `connectTimeoutMs` in `bundles.json` was dropped by the loader's field whitelist, so nothing in the process could ever set the value the connect path reads; one that is present but invalid (quoted, zero, negative) is now named in the loader's warnings instead of vanishing. `secrets audit <name>` ignored the argument instead of pointing at `--secret`/`--server`, and `--stdin`/`--value` were accepted on actions that have no use for them; `--value`'s help now says the value is visible to every local user via `ps` for the whole run, key derivation included. `reset-learning` now says that a running `yaw-mcp serve` holds the same learning in memory and re-saves it over the deleted file within a second of the next tool call. A trust store written by a newer yaw-mcp is refused with an upgrade instruction instead of being treated as corrupt and offered for deletion, and `trust` no longer asks you to "read all the commands above" for a file that defines none. `doctor` reads the tail of each shell history rather than the whole file -- a multi-hundred-MB history threw and took the shadowed-CLI section with it, silently. A trial marker is validated before `try-cleanup` acts on it, and the trial help no longer claims a timer sweeps expired entries; `doctor` is what removes them. `prune` stops round-tripping numbers it cannot reproduce exactly, so a large identifier in a tool result survives truncation intact. npm's `cache=` setting is parsed with npmrc's own quoting, escape and inline-comment rules, and `~/` is expanded. A stale `lastIndex` on a shared regex could make the secrets report skip leading references, which reads as "this server needs no secrets". Learning counters clamp `succeeded` to `dispatched` rather than the reverse, so a corrupted state file inflates nothing. discover's three-second memo is dropped when an activation fails or the learning counters move, so a re-discover no longer replays pre-failure text and sends the model back at a server it just watched die. A tool filter installed for an activation that then failed is rolled back instead of narrowing a later, successful load nobody filtered. And the meta-tool name set that keeps meta-tools out of an `exec` pipeline is derived from the definitions rather than hand-listed, so an eleventh meta-tool cannot become exec-callable by omission.
|
|
384
|
+
|
|
385
|
+
A last pass over the diff itself caught six more. `install` aborted with jsonc-parser's internal wording when a container key held a non-object -- a hand-edited `"mcpServers": null` that the previous release installed into fine; reparable shapes are repaired and named now, and a non-empty array refuses rather than silently dropping the server definitions it holds. `doctor` read the oam entry path straight off argv, so a `cmd /d /s /c` wrapper made it pick `/s`, decide the entry file was missing, and report a working install as broken; it unwraps the shell payload and anchors on the `run` subcommand. A present-but-unusable oam -- timed out, non-executable, exiting non-zero -- still told the spawn path's warning to go install oam, software the user already had; that surface now names the failure, as `doctor` and the runtime resolver already did. `install`'s `Runtime: will run on oam` line re-derived its own condition instead of reading the entry it had just built, so it could claim oam over an npx entry, and a resolvable-but-relative binary path now gets its own explanation rather than the wrong one. `sidecars install --json` carried no field for the "nothing reads these copies yet" verdict, so the one caller that only ever runs `--json` could not see it. And the unlock prompt's short-passphrase warning described whatever you typed as this vault's passphrase and told you to re-key -- on input it had not verified yet.
|
|
386
|
+
|
|
387
|
+
The balance is dead code, predicates that had been copied and started to drift, comments describing behaviour that changed releases ago, and error paths nothing exercised. The suite grows from 2,138 to 2,412 tests, all of it regression coverage written alongside the fixes.
|
|
388
|
+
|
|
389
|
+
## 0.74.1 -- oam becomes the default sidecar runtime
|
|
390
|
+
|
|
391
|
+
**Changed -- oam hosts the sidecars by default**
|
|
392
|
+
|
|
393
|
+
When oam is installed and meets the minimum version, yaw-mcp now hosts the MCP servers it spawns on it without any configuration. Previously this required `runtime: "oam"` on each server or a top-level `defaultRuntime` in `bundles.json`.
|
|
394
|
+
|
|
395
|
+
Nothing is required and nothing changes for a machine without oam: those servers run on node/npx exactly as before, and no warning is printed, because nothing was asked for. The escape hatches are unchanged and still win -- `runtime: "node"` on a server, `"defaultRuntime": "node"` for the whole machine, or `YAW_MCP_DEFAULT_RUNTIME=node` for one process. Only Node-based launches are rewritten; `docker`, `uvx`, and native commands are untouched.
|
|
396
|
+
|
|
397
|
+
**Fixed -- the oam runtime never actually reached the sidecars on a global install**
|
|
398
|
+
|
|
399
|
+
An opted-in sidecar silently ran on npx instead of oam whenever yaw-mcp itself was installed globally. Resolving an `npx -y <pkg>` server to an on-disk entry requires finding npm's `_npx` cache, and that lookup was derived from the broker's own module path -- so it only found anything when the broker had *itself* been launched through npx. A global install has no `_npx` segment in its path and therefore found nothing.
|
|
400
|
+
|
|
401
|
+
The result was the feature quietly doing nothing on the most common shape, made worse by `install` recommending `npm i -g @yawlabs/mcp` in order to host on oam. `doctor` reported those servers as "oam" the whole time, because it reports the policy decision rather than the spawn. The cache is now located from npm's own configuration, independent of how the broker was started, so all three shapes -- global, project, npx -- resolve. The only trace of this was a `debug`-level log line.
|
|
402
|
+
|
|
403
|
+
**Added -- `yaw-mcp sidecars install`**
|
|
404
|
+
|
|
405
|
+
Installs the npx-launched servers from `bundles.json` into `~/.yaw-mcp/sidecars`, and resolution prefers that tree over npm's npx cache. One copy per package at a version that is written down, and re-running the command is how it moves forward.
|
|
406
|
+
|
|
407
|
+
This is the answer to the pinning note below. The npx cache is keyed by content hash, so it accumulates every version ever fetched and names none of them current; a managed install replaces that with a single deliberate answer. `yaw-mcp doctor` prints the installed version of each configured package.
|
|
408
|
+
|
|
409
|
+
Deliberately not automatic: acquiring packages means network and minutes, and the connect path is what an MCP client blocks on while waiting for its tools. Nothing requires it -- without it, resolution falls back to the npx cache exactly as before.
|
|
410
|
+
|
|
411
|
+
npm does the installing, not `oam install`: that is frozen-lockfile only, so it cannot acquire `@latest` into an empty directory; its `--precompile` has nothing to do for packages that ship compiled JavaScript, which every MCP server does; and running it over an npm-installed tree skips lifecycle scripts unless the package is trusted, which would quietly cost puppeteer its browser download.
|
|
412
|
+
|
|
413
|
+
Only npx servers naming a registry package are installed. An npx launch pointing at a git or path target -- `npx -y github:owner/repo`, `npx -y ./local-server` -- is skipped and named in the output, and keeps using npx. Those specs carry no `@version` separator to cut at, so they would otherwise have become dependency *keys* (`{"github:owner/repo": "latest"}`), which npm rejects -- failing the install for every other package too. Resolving them properly would mean fetching the target just to learn the name it declares, which is more than this command should do.
|
|
414
|
+
|
|
415
|
+
Two servers pinning one package at different versions is reported rather than silently resolved: a flat `node_modules` holds a single version, so the command names the one it installed instead of letting the loser start on something it did not ask for.
|
|
416
|
+
|
|
417
|
+
`--json` emits the same keys on every path -- `root`, `installed`, `reason`, `error`, `conflicts`, `skipped` -- so a caller can read the result without first determining which path it took. `reason` distinguishes the empty states: `no-config` (nothing configured yet), `no-npx-servers` (a docker/uvx-only config), and `only-non-registry-specs`.
|
|
418
|
+
|
|
419
|
+
**Changed -- an oam-hosted sidecar no longer self-updates, and now says so**
|
|
420
|
+
|
|
421
|
+
`npx -y <pkg>@latest` re-resolves the tag on every spawn; `oam run <entry>` cannot, because oam has no fetch-on-demand. Once oam is the default, npx stops running for those servers, so the on-disk copy that supplied the entry also stops being refreshed and the version pins itself indefinitely.
|
|
422
|
+
|
|
423
|
+
This was already true for servers that opted in explicitly; making oam the default makes it apply broadly, so it is now logged. yaw-mcp reports the resolved version once per package at startup rather than leaving it to be discovered. Refresh a pinned sidecar by running it through npx once, or set `runtime: "node"` on that server to keep npx's self-updating behavior.
|
|
424
|
+
|
|
425
|
+
**Fixed -- an arbitrary cached version could be run instead of the newest**
|
|
426
|
+
|
|
427
|
+
The npx cache is keyed by content hash, so a machine that has run a server for months holds every version it ever fetched. Resolution took the first directory-listing hit, which is hash order, so a server configured as `@latest` could be started from a months-old build with nothing logged. The highest version present now wins, and a durable `npm i` install still takes precedence over any cached copy.
|
|
428
|
+
|
|
429
|
+
**Changed -- minimum oam version is 0.8.2, and now tracks the latest oam release**
|
|
430
|
+
|
|
431
|
+
Raised from 0.6.0. The floor is no longer set by whichever release happened to fix something yaw-mcp noticed; it tracks the current oam release and moves with every one. oam is pre-1.0 and moves fast, and oamjs.org only ever installs the current release, so hosting sidecars on anything older means running a build nobody else is.
|
|
432
|
+
|
|
433
|
+
A below-minimum oam is refused rather than silently used -- the servers run on node instead, which is where they were before oam existed, with one warning naming both versions. `install` now says so when oam is missing.
|
|
434
|
+
|
|
435
|
+
**Changed -- `LICENSE` renamed to `LICENSE.md`**
|
|
436
|
+
|
|
437
|
+
The license file is renamed from `LICENSE` to `LICENSE.md` and `package.json` now declares `SEE LICENSE IN LICENSE.md` rather than the doubled-up `SEE LICENSE IN LICENSE`. `SEE LICENSE IN <filename>` is npm's own syntax for a license with no SPDX identifier, so the repetition was just the filename having no extension.
|
|
438
|
+
|
|
439
|
+
Cosmetic only. The license text, its terms, and the licensor are unchanged.
|
|
440
|
+
|
|
441
|
+
## 0.74.0 -- local-only: the hosted control plane is retired (BREAKING)
|
|
442
|
+
|
|
443
|
+
The hosted backend is gone. Every endpoint yaw-mcp called returns 404 -- `/api/connect/config`, `/heartbeat`, `/analytics`, `/servers`, `/api/compliance/ext`, `/api/try/event`, the dashboard, and `/signup`. Rather than keep code that cannot succeed, account mode is removed outright: your servers come from `~/.yaw-mcp/bundles.json` and your credentials from the local encrypted vault. Roughly 5,800 lines deleted.
|
|
444
|
+
|
|
445
|
+
Only two hosted surfaces survive, and neither needs an account: the public server catalog at `https://yaw.sh/data/mcp-catalog.json` (fetched on demand by `add` / `try`) and its browsable form at `https://yaw.sh/mcp/catalog/`.
|
|
446
|
+
|
|
447
|
+
**Breaking -- removed**
|
|
448
|
+
|
|
449
|
+
- `mcp_connect_install` and `mcp_connect_import` meta-tools. Both wrote to the account and already hard-errored in local mode. Add servers with `yaw-mcp add <slug>`.
|
|
450
|
+
- `compliance --publish` -- posted reports to a dead endpoint. Now rejected with exit 2.
|
|
451
|
+
- The 60s config poll. `bundles.json` is read once at startup, so restart the MCP client after editing it.
|
|
452
|
+
- Semantic reranking. Ranking is BM25 computed locally, plus the health, learning, and sampling signals. The Voyage-backed embedding index it depended on is retired.
|
|
453
|
+
- All telemetry. The analytics, heartbeat, and tool-report posters are deleted, and `try`'s event POST is a no-op that no longer computes or stores a machine fingerprint. Nothing is transmitted off your machine.
|
|
454
|
+
- `yaw-mcp servers` is now a deprecation stub that prints to stderr and exits 1. It is retained for one release because Yaw Terminal's MCP panel shells out to it and reads a non-zero exit as signed-out; the compliance grade it used to show moved to a `GRADE` column in `yaw-mcp list`.
|
|
455
|
+
|
|
456
|
+
**Breaking -- `yaw-mcp remove` now confirms**
|
|
457
|
+
|
|
458
|
+
`remove` was the only destructive verb without a gate. On a TTY it previews the namespace, name, launch command, and env KEY names (never values), then asks -- bare Enter is no. Off a TTY it refuses with exit 2 and names `--force`.
|
|
459
|
+
|
|
460
|
+
This breaks scripted use, and it breaks intermittently: a script removing an already-absent server still exits 0, so the cleanup path that worked yesterday fails the one time there was something to clean. Add `--force`. The gate exists because removal is less reversible than it looks -- env values stored on the entry go with it and `add` will not bring them back.
|
|
461
|
+
|
|
462
|
+
**Breaking -- Node 20 is the floor**
|
|
463
|
+
|
|
464
|
+
`engines` moves from `>=18.17` to `>=20`, and the build target moves from `node18` to `node20` to match. This is a correction, not a new requirement: `@yawlabs/mcp-compliance` is a direct production dependency and already required `node>=20`, so the package could not actually run on Node 18 while still advertising that it could. Node 18 is also past end of life.
|
|
465
|
+
|
|
466
|
+
The practical change is where it fails. `npm install` on Node 18 now refuses with `EBADENGINE` instead of installing a tree that breaks at runtime. `npx -y @yawlabs/mcp` is unaffected -- it pulls a recent Node on its own.
|
|
467
|
+
|
|
468
|
+
**Deprecated for one release -- still accepted, now warns**
|
|
469
|
+
|
|
470
|
+
- `--token` and `--no-yaw-mcp-config` on `yaw-mcp install`. Both are still fully parsed, so `install --all --token mcp_pat_...` keeps working and keeps exiting 0; the values are ignored.
|
|
471
|
+
- The `token` and `apiBase` keys in `.yaw-mcp/config.json`. The file still loads; a warning names it and tells you to revoke the PAT at its source, since deleting the key does not deactivate it.
|
|
472
|
+
- `doctor --json` keeps every key it used to emit. `token` and `apiBase` retain their nested shapes with null members and `backgroundPosters` keeps `{"analytics": null, "toolReport": null}`, rather than flattening to a bare `null` that would throw for anyone reading `.token.source`.
|
|
473
|
+
|
|
474
|
+
**Security**
|
|
475
|
+
|
|
476
|
+
- **Project `bundles.json` now requires explicit consent.** A project-scoped `<project>/.yaw-mcp/bundles.json` is normally committed to a repo, and every server in it is a command yaw-mcp spawns as you at startup. Cloning a hostile repo and opening an editor in it was enough to execute arbitrary argv. An unapproved file is ignored and your user-global file still loads; approve with `yaw-mcp trust`, which prints every command and arg before asking. Approval pins the file's SHA-256, so a later commit re-requires it. `--list` flags drifted entries, `--revoke` withdraws, and `YAW_MCP_TRUST_PROJECT=1` bypasses for CI. Your own `~/.yaw-mcp/bundles.json` is never gated.
|
|
477
|
+
- The consent preview escapes C0, DEL, C1 (0x9b is 8-bit CSI), and bidi overrides. Without it a repo could conceal its argv with SGR 8 or erase the rendered block with cursor-up before the prompt painted, defeating the one thing the gate guarantees.
|
|
478
|
+
- An unreadable project file no longer suppresses your user-global servers. A repo committing `.yaw-mcp` as a regular file (ENOTDIR) or `bundles.json` as a symlink loop (ELOOP) previously dropped every server on POSIX.
|
|
479
|
+
- Dropping the `apiBase` precedence chain closes a real hole: project scope was honored for `apiBase` while refused for `token`, so a committed project config could redirect the API base and the global token would follow it to an attacker host. `url-safety.ts` is deleted with it -- nothing dials a config-supplied URL any more.
|
|
480
|
+
- A transient trust-store read error (EACCES/EIO, an antivirus lock) no longer wipes every approval; I/O and parse failures are distinguished and I/O refuses to write.
|
|
481
|
+
|
|
482
|
+
**Fixed**
|
|
483
|
+
|
|
484
|
+
- `YAW_MCP_MIN_COMPLIANCE` was silently inert and the discover `[A]`-`[F]` badge never rendered -- `complianceGrade` lost its supplier with the backend and nothing read `grades.json`. Grades are now overlaid at startup.
|
|
485
|
+
- Prewarm respawned every active server on every client start, because the tool cache lost its only writer. It is persisted at state schema v2; v1 files migrate rather than being dropped.
|
|
486
|
+
- A tool-name collision between two upstreams pointed `tools/list` and dispatch at different servers -- the model saw one upstream's schema while the call executed another's, letting a later-activated server capture an earlier one's traffic. Both surfaces now agree on the first writer.
|
|
487
|
+
- On Windows, an `npm --prefix` containing a space was split into two argv tokens by the `shell: true` self-upgrade spawn, so the upgrade landed in the wrong tree and the running copy stayed stale. `C:\Users\<First Last>\AppData\Roaming\npm` is npm's default global prefix, so any account with a space in its name hit this on every stale startup.
|
|
488
|
+
- `doctor` lost its only exit-2 path when account mode went (both gates tested `config.token === null`), so a malformed config exited 0. The gate is unconditional now.
|
|
489
|
+
|
|
490
|
+
**Added**
|
|
491
|
+
|
|
492
|
+
- A root `LICENSE`: source-available, not open source. Free personal and commercial use and redistribution of unmodified copies; no right to offer it to third parties as a competing product. Contributions are accepted under DCO 1.1 sign-off -- no CLA, no copyright assignment. `package.json` previously declared `UNLICENSED` with no license file at all.
|
|
493
|
+
- `yaw-mcp trust` (`--list`, `--revoke`, `--yes`, `--json`).
|
|
494
|
+
- Test coverage grew from 1,809 to 1,998 tests. `ConnectServer.start()` had none and is now the only startup path.
|
|
495
|
+
|
|
496
|
+
## 0.73.1 -- README rewrite and a full-pass review sweep
|
|
497
|
+
|
|
498
|
+
**Docs.** The README is rewritten against `index.ts --help`, `KNOWN_SUBCOMMANDS`, and `meta-tools.ts` -- about half its former length. It drops the retired Yaw Team surface (`login`/`logout`/`sync`/`stats`, `secrets push`/`pull`, `rotate --push`), gone since 0.71.0 but still documented, and adds the previously-undocumented top-level `audit` and `mcp_connect_secrets`.
|
|
499
|
+
|
|
500
|
+
**Fixed** -- 33 findings from a full-pass sweep of all source files, each adversarially re-verified before being fixed:
|
|
501
|
+
|
|
502
|
+
- `YAW_MCP_MIN_COMPLIANCE` was enforced only in `handleActivate`; the floor gate moved into `runActivateOne` so dispatch, discover auto-warm, deferred activation, and autoLoad all honor it.
|
|
503
|
+
- A concurrent-server-cap TOCTOU: the slot is reserved synchronously before `connectToUpstream`, so parallel activations of distinct namespaces cannot exceed the cap.
|
|
504
|
+
- A non-string allow-list entry no longer collapses to `[]` (allow-all), shadowing a valid parent scope; it warns and falls through.
|
|
505
|
+
- `recordSuccess` no longer fabricates a dispatch; shutdown counts an undrained backlog as dropped; sub-30% error rates are surfaced rather than silently penalizing rank.
|
|
506
|
+
- A child that dies during the initial fetch window is no longer reported as connected.
|
|
507
|
+
- Secret redaction sorts longest-first, so a secret that is a substring of another cannot leak a tail.
|
|
508
|
+
|
|
509
|
+
Intentionally deferred: converting `index.ts`'s 39 `process.exit()` calls to `process.exitCode` (needs restructuring the top-level ESM dispatch), and `reward.ts`'s first-text-block-only grading heuristic (changes cross-session learning behavior).
|
|
510
|
+
|
|
511
|
+
## 0.73.0 -- post-merge review findings and ship-ready UX blockers
|
|
512
|
+
|
|
513
|
+
**Fixed**
|
|
514
|
+
|
|
515
|
+
- PowerShell positional completion was entirely dead. Every slot guard read `if ($tokens.Count -eq <index+2>)`, but that switch only runs inside the `else` of `if ($tokens.Count -le 2)`, so slot 0's `-eq 2` could never be true and no client, action, or shell candidate was ever offered. Verified with `TabExpansion2` against real PowerShell 5.1. bash/zsh/fish were correct and untouched.
|
|
516
|
+
- The secrets audit log recorded `injected` for secrets that were never injected. `recordResolveAudit` ran before the fail-closed missing-refs throw, so a refused spawn still logged every resolvable ref as injected -- meaning `yaw-mcp secrets audit` answered "did this server ever receive my prod token" with a false yes. Only `missing` events are recorded on that path now.
|
|
517
|
+
- A fatal startup config error exited 0. The fire-and-forget `runServer()` rejection was caught by the last-resort `unhandledRejection` handler, so a bad `YAW_MCP_URL` reported failure while returning success to any supervisor. Exits 1 now.
|
|
518
|
+
- An invalid secret name was rejected only after both prompts, so `secrets set "my token"` made you enter a passphrase and a secret value before saying the name was never valid. Validated in `parseSecretsArgs` now.
|
|
519
|
+
- The compliance shell-fallback message named the wrong characters -- `quoteForShell` also rejects `%` on win32 and `'` on POSIX.
|
|
520
|
+
- A pre-existing prompt bug in the same reader path: the value prompt rendered as `Secret value: Vault passphrase: `.
|
|
521
|
+
|
|
522
|
+
**Ship-ready blockers**
|
|
523
|
+
|
|
524
|
+
- `yaw-mcp --HELP` booted a silent stdio server. `suggestFlag` dropped the one alias you meant from its own candidate pool, returned `[]`, and fell through to `runServer()` -- the exact hang that branch exists to prevent. Exits 2 with a suggestion now.
|
|
525
|
+
- Neither destructive secrets path confirmed. `secrets remove` deleted immediately, and `secrets set` over an existing name overwrote while printing the same message as a fresh write. Both are now gated the way a config collision already was: prompt on a TTY, refuse off one. `remove` is gated both ways since it is unrecoverable; `set` still proceeds non-interactively so rotation scripts keep working, but prints `Replaced secret "X"` and sets `replaced` in `--json`.
|
|
526
|
+
|
|
527
|
+
## 0.72.0 -- unblock the release on win32-arm64
|
|
528
|
+
|
|
529
|
+
**Fixed**
|
|
530
|
+
|
|
531
|
+
- Pinned `@biomejs/biome` to 2.4.16. The 2.5.x native binary segfaults (exit 139) on MINGW64-ARM64 before producing any output, which blocked `npm run lint` and stalled the release script -- its tolerance paths could not engage because there was no output to match against. 2.4.16 runs cleanly.
|
|
532
|
+
- `biome.json` follows the 2.4 flat schema (`rules.recommended: true` rather than `rules.preset`), plus the formatter rewrites that pin brought with it.
|
|
533
|
+
|
|
534
|
+
## 0.71.0 -- remove the Yaw Team surface (BREAKING)
|
|
535
|
+
|
|
536
|
+
The Yaw Team tier is fully retired. The yaw.sh `/api/team/*` and `/api/admin/*` endpoints have been deleted, so every command that spoke to them is removed rather than left to fail at runtime.
|
|
537
|
+
|
|
538
|
+
**Breaking -- these subcommands no longer exist:**
|
|
539
|
+
|
|
540
|
+
- `yaw-mcp login` / `logout` / `token` -- team session auth.
|
|
541
|
+
- `yaw-mcp sync` (`push` / `pull` / `status`) -- replicated `bundles.json` via the team resource. The local file was the payload; the transport was team, so there is nothing left to keep.
|
|
542
|
+
- `yaw-mcp stats` -- read team-analytics; it had no local data source.
|
|
543
|
+
- `yaw-mcp set-active` -- wrote the shared team resource.
|
|
544
|
+
- `yaw-mcp secrets push` / `secrets pull`, and the `--force` / `--replace` / `--push` flags. These are now **rejected** with a usage error rather than accepted as no-ops -- a flag that parses and does nothing reads as supported.
|
|
545
|
+
|
|
546
|
+
**Not affected -- these are local and keep working:**
|
|
547
|
+
|
|
548
|
+
- **The secrets vault.** `secrets set` / `get` / `list` / `remove` / `lock` / `rotate` / `audit` are entirely local and unchanged. `rotate` still re-encrypts every entry under a new passphrase; only its optional `--push` step is gone, making it a purely local operation.
|
|
549
|
+
- **Reranking.** `rerank.ts` had two transports. The team path is removed; the legacy `MCPH_TOKEN` endpoint is retained, so account-mode reranking works as before and still falls back to BM25 when the backend is unavailable.
|
|
550
|
+
- **Analytics.** Only the team tee-out is gone. Local buffering, flushing, and the connect/dispatch endpoints are unchanged.
|
|
551
|
+
|
|
552
|
+
`src/team-sync.ts` is deleted in full.
|
|
553
|
+
|
|
554
|
+
## 0.70.3 -- drop the SEA binary track; npm install is the install story
|
|
555
|
+
|
|
556
|
+
The per-platform Node SEA (Single Executable Application) build track is removed. Going forward, install via `npm install -g @yawlabs/mcp` (or `npx -y @yawlabs/mcp`). See `docs/v0.70.3-binary-track-decision.md` for the full rationale; short version: the SEA track required a dedicated build host per platform (Node SEA cannot cross-compile), the GCP and AWS path for win32-x64 + linux-arm64 hit a 5-hour OpenSSH bootstrap and a `CPUS_ALL_REGIONS` quota lockout, and the npm install path covers every install target we ship to with one build.
|
|
557
|
+
|
|
558
|
+
- **`release.sh` simplified to 5 steps.** Lint + typecheck + tests (step 1), build (step 2), bump + commit + tag + push (step 3), publish to npm (step 4), publish `server.json` to the MCP registry (step 5). The previous `--build-only` and `--upload-asset` subcommands are removed; `release.sh` now has one mode and a single entry point.
|
|
559
|
+
- **Build-infra files deleted.** `sea-config.json`, `scripts/build-binary.mjs`, `scripts/build-platform-remote.sh`, `scripts/build-platforms-all.sh`, `scripts/build-win-x64-ephemeral.sh`, `scripts/platforms.json.example`, `scripts/stage-release-asset.mjs`, `scripts/update-manifests.mjs`, and the untracked `bin/platforms.json` + `bin/win32-arm64/` are removed. The `.gitignore` entries for `bin/`, `build-tmp/`, and `dist-release/` go with them.
|
|
560
|
+
- **`postject` devDependency removed.** It was the only Node-SEA-only dep.
|
|
561
|
+
- **Install paths collapsed.** `BINARY_DISTRIBUTION.md` (which documented the SEA build) is replaced with a one-page install guide pointing to npm. Scoop (`YawLabs/scoop-yaw`) and Homebrew (`YawLabs/homebrew-yaw`) taps are not updated for 0.70.3 and may lag -- prefer `npm install -g @yawlabs/mcp` until the taps catch up.
|
|
562
|
+
|
|
563
|
+
## 0.70.1 -- `yaw-mcp token` subcommand for trusted local apps
|
|
564
|
+
|
|
565
|
+
Adds a `token` subcommand that prints this machine's Yaw Team session token (the raw `yaw_team` cookie) on stdout, for a TRUSTED LOCAL app to present to a Yaw endpoint that verifies the same HMAC session -- e.g. Vew Meetings' `POST /api/meeting`. Makes NO network call: reads the session persisted by `login` and emits it only when still valid (exp-checked via `team-sync`'s `loadStoredState`), else exits 1 with nothing on stdout.
|
|
566
|
+
|
|
567
|
+
- **`team-sync`:** new `getSessionWithCookie()` reads + exp-validates the stored `{ cookie, session }` and returns it (or `null`); no network call.
|
|
568
|
+
- **Registered everywhere a subcommand must be:** `index.ts` dispatch + help, `KNOWN_SUBCOMMANDS`, and `SUBCOMMAND_SPEC` (the completion-coverage test enforces no drift). `--json` emits `{ ok, token, email, exp }`; plain prints the raw token (treat stdout as sensitive -- it's a bearer credential).
|
|
569
|
+
- **Completion spec dedup.** `SUBCOMMAND_SPEC` had a stale duplicate `token` entry from a prior WIP; removed so the spec stays one-entry-per-subcommand. Caught by `biome check` formatting the now-double entry, not by the coverage test -- the spec coverage test should arguably also assert uniqueness, file a follow-up.
|
|
570
|
+
|
|
571
|
+
## 0.63.2 -- release pipeline: publish npm from CI
|
|
572
|
+
|
|
573
|
+
No changes to the package runtime or CLI -- this release exists to exercise the
|
|
574
|
+
new CI-on-tag-push publish flow end to end. The published artifact is identical
|
|
575
|
+
to 0.63.1 aside from the version bump.
|
|
576
|
+
|
|
577
|
+
- **npm is now published from CI, not the workstation.** A new `publish-npm` job
|
|
578
|
+
in `release.yml` publishes `@yawlabs/mcp` on every `v*` tag using the org
|
|
579
|
+
`NPM_TOKEN` + `--provenance` (the repo and package are public), gated on the
|
|
580
|
+
binary build so npm and the GitHub Release stay in lockstep. It is idempotent:
|
|
581
|
+
a version already live is a clean skip, and an `EPUBLISHCONFLICT` from
|
|
582
|
+
registry read-replica lag is treated as success. `publish-registry` now
|
|
583
|
+
`needs: publish-npm`, so the MCP-registry verify can no longer race ahead of
|
|
584
|
+
the npm publish. `release.sh`'s hand-off detection was tightened to key on a
|
|
585
|
+
real `npm publish` / `NODE_AUTH_TOKEN` signal instead of the registry job's
|
|
586
|
+
`id-token: write` (the false positive that wedged the 0.63.0/0.63.1 runs).
|
|
587
|
+
- **Registry job hardening.** `mcp-publisher` is pinned to a tagged release and
|
|
588
|
+
verified against its published sha256 before execution (was an unpinned
|
|
589
|
+
`curl .../latest | tar`), and the job pins its Node toolchain via `setup-node`.
|
|
590
|
+
|
|
591
|
+
## 0.63.1 -- CLI follow-ups: wire dead --dry-run/--stdin flags, fix completion drift, dedup probes
|
|
592
|
+
|
|
593
|
+
Patch-level follow-ups on the 0.63.0 CLI hardening pass. All fixes; no behavior changes for callers who weren't already hitting the dead-flag bugs.
|
|
594
|
+
|
|
595
|
+
- **`sync push --dry-run`** now short-circuits before any remote mutation. The flag was parsed but never checked by `syncPush`, so a "dry-run" PUT actually mutated `mcp_bundles`. Preview now prints server count and exits 0 without calling `putResource`.
|
|
596
|
+
- **`secrets set --stdin`** now reads raw multi-line stdin even on a TTY. The flag was parsed but never consumed by `runSecrets`, so it silently fell through to the line-buffered echo-off prompt regardless. `--stdin` now forces the raw read path as documented.
|
|
597
|
+
- **`install <client> --dry-run`** now bypasses the collision gate. With an existing yaw-mcp entry + non-TTY stdin, the gate refused before the dry-run preview block ever ran -- so the "...or --dry-run to preview" hint was unreachable. The decision chain now treats `dryRun` like `force` for the overwrite-vs-skip choice.
|
|
598
|
+
- **Completion `SUBCOMMAND_SPEC` drift fixed.** `sync` no longer advertises a phantom `--key` (replaced with the real `--dry-run`); `secrets` no longer advertises a phantom `--key` (replaced with the real `--force`).
|
|
599
|
+
- **`try-cmd` telemetry POSTs are now awaited.** Three fire-and-forget `postEvent(...).catch(() => undefined)` calls (try / cleanup / expiry-gc) could be killed by `process.exit` before the request landed. Now awaited so the analytics event reliably reaches the backend before exit.
|
|
600
|
+
- **`doctor` `state.json` double-read eliminated.** `peekStateFile` hoisted to the caller and the result threaded into `renderStateSection`, removing the redundant disk read inside the section.
|
|
601
|
+
- **`doctor` probe duplication removed.** Extracted `classifyProbeContent` shared by both sync and async client-config probes (~60 lines deduped). Also added the missing `try/catch` around `resolveInstallPath` in `probeClientsAsync` for parity with the sync variant.
|
|
602
|
+
- **`secrets get` / `remove` against a missing vault or missing entry** now short-circuit before the passphrase prompt, avoiding the wasted scrypt key derivation just to say "not found".
|
|
603
|
+
- **`upgrade-cmd`:** removed unreachable `if (!plan.command)` branch -- every install method whose plan reaches that point already returned earlier in the chain.
|
|
604
|
+
- **`index.ts` help text:** corrected the `YAW_MCP_AUTO_UPGRADE` description ("yaw-mcp serve startup" was not a subcommand; now "server startup").
|
|
605
|
+
|
|
606
|
+
## 0.63.0 -- CLI hardening: flag parsing, exit-code consistency, secret-file perms, dispatch error handling
|
|
607
|
+
|
|
608
|
+
A full-pass sweep of the `yaw-mcp` subcommand surface. Every change is a fix, a hardening, or additive; there are no breaking changes to the MCP server or the public CLI contract.
|
|
609
|
+
|
|
610
|
+
- **Value-taking flags no longer swallow a following flag.** `login --key`, `secrets set --value`, `try --base`, and `add --catalog` reject a dash-prefixed token instead of storing it as the value -- e.g. `login --key --json` no longer POSTs `"--json"` as the license key, and `try slug --base --dry-run` no longer silently drops `--dry-run` and wires the trial for real. (`--value` points at `--stdin` for a genuinely dash-leading secret.)
|
|
611
|
+
- **`--help` / exit-code consistency.** `yaw-mcp audit --help` and `compliance --help` now print usage to stdout and exit 0 like every other subcommand (compliance previously forwarded `--help` into an `npx` download); `compliance` with no target exits 2 (arg error) instead of 1.
|
|
612
|
+
- **Uncaught command rejections are handled.** Every subcommand funnels through a shared dispatcher `.catch` that prints `yaw-mcp <cmd>: <message>` and exits 1, instead of dumping a raw Node stack and bypassing the logger (reachable e.g. via `secrets` against a corrupt vault).
|
|
613
|
+
- **Secret-bearing files are born 0600.** `atomicWriteFile` gained a creation-mode option; the token config, team session cookie, encrypted vault, and the install config backup are now written owner-only rather than sitting at the default umask in the window before the post-hoc chmod. `install --dry-run` redacts the token in the config dump, and `--token` carries a process-table exposure note.
|
|
614
|
+
- **`doctor`:** `--json` now runs the same expired-trial GC as the text path, and the snapshot carries the `trials` + `backgroundPosters` sections (it was not the "1:1 mirror" its comment claimed). The header documents the config read-modify-write side effect and the now-unreachable exit code 1.
|
|
615
|
+
- **Completion drift guard made real.** Shell completion now offers `foundry`, and the completion test asserts coverage against the real dispatch table (extracted to `src/subcommands.ts`) instead of a hand-maintained list that had silently diverged.
|
|
616
|
+
- **`secrets`:** `get` documents that it prints cleartext (with an interactive-TTY stderr warning); Ctrl-D at the passphrase prompt cancels instead of submitting a partial passphrase; `pull` empty-remote `--json` carries the same hint as the prose path.
|
|
617
|
+
- **`compliance --publish`** projects the report to an explicit allowlist before upload (no echoed env/argv/stack leaks), and the suite child's stdout is capped (16 MB) behind a wall-clock watchdog.
|
|
618
|
+
- **`upgrade`:** the `_npx` marker now requires the full npm-cache hex context, so a user project path that merely contains a `_npx` segment is no longer misclassified as an npx run; the 1->2 exit sequence for non-runnable methods (binary/dev-checkout) is documented.
|
|
619
|
+
- **`add`** trims whitespace-only `--env` values so a blank-ish required secret is never persisted to bundles.json. Did-you-mean now includes `help`, gates its substring tier for very short queries, and a leading-dash near-miss (`--versionn`) suggests the flag instead of silently booting the MCP server.
|
|
620
|
+
- **deps:** `esbuild` override pinned to `^0.28.1`.
|
|
621
|
+
|
|
622
|
+
## 0.62.0 -- verifiable-signal routing: graded reward, miss tracking, and an eval foundry
|
|
623
|
+
|
|
624
|
+
Lands #25, #26, and #27. The dispatch router's learning signal moves from a binary "any non-error reply counts as success" to a sound, quality-graded reward, plus the surrounding machinery to manufacture and verify that signal. All of the new behavior is additive and the new knobs are off by default, so existing setups are unchanged.
|
|
625
|
+
|
|
626
|
+
- **Dispatch reward is now graded, not binary.** An empty body or an error-shaped 200 (e.g. `{isError:false, text:"not found"}`) no longer banks full credit toward a server's `mcp_connect_dispatch` boost -- the learning signal is a quality-weighted reward in [0,1], so a server that "replies" but does not actually help stops accruing a nudge. When every reply is a clean success or a hard error this collapses to the old behavior.
|
|
627
|
+
- **Re-dispatch miss signal.** When an intent routes to server A, A replies cleanly but is abandoned, and a token-similar intent then routes to a different server B within ~2 minutes, A is penalized as the wrong route. Designed multi-server flows (curated bundles, detected packs) are excluded so an intentional A-then-B chain is not mistaken for a miss.
|
|
628
|
+
- **Step-level (process) reward in `mcp_connect_exec`.** Each pipeline step is graded on its own; a step that fails on bad `$ref` input it consumed from an upstream step splits the blame with the producer instead of being fully blamed, so a flaky producer does not hide behind a healthy consumer (or vice versa).
|
|
629
|
+
- **Routing effort dial -- `YAW_MCP_ROUTE_EFFORT=off|auto|aggressive`** (also a per-call `routeEffort` arg on `mcp_connect_dispatch`). Controls how much LLM sampling dispatch spends to disambiguate close rankings. `auto` (default) preserves the prior fixed top-2 tiebreak exactly -- no latency change on the default path; `aggressive` samples best-of-3 on milder ambiguity; `off` never samples.
|
|
630
|
+
- **Opt-in LLM reward grader -- `YAW_MCP_REWARD_GRADER=1`** (off by default). On the uncertain reward bands only, it asks the client's own LLM (via MCP sampling) whether a call accomplished the goal and revises the credit in the background. Non-blocking (the tool result never waits on the grade), capability-gated, and never-throwing -- a missing capability / timeout / unparseable reply just leaves the heuristic reward standing.
|
|
631
|
+
- **Opt-in routing-eval harvest + CI gate -- `YAW_MCP_FOUNDRY=1`** (off by default). Writes a privacy-safe `(intent -> chosen server)` corpus to `~/.yaw-mcp/foundry.jsonl`: the intent is reduced to a redacted, secret-stripped, order-shuffled token bag, never the raw text. New `yaw-mcp foundry export` folds the harvest into a checked-in regression corpus (snapshotting the local server catalog), and a BM25-floor gate scores the ranker against real dispatches -- it skips cleanly until a corpus is committed.
|
|
632
|
+
|
|
633
|
+
## 0.61.0 -- audit-fix wave: exec binding payloads (BREAKING), live-bug fixes, 50+ hardening items
|
|
634
|
+
|
|
635
|
+
- **BREAKING: `mcp_connect_exec` step bindings now hold the step's semantic payload, not the raw MCP wire wrapper.** A single-text-item JSON response binds as the parsed value, a non-JSON text response binds as the string, and anything else binds as the content array. `$ref` paths written against the old wire shape -- e.g. `"stepId.content[0].text"` -- now throw a RefError; migrate to `"stepId"` (whole value) or `"stepId.field"` (a specific field). This matches what the tool description always promised.
|
|
636
|
+
- `mcp_connect_activate` / `mcp_connect_dispatch` set `isError` whenever a real activation failure occurs (partial successes no longer mask failures); concurrent-server-cap refusals are flagged internally and stay informational in both. Deactivating an already-unloaded namespace is now an idempotent success.
|
|
637
|
+
- ~30 further fixes from a full-implementation audit: bundles.json write serialization + ENOENT-only absence handling, `list` surfaces parse warnings, analytics 401 no longer clears the team session, `secrets pull` refuses cross-passphrase overwrites without `--force`, uv probe/retry fixes on Windows, stable array positions in pruned tool output, `--help` exits 0 on stdout across subcommands, ASCII-safe terminal output, and assorted copy corrections.
|
|
638
|
+
|
|
639
|
+
## 0.60.3 -- npm-prefix refinement + pnpm/bun self-upgrade
|
|
640
|
+
|
|
641
|
+
- `refineInstallMethod` now probes `npm prefix -g` (3s timeout) and normalises the result through `realpathSync` so junctioned prefixes (scoop's `current` symlink, Volta shims) resolve to the real path before comparison. When the running entrypoint lives under the npm global prefix, ambiguous `local-node-modules` / `unknown` detections are promoted to `global-npm` -- fixes exotic prefix setups the path-marker list doesn't know.
|
|
642
|
+
- The probe is wired into both `yaw-mcp upgrade` and `yaw-mcp doctor` via the shared `refineInstallMethod` call in `runUpgrade` / `runDoctor`.
|
|
643
|
+
- `maybeAutoUpgrade` (the fire-and-forget startup check) now acts on stale pnpm and bun global installs with `pnpm add -g` / `bun add -g @yawlabs/mcp@latest` in addition to the existing `npm install -g` path. The background spawn log messages interpolate the actual tool name instead of hardcoding `npm`.
|
|
644
|
+
|
|
645
|
+
## 0.60.2 -- pnpm/bun global stores upgrade with their owning tool
|
|
646
|
+
|
|
647
|
+
- `yaw-mcp upgrade` now detects pnpm global stores (`<pnpm-home>/global/<n>/node_modules/...`) and bun global installs (`~/.bun/install/global/...`) as their own install methods. `--run` spawns `pnpm add -g` / `bun add -g @yawlabs/mcp@latest` instead of misclassifying them as local node_modules trees -- which would have npm-installed a foreign package-lock + node_modules into the tool manager's internal store.
|
|
648
|
+
- `yaw-mcp doctor`'s UPGRADE AVAILABLE hint includes pnpm/bun globals in the "`yaw-mcp upgrade --run` works here" set.
|
|
649
|
+
|
|
650
|
+
## 0.60.1 -- scoop/custom-prefix npm globals detected correctly
|
|
651
|
+
|
|
652
|
+
- npm prefixes that live in a `bin` directory (scoop's nodejs persist dir, custom prefixes) put globals at `<prefix>/node_modules` with no `npm`/`lib`/`AppData` marker in the path, so they misclassified as `local-node-modules` -- `upgrade --run` then refused (pre-0.60.0) or npm-installed into the node prefix instead of upgrading the global. New `/bin/node_modules/` marker classifies them as `global-npm`.
|
|
653
|
+
|
|
654
|
+
## 0.60.0 -- nag removed; `upgrade --run` actually upgrades
|
|
655
|
+
|
|
656
|
+
- **The free-tier nag interstitial is gone.** Yaw MCP is free (the Pro tier is retired); `src/nag.ts`, its state file handling, and the dispatch gate were deleted. `YAW_MCP_NO_NAG` no longer has any effect -- there is nothing left to suppress. Remaining Pro references in help text, README, and the package description now read Yaw Team.
|
|
657
|
+
- **`yaw-mcp upgrade --run` upgrades local node_modules installs in place** instead of refusing and printing another command: it derives the package-tree root from the running entrypoint's path and runs `npm install @yawlabs/mcp@latest` there.
|
|
658
|
+
- **New `bundled-app` install method** for the copy that ships inside Yaw Terminal (`app.asar.unpacked`): upgrade/doctor say plainly that it updates with the app instead of suggesting an npm command that can never affect it.
|
|
659
|
+
- **Method-aware `doctor` upgrade hints**: the UPGRADE AVAILABLE section prints the user's terminal action for their install method, never a command that turns around and prints another command.
|
|
660
|
+
- Upgrade/doctor output puts commands on their own line with no trailing punctuation so they copy cleanly.
|
|
661
|
+
|
|
662
|
+
## 0.58.0 -- Rename to Yaw MCP + local-first Free mode + Pro nag + sync client
|
|
663
|
+
|
|
664
|
+
### Secrets sync + spawn-time substitution (Phase 6c)
|
|
665
|
+
|
|
666
|
+
The encrypted vault from Phase 6b now syncs across machines and pipes secrets into spawned MCP servers automatically.
|
|
667
|
+
|
|
668
|
+
- `yaw-mcp secrets push` / `pull` -- ship the encrypted vault to/from the `mcp_secrets` team-resource on yaw.sh. The server never sees plaintext or the derived key; it stores the salt + ciphertext + IV + auth tag as an opaque blob. Push uses optimistic-concurrency PUT (pull-first-to-learn-version pattern). Pull overwrites the local vault and locks the in-process key cache so the next operation re-prompts.
|
|
669
|
+
- Spawn-time substitution: any `${secret:NAME}` reference inside a server's `env` value gets replaced with the decrypted vault entry at spawn time. Inline composition like `Bearer ${secret:GITHUB}` works -- the regex replaces just the reference span. Missing secrets pass through as literal text so the child process surfaces its own "missing env var" error rather than receiving an empty string.
|
|
670
|
+
|
|
671
|
+
The spawn path is in `src/upstream.ts:resolveServerEnv`. Requires `YAW_MCP_VAULT_PASSPHRASE` in env because the MCP-server spawn happens in a non-interactive context where prompting on stdin would corrupt the parent's transport. Without the passphrase, refs pass through literally + a warning logs.
|
|
672
|
+
|
|
673
|
+
### Runtime event emission (Phase 5b)
|
|
674
|
+
|
|
675
|
+
`recordConnectEvent` now tees out tool-call events to `/api/team/analytics/event` on yaw.sh when a team session is cached, in parallel with the existing legacy mcp.hosting backend POST. Fire-and-forget; auth failures latch a process-lifetime flag so we don't keep hitting the disk after a session expires. Discover / activate / etc. events stay in the legacy buffer only -- only tool_call events flow to team-analytics.
|
|
676
|
+
|
|
677
|
+
### Encrypted secret vault (`yaw-mcp secrets`)
|
|
678
|
+
|
|
679
|
+
New `yaw-mcp secrets <action>` subcommand for managing a passphrase-encrypted vault at `~/.yaw-mcp/secrets.json`. AES-256-GCM with per-entry IVs; key derived from a passphrase via scrypt (N=2^15, r=8, p=1) and cached in process memory for the lifetime of the yaw-mcp invocation.
|
|
680
|
+
|
|
681
|
+
Actions:
|
|
682
|
+
- `set <name>` -- read value from stdin (TTY: no-echo prompt; piped: raw stdin)
|
|
683
|
+
- `set <name> --value <v>` -- inline value (beware shell history)
|
|
684
|
+
- `get <name>` -- decrypt + print to stdout
|
|
685
|
+
- `list` -- show entry names only (values stay encrypted)
|
|
686
|
+
- `remove <name>` -- delete an entry
|
|
687
|
+
- `lock` -- clear the in-process passphrase cache
|
|
688
|
+
|
|
689
|
+
Passphrase resolution: `YAW_MCP_VAULT_PASSPHRASE` env var > interactive TTY prompt (raw-mode, no echo) > error.
|
|
690
|
+
|
|
691
|
+
File format (vault-level salt + per-entry encrypted blobs):
|
|
692
|
+
```
|
|
693
|
+
{ "version": 1, "salt": "<base64>", "entries": { "<name>": { "iv": "<base64>", "ciphertext": "<base64>", "authTag": "<base64>" } } }
|
|
694
|
+
```
|
|
695
|
+
|
|
696
|
+
New modules: `src/secrets-crypto.ts` (key derivation + encrypt/decrypt primitives), `src/secrets-vault.ts` (file I/O + entry management + in-process key cache), `src/secrets-cmd.ts` (CLI). 31 new tests covering encryption round-trips, tamper detection (ciphertext + auth tag), set/get/list/remove vault ops, passphrase derivation determinism, and parse-arg coverage for all actions.
|
|
697
|
+
|
|
698
|
+
Phase 6c will add the two missing pieces: sync push|pull to the `mcp_secrets` team-resource on yaw.sh (server gets an opaque ciphertext blob, never plaintext) and spawn-time substitution of `${secret:NAME}` references in bundles.json env values.
|
|
699
|
+
|
|
700
|
+
### Stats command (`yaw-mcp stats`)
|
|
701
|
+
|
|
702
|
+
Pro / Yaw Business buyers get a new `yaw-mcp stats` subcommand that prints a digest of their recent AI tool calls. By default shows the last 7 days, capped at the most-recent 50 events; `--limit N` and `--days N` tune the window; `--json` emits machine-readable output for scripting.
|
|
703
|
+
|
|
704
|
+
Aggregates: by server (calls / success / errors / avg latency) and by AI client (Claude Code, Cursor, Claude Desktop, etc.). Each event records server-stamped `ts` + `seat_email`, plus the client-supplied `tool_namespace`, `tool_name`, `status`, optional `latency_ms`, `error_category`, `client_name`, and `client_version`.
|
|
705
|
+
|
|
706
|
+
Free users running `yaw-mcp stats` get an upsell pointer instead of empty output -- analytics requires an account.
|
|
707
|
+
|
|
708
|
+
Phase 5a ships read-only (the command reads `/api/team/analytics` on yaw.sh). Phase 5b will wire runtime event emission from `mcp_connect_dispatch` / `mcp_connect_activate` so events flow automatically; until then only events explicitly POSTed via the team-sync client surface in `yaw-mcp stats`.
|
|
709
|
+
|
|
710
|
+
New module: `src/stats-cmd.ts`. `team-sync.ts` exports `postAnalyticsEvent` + `listAnalyticsEvents` against the new yaw.sh `mcp_analytics` endpoint.
|
|
711
|
+
|
|
712
|
+
### Sync client (bundles)
|
|
713
|
+
|
|
714
|
+
Three new subcommands for Yaw Business + Yaw MCP Pro buyers:
|
|
715
|
+
|
|
716
|
+
- `yaw-mcp login --key <license-key>` -- sign in with the license key emailed at purchase. Persists an HMAC-signed `yaw_team` cookie at `~/.yaw-mcp/team-session.json` (mode 0600 on POSIX, user-profile ACLs on Windows). Same cookie + same `/api/team/session` endpoint as Yaw Terminal Business -- one license key unlocks both surfaces.
|
|
717
|
+
- `yaw-mcp logout` -- best-effort POST to `/api/team/session/logout`, then clears the local file.
|
|
718
|
+
- `yaw-mcp sync push | pull | status` -- replicate `~/.yaw-mcp/bundles.json` across machines via the `mcp_bundles` team-resource:
|
|
719
|
+
- `push` strips env VALUES (preserves keys), PUTs the schema. The server never sees secret values; Phase 6b will add an encrypted `mcp_secrets` vault for syncing those.
|
|
720
|
+
- `pull` GETs `mcp_bundles`, merges env values from the local file where namespaces overlap (so a machine's local API keys aren't wiped by a pull from a machine that didn't have them), writes the result to `~/.yaw-mcp/bundles.json`.
|
|
721
|
+
- `status` shows sign-in state, remote version, and a coarse local-vs-remote diff (servers added/removed; env not compared).
|
|
722
|
+
|
|
723
|
+
All three accept `--json` for scripted use.
|
|
724
|
+
|
|
725
|
+
Free mode is unchanged -- no account required, no sign-in. The nag interstitial now also suppresses when a team-session cookie is present (signed-in user is not Free), in addition to the existing token-set suppression.
|
|
726
|
+
|
|
727
|
+
New module: `src/team-sync.ts` (CLI adapter of `yaw/src/team-sync.ts` from Yaw Terminal). New env: `YAW_MCP_TEAM_BASE_URL` (overrides `https://yaw.sh` for Netlify-preview testing).
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
### Free-tier nag interstitial
|
|
732
|
+
|
|
733
|
+
Free-mode `yaw-mcp` users now see a one-shot interstitial roughly every 2-4 human-initiated subcommand invocations, capped at one per 1.5 days. The CLI analogue of Yaw Terminal's click-to-close toast -- same product family, same nudge cadence. Pitches Pro ($9/mo or $90/yr) and Yaw Business ($10/seat/mo or $99/seat/yr) and requires a keypress (Enter) to continue.
|
|
734
|
+
|
|
735
|
+
Touch points (human-driven subcommands that count toward the cadence):
|
|
736
|
+
- `yaw-mcp install`, `yaw-mcp doctor`, `yaw-mcp servers`, `yaw-mcp bundles`, `yaw-mcp compliance`, `yaw-mcp upgrade`, `yaw-mcp try`, `yaw-mcp try-cleanup`, `yaw-mcp reset-learning`
|
|
737
|
+
|
|
738
|
+
Suppressed when:
|
|
739
|
+
- A token resolves (account mode -- Pro/Business already paying)
|
|
740
|
+
- Either stdin or stdout is not a TTY (CI, piped output, MCP-client subprocess)
|
|
741
|
+
- `YAW_MCP_NO_NAG=1` is set (escape hatch; intentionally not advertised in help)
|
|
742
|
+
- The bare server invocation (no subcommand) -- the AI client launching yaw-mcp must never be interrupted by a keypress prompt mid-tool-call
|
|
743
|
+
|
|
744
|
+
State persists at `~/.yaw-mcp/nag-state.json` (separate from `state.json` so `YAW_MCP_DISABLE_PERSISTENCE=1` doesn't dodge the nag, and so the schema stays trivial: 3 numeric fields, no migration path needed). No grace period; counting starts at touch #1. No escalation; cadence stays constant regardless of how many prior nags the user has dismissed.
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
**Breaking change.** The package is renamed from `@yawlabs/mcph` to `@yawlabs/mcp`, the binary from `mcph` to `yaw-mcp`. Part of a broader rebrand to Yaw MCP, a product under the Yaw Labs umbrella alongside Yaw Terminal and Yaw Mode. See `plans-v2.md` in the mcp-hosting repo for the strategy doc.
|
|
749
|
+
|
|
750
|
+
### Local-first Free mode
|
|
751
|
+
|
|
752
|
+
`yaw-mcp` no longer requires an account. When `YAW_MCP_TOKEN` is unset and `~/.yaw-mcp/config.json` carries no token, the server starts in **local mode**:
|
|
753
|
+
|
|
754
|
+
- Server definitions load from `~/.yaw-mcp/bundles.json` (user-global) or `<project>/.yaw-mcp/bundles.json` (project-local; takes priority over user-global, no merge)
|
|
755
|
+
- No backend polling, no telemetry, no heartbeat -- nothing leaves the machine
|
|
756
|
+
- `mcp_connect_install` and `mcp_connect_import` return a clear "not available in local mode -- edit bundles.json directly" message
|
|
757
|
+
- `yaw-mcp install <client>` works without `--token`; the launch entry just omits the env var and the client launches yaw-mcp in local mode
|
|
758
|
+
|
|
759
|
+
The `bundles.json` schema mirrors the existing dashboard server config (id, name, namespace, type, transport, command, args, env, url, isActive, description). Minimal example:
|
|
760
|
+
|
|
761
|
+
```json
|
|
762
|
+
{
|
|
763
|
+
"version": 1,
|
|
764
|
+
"servers": [
|
|
765
|
+
{
|
|
766
|
+
"namespace": "github",
|
|
767
|
+
"name": "GitHub",
|
|
768
|
+
"command": "npx",
|
|
769
|
+
"args": ["-y", "@modelcontextprotocol/server-github"],
|
|
770
|
+
"env": { "GITHUB_TOKEN": "ghp_..." }
|
|
771
|
+
}
|
|
772
|
+
]
|
|
773
|
+
}
|
|
774
|
+
```
|
|
775
|
+
|
|
776
|
+
Account mode (token set) is unchanged: polls `/api/connect/config` from the backend, runs all the telemetry + heartbeat paths, dashboard is the source of truth.
|
|
777
|
+
|
|
778
|
+
### Rename details
|
|
779
|
+
|
|
780
|
+
What changes for users on upgrade:
|
|
781
|
+
|
|
782
|
+
- **Install command**: `npm install -g @yawlabs/mcp` (was `@yawlabs/mcph`). The old package is deprecated with a pointer to the new one.
|
|
783
|
+
- **Binary name**: `yaw-mcp` (was `mcph`). All subcommands invoke the same way: `yaw-mcp install`, `yaw-mcp doctor`, `yaw-mcp servers`, `yaw-mcp bundles`, etc.
|
|
784
|
+
- **Env var prefix**: `YAW_MCP_*` (was `MCPH_*`). Affects `YAW_MCP_TOKEN`, `YAW_MCP_URL`, `YAW_MCP_POLL_INTERVAL`, `YAW_MCP_SERVER_CAP`, `YAW_MCP_MIN_COMPLIANCE`, `YAW_MCP_AUTO_LOAD`, `YAW_MCP_AUTO_ACTIVATE`, `YAW_MCP_AUTO_UPGRADE`, `YAW_MCP_PRUNE_RESPONSES`, `YAW_MCP_DISABLE_PERSISTENCE`, `YAW_MCP_BASE_URL`.
|
|
785
|
+
- **Config dir**: `~/.yaw-mcp/` (was `~/.mcph/`). Project-local: `<project>/.yaw-mcp/`. Existing config files at the old path are not auto-migrated yet (planned in 0.59).
|
|
786
|
+
- **Guide file**: `YAW-MCP.md` inside the config dir (was `MCPH.md`).
|
|
787
|
+
- **Default API base**: `https://yaw.sh/mcp` (was `https://mcp.hosting`). Set `YAW_MCP_URL` to override. `mcp.hosting` will 301 to `yaw.sh/mcp` once the new backend is live.
|
|
788
|
+
- **MCP resource scheme**: `yaw-mcp://guide` (was `mcph://guide`).
|
|
789
|
+
|
|
790
|
+
Internal code identifiers (`loadMcphConfig`, `composeMcphConfig`, `mcphConfigPath` locals) retain `Mcph` in their names -- those are not user-visible and will be normalized in a follow-up code-hygiene pass.
|
|
791
|
+
|
|
792
|
+
The dev-checkout regex in `detectInstallMethod` now matches either `/yaw-mcp/(dist|src)/` or `/mcph/(dist|src)/` so the dev path keeps working before the repo dir is renamed.
|
|
793
|
+
|
|
794
|
+
## 0.47.2 — 2026-05-01
|
|
795
|
+
|
|
796
|
+
- **`mcph install claude-code` honors `CLAUDE_CONFIG_DIR`** — When Claude Code runs under a wrapper that sets `CLAUDE_CONFIG_DIR` (Yaw Mode's per-session overlay, dev containers that pin a config dir, sandboxed sessions), the user-scope MCP file moves from `~/.claude.json` to `<DIR>/.claude.json`, and `settings.json` moves from `~/.claude/settings.json` to `<DIR>/settings.json` (the `.claude` segment is absorbed by the env redirect — the dir IS the `.claude` equivalent). Prior versions of `mcph install` always wrote to the HOME-based defaults, so a user inside a wrapped session would get a "successful" install whose entry landed in a file Claude Code wasn't reading — `claude mcp list` then showed nothing despite the install reporting success. Discovered when a Yaw Mode session reported `claude mcp list` as empty after `npx -y @yawlabs/mcph install claude-code --token ...` returned 0 and the entry was visibly present in `~/.claude.json`. The CLI dispatcher in `index.ts` now reads `process.env.CLAUDE_CONFIG_DIR` once and passes it through `runInstall` → `resolveInstallPath` / `resolveClaudeCodeSettingsPath`. The same env is plumbed through `runDoctor` → `probeClients(Async)` so `mcph doctor` and `mcph install --list` see the same file Claude Code reads in this session. Resolver functions stay pure (no `process.env` reads inside) — env-handling lives in the entry points so unit tests stay deterministic regardless of whether the test runner inherits a real `CLAUDE_CONFIG_DIR`. Project-scope (`<project>/.mcp.json`) and project/local-scope `settings.json` (project-relative) are unaffected. Cursor / Claude Desktop / VS Code paths are unaffected (Claude Code is the only client that reads `CLAUDE_CONFIG_DIR`). 17 new tests lock the redirect for resolver, install, and doctor.
|
|
797
|
+
|
|
798
|
+
## 0.47.1 — 2026-04-18
|
|
799
|
+
|
|
800
|
+
- **README intro rewritten to frame mcph's value vs. `claude mcp add` / hand-edited `mcp.json`** — Same forum thread (r/cursor, 2026-04-18) had a second comment that v0.47.0 didn't address: "I don't think any developer is 9$ a month afraid of json. Also all of those tools have a nicer way of installing mcp servers than editing json." Fair — the old intro led with "never hand-edit MCP JSON configs again," which is exactly the dismissal that lands. The new intro replaces that line with four concrete situations where mcph earns its keep (multi-client / multi-machine sync, `dispatch` context-pruning for large server accounts, encrypted credential centralization, A–F compliance visibility). It then *concedes* the skeptic's point directly in the last sentence: "If you use one client on one machine with a handful of servers, `claude mcp add` or hand-editing `mcp.json` is fine — mcph's value shows up when that setup stops scaling." Honest framing beats defensive framing; the people who actually have the scaling problem will self-select in.
|
|
801
|
+
|
|
802
|
+
## 0.47.0 — 2026-04-18
|
|
803
|
+
|
|
804
|
+
- **Compliance grade surfaces on every `discover` output, not just when `MCPH_MIN_COMPLIANCE` is set** — Previously the `[A]`/`[B]`/… tag only appeared when the user had pre-configured a floor with `MCPH_MIN_COMPLIANCE`, which meant the trust signal was invisible by default. Forum feedback (r/cursor, 2026-04-18) called this out directly: "how do you manage trust … making sure MCPs do not contain malicious code?" The grade is the answer — but only if you can see it without opting in first. Now every scored server renders with its grade inline (`github — GitHub [ready] [A]`), so the model (and the human reading the output) factors trust into activation decisions unconditionally. The `mcp_connect_discover` tool description picks this up ("treat it as a trust signal and prefer higher-graded alternatives when otherwise equivalent"). Ungraded servers still render untagged (don't punish unknown on a catalog where many entries aren't scored yet). When the floor IS set and a server is below it, the tag is replaced by the existing `(grade D — below MCPH_MIN_COMPLIANCE=B, won't auto-activate)` refusal line. Paired test: `server.test.ts` flips the "omits `[grade]` when env unset" contract to "shows `[grade]` when env unset" and keeps the ungraded-leaves-line-clean invariant.
|
|
805
|
+
- **`Trust & security` section in `README.md`** — Explicit trust-model section addressing the three concerns raised in the same forum thread: (1) malicious code in MCPs, (2) prompt injection through tool output, (3) data siphoning to third parties. Takes the posture that mcph is a source of **visibility and a gate**, not a sandbox — compliance grades + `MCPH_MIN_COMPLIANCE` + `mcph compliance <target>` + `mcph servers` transparency + per-server encrypted credentials + response pruning + namespace isolation — and explicitly documents what mcph does **not** try to solve (outbound network firewalling, process sandboxing, source-hash pinning) so users know where to layer their own defenses (restricted OS user, containers, token rotation). Direct answer to the forum question rather than a hand-wave.
|
|
806
|
+
|
|
807
|
+
## 0.46.4 — 2026-04-18
|
|
808
|
+
|
|
809
|
+
- **`mcph --help` Setup block rewritten for clarity** — The v0.46.3 rewrite used jargony wording ("Auto-edit an MCP client's config") and split the client list onto an ambiguous continuation line. Rewrote the three install rows to action-first prose: `install <client>` says "Configure one MCP client to launch mcph" and spells out the exact slugs (`claude-code, claude-desktop, cursor, vscode`) inline; `--list` says "List which MCP clients are installed on this machine"; `--all` says "Configure every installed MCP client in one go". Same three commands, but it now reads as plain English.
|
|
810
|
+
- **Help + doctor now list `MCPH_AUTO_ACTIVATE`** — The env var has controlled the discover auto-activate gate since the confidence-scoring work landed, but neither the help page nor `mcph doctor`'s ENVIRONMENT section mentioned it, so the only way to discover the toggle was to grep `server.ts`. Added to both: help describes what flipping to `0` does, doctor surfaces the current value with `default on` hint. Also tightens the config resolution table in help — tier 3 (`<project>/.mcph/config.json`, the project-shared file) now notes "never put a token here — apiBase only" so nobody accidentally commits a token to a shared repo.
|
|
811
|
+
|
|
812
|
+
## 0.46.3 — 2026-04-18
|
|
813
|
+
|
|
814
|
+
- **`mcph --help` rewritten: quickstart, grouped subcommands, env vars, config precedence** — The old help listed ten subcommands in a flat table and spent most of its real estate on install flag details (already available via `mcph install --help`) and a three-line token-resolution note. Subcommands are now grouped by purpose (Setup, Inspection, Maintenance, Other), each with a multi-line description that explains what the command actually does — not just its name. A numbered Quickstart at the top points users at the token URL and shows the two commands needed to finish onboarding. An Environment variables section documents the eight `MCPH_*` overrides (`MCPH_URL`, `MCPH_POLL_INTERVAL`, `MCPH_SERVER_CAP`, `MCPH_MIN_COMPLIANCE`, `MCPH_AUTO_LOAD`, `MCPH_PRUNE_RESPONSES`, `MCPH_DISABLE_PERSISTENCE`) that were previously only discoverable by reading the doctor source. Config resolution is expanded from three lines to a proper four-tier precedence list (env → project.local → project → user-global). Trailing pointer to `mcph <subcommand> --help` for flag-level detail so the top-level stays scannable. `INSTALL_USAGE` import removed from `index.ts` since the install flag block no longer inlines into top-level help.
|
|
815
|
+
|
|
816
|
+
## 0.46.2 — 2026-04-18
|
|
817
|
+
|
|
818
|
+
- **Doctor's UPGRADE AVAILABLE section points at `mcph upgrade`** — Previously it inlined `npm install -g @yawlabs/mcph@latest` with a long prose aside about npx-vs-global. Now it tells the user to run `mcph upgrade` (prints the exact command for their install method) or `mcph upgrade --run` (executes for global-npm). Shorter, single source of truth for "how do I actually update?" since doctor already detects staleness and the upgrade subcommand already understands how the install was done.
|
|
819
|
+
|
|
820
|
+
## 0.46.1 — 2026-04-18
|
|
821
|
+
|
|
822
|
+
- **Fix `mcph upgrade` reporting `Current: dev` in shipped bundles** — The v0.46.0 `readCurrentVersion()` used `(globalThis as ...).__VERSION__`, but tsup's `define` only substitutes bare identifier references, not property accesses — so the compiled bundle fell through to the "dev" fallback regardless of what version was installed. Switched to the same `declare const __VERSION__ / typeof __VERSION__ !== "undefined"` pattern used in `index.ts`, `doctor-cmd.ts`, `server.ts`, and `upstream.ts`. Smoke-tested via `npx @yawlabs/mcph@latest upgrade`: now reports the actual installed version.
|
|
823
|
+
|
|
824
|
+
## 0.46.0 — 2026-04-18
|
|
825
|
+
|
|
826
|
+
- **`mcph upgrade` — show (or run) the command that bumps `@yawlabs/mcph` to the latest version** — `mcph doctor` has surfaced staleness for a while, but the fix step was left to the user. This subcommand turns that prompt into an action: it detects *how* mcph is installed by inspecting `process.argv[1]` (global npm, npx cache, project-local `node_modules`, or a dev checkout), fetches the latest version from the npm registry (3s timeout, graceful offline fallback), and prints the exact command that moves the current install forward. `--run` spawns the upgrade for the global-npm case (whitelisted to `npm install -g @yawlabs/mcph@latest` — never arbitrary input into a shell), refuses with exit 2 on non-global install methods to avoid surprise writes, and exit 3 if the spawned npm invocation fails. `--json` emits `{ current, latest, stale, method, command }` so CI scripts can branch on staleness without parsing prose. `npx -y` installs are a no-op ("restart the MCP client and it will fetch the new version") — the path detection catches the `_npx` staging directory and says so. Exit codes are wired for scripting: 0 up-to-date or offline, 1 stale without `--run` (copy-paste mode), 2 usage/refusal, 3 `--run` failed. Completes the doctor→fix handoff that's been missing since the upgrade-check section landed.
|
|
827
|
+
|
|
828
|
+
## 0.45.0 — 2026-04-18
|
|
829
|
+
|
|
830
|
+
- **Clearer 401/403 errors with token fingerprint + actionable fix link** — When the backend rejects a token (`HTTP 401` revoked/malformed, `HTTP 403` accepted but scope-denied), `fetchConfig` now throws an error that names the offending token by its fingerprint (e.g., `mcp_pat_…abcd`), explains what state the token is in, and points directly at the tokens page with a concrete re-install command. Prior wording was "Invalid MCPH_TOKEN — check your token at mcp.hosting" and "Access denied — your token may have expired" — both too vague to action without pinging support. New wording is structured as three lines: cause, fix URL, and the `mcph install … --token mcp_pat_...` re-install command. Messages surface verbatim through `mcph servers`, the top-level `mcph` runtime, and anywhere else `fetchConfig` is awaited, so every user-facing rejection reads the same way.
|
|
831
|
+
|
|
832
|
+
## 0.44.0 — 2026-04-18
|
|
833
|
+
|
|
834
|
+
- **`mcph install --list` + `mcph install --all`** — Two new modes on the install subcommand. `--list` is read-only: it enumerates every client/scope combo for the current OS and shows whether an `mcp.hosting` entry is already wired up, plus a path-per-row and a one-line summary (`N/M client scopes have mcp.hosting configured on linux`). No token, no network, no writes — just a diagnostic view that mirrors the `doctor` CLIENTS section but without the rest of doctor's noise. `--all` walks `INSTALL_TARGETS`, picks the default scope per client (user where supported, else the first non-project-dir scope, else skipped unless `--project-dir` is passed), and calls `runInstall` in a loop — so `--dry-run`, `--force`, `--skip`, and `--token` all propagate as expected. Status is aggregated into a single summary line, and the process exit code is non-zero if any sub-install failed so CI can still gate on one-shot onboarding. Works around the main drop-off during setup ("which client am I supposed to pick?") by offering both the answer (`--list`) and the sledgehammer (`--all`) from the same subcommand.
|
|
835
|
+
|
|
836
|
+
## 0.43.0 — 2026-04-18
|
|
837
|
+
|
|
838
|
+
- **`mcph servers <namespace-filter>` — positional filter** — Passing a bare positional argument now filters the listing to servers whose namespace contains that substring (case-insensitive): `mcph servers git` matches both `github` and `gitlab`. Applies to both the text table and the `--json` output so the two surfaces agree. Summary line reflects the filtered count, and a filter that matches nothing prints an explanatory "No servers match …" instead of an empty table (which previously looked like an empty account).
|
|
839
|
+
- **README catch-up — `CLI reference` block + `doctor --json` documented** — The README was missing the subcommands that landed in v0.38.0 onward (`servers`, `bundles`, `reset-learning`, `completion`) and hadn't been updated to mention doctor's `--json` mode. New compact "Other CLI subcommands" block lists every user-facing command with a one-line purpose, documents the `--json` pattern as the pipeline interface across doctor/servers/bundles, and includes copy-paste install snippets for bash/zsh/fish/powershell completions. The doctor paragraph now lists the actual section coverage (env overrides, persisted state, reliability rollup, shell-shadow hits, upgrade check) so first-time readers know what they get.
|
|
840
|
+
|
|
841
|
+
## 0.42.0 — 2026-04-18
|
|
842
|
+
|
|
843
|
+
- **`mcph completion <shell>` — shell completion scripts** — Prints a completion script for `bash`, `zsh`, `fish`, or `powershell` to stdout so users can one-line it into their completions directory. Each script covers every known subcommand (install, doctor, servers, bundles, compliance, reset-learning, completion) with positional choices (install clients, bundles actions, completion shells) and per-subcommand flags (`--json`, `--scope`, `--token`, `--force`, etc.). Every template derives from a single `SUBCOMMAND_SPEC` table so adding a new subcommand elsewhere updates all four shells at once — no drift between what the CLI accepts and what it completes. Install hints are inlined as comments at the top of each generated script: the bash file drops into `~/.local/share/bash-completion/completions/mcph`, zsh into any `$fpath` dir as `_mcph`, fish into `~/.config/fish/completions/mcph.fish`, pwsh appended to `$PROFILE`.
|
|
844
|
+
|
|
845
|
+
## 0.41.0 — 2026-04-18
|
|
846
|
+
|
|
847
|
+
- **`mcph doctor --json` — machine-readable diagnostic output** — Doctor already tracks a lot of state (config files, token source, env overrides, persisted learning, installed clients, shell-history shadow hits, upgrade availability, diagnosis summary) and the text output optimises for pasting into a support ticket. `--json` emits the same data as a single structured blob so dashboards, CI scripts, and support tooling can pick fields with `jq` instead of parsing the text layout. Token is fingerprinted the same way in both modes (never raw). Section data is 1:1 with the text renderer: config (token/apiBase/loadedFiles/warnings), env overrides (null when unset), state (path/savedAt/entries; `disabled: true` when `MCPH_DISABLE_PERSISTENCE` is set), reliability (same `selectFlakyNamespaces` rollup that `mcp_connect_health` and the text RELIABILITY section use), clients probe results, shell shadow hits, upgrade info, and the exit-code diagnosis. Completes the `--json` pattern across `servers`, `bundles`, and now `doctor` — every CLI that reads state has a pipeline mode.
|
|
848
|
+
|
|
849
|
+
## 0.40.0 — 2026-04-18
|
|
850
|
+
|
|
851
|
+
- **`mcph bundles` CLI subcommand** — CLI counterpart to the `mcp_connect_bundles` meta-tool (v0.28.0). Two actions mirror the meta-tool's `action` parameter: `list` prints every curated bundle grouped by category with activate hints (static, no network, no token needed — good for browsing or sharing in onboarding docs), and `match` partitions the curated set against the user's enabled servers from the backend into ready-to-activate vs partially-installed, so a human can see in the terminal what the LLM-facing tool would suggest. The LLM tool has always been primary surface, but "what bundles exist?" is a frequent enough support question that surfacing them in the CLI earns its keep. Match only counts `isActive: true` servers — disabled ones don't auto-activate, so they shouldn't count toward "ready" — matching the LLM tool's filter so both surfaces agree. Partial bundles sort fewest-missing first to match the discover inline hint ranking. `--json` emits machine-readable output (`{bundles}` for list, `{installed, ready, partial}` for match). Exit codes: 0 success, 1 match needs a token and none resolved, 2 match couldn't reach the backend.
|
|
852
|
+
|
|
853
|
+
## 0.39.0 — 2026-04-18
|
|
854
|
+
|
|
855
|
+
- **`mcph servers` CLI subcommand** — Lists the servers currently configured for your account in the mcp.hosting dashboard, hitting the same `/api/connect/config` endpoint that `runServer` polls at startup. Fills a gap between `mcph doctor` (local state: config files, clients, state.json) and the web dashboard: users can sanity-check their dashboard edits from the terminal, support engineers can ask for `mcph servers --json` output in a ticket, and scripts can pick a namespace up-front before piping into `mcph compliance` or `mcph install`. Table view groups the relevant columns (namespace, name, type, enabled/disabled, compliance grade, cached tool count) and is sorted alphabetically by namespace for diffable re-runs; `--json` emits the raw backend response verbatim. Exit codes: 0 success, 1 no token, 2 fetch error.
|
|
856
|
+
|
|
857
|
+
## 0.38.0 — 2026-04-18
|
|
858
|
+
|
|
859
|
+
- **`mcph reset-learning` CLI subcommand** — Deletes `~/.mcph/state.json` so cross-session learning starts fresh; prints the entry counts that were cleared. Pairs with v0.37.0's doctor RELIABILITY section: once a namespace has been flagged flaky, the dispatch penalty branch (v0.36.0) keeps suppressing it until enough new successes pile up — but if the user has since fixed the underlying cause (rotated a token, swapped the upstream, re-authed), that history is stale and the penalty has overstayed its welcome. This gives them a direct CLI lever to clear it. Scope is all-or-nothing by design; a per-namespace flag is footgunny (user clears one, forgets the others, keeps getting silently mis-ranked). No-op with an explanatory message when `MCPH_DISABLE_PERSISTENCE` is set or the file doesn't exist, so `mcph reset-learning` never surprises. Exit 0 on success or no-op, exit 1 on I/O error (permissions, disk).
|
|
860
|
+
|
|
861
|
+
## 0.37.0 — 2026-04-18
|
|
862
|
+
|
|
863
|
+
- **`mcph doctor` RELIABILITY section** — New block surfaces flaky dormant namespaces pulled directly from `~/.mcph/state.json`, using the same ≥3-dispatches / <80%-success definition as `mcp_connect_health`'s cross-session reliability block — so the CLI diagnostic and the LLM-facing health tool agree on what "flaky" means. Sorted worst-rate first, capped at 5. Silently omitted when no namespace qualifies, state.json doesn't exist yet, or `MCPH_DISABLE_PERSISTENCE` is set. Threshold constants + sort logic extracted into `selectFlakyNamespaces` so handleHealth and doctor can't drift apart.
|
|
864
|
+
|
|
865
|
+
## 0.36.0 — 2026-04-18
|
|
866
|
+
|
|
867
|
+
- **Negative signal in dispatch ranking (`boostFactor` penalty branch)** — The learning store's `boostFactor` now drops *below* 1.0 for namespaces with flaky history, mirroring the existing upward boost. Threshold is the same ≥3 dispatches / <80% success gate used by discover's inline reliability warning (v0.35.0) and health's cross-session block (v0.34.0) — so a server flagged flaky in those views also loses rank points at dispatch time rather than quietly continuing to win routing. Floor is `-10%` (`LEARNING_MIN_BOOST = 0.9`), symmetric with the existing `+10%` ceiling. Rate-based signal trumps count-based: a namespace with 10 successes but a 50% overall rate is flaky, not useful, and the penalty branch beats the positive branch in that case.
|
|
868
|
+
|
|
869
|
+
## 0.35.0 — 2026-04-18
|
|
870
|
+
|
|
871
|
+
- **Inline reliability warning in `mcp_connect_discover`** — Discover now annotates dormant (not currently loaded) servers with `reliability: P% success across N past calls` when persisted learning shows ≥3 dispatches and <80% success. Renders under the server card right after the live health warning, so the LLM sees the flaky history *before* it picks a server to activate — not only after `handleHealth` surfaces it post-hoc. Thresholds match the cross-session reliability block from v0.34.0 so the two views stay consistent. Suppressed for loaded servers (the live per-call warning already covers them with fresher data).
|
|
872
|
+
|
|
873
|
+
## 0.34.0 — 2026-04-18
|
|
874
|
+
|
|
875
|
+
- **Cross-session reliability block in `mcp_connect_health`** — New section at the bottom of health output surfaces flaky *dormant* namespaces pulled from persisted learning: `<namespace> — N calls, P% success, last used <age> ago`. Threshold is deliberately high (≥3 dispatches, <80% success) so a one-off failure doesn't light up the panel; loaded namespaces are skipped (in-session block already covers them). Sorted worst-rate first, ties broken by most calls then alpha; capped at 5. Also fixes a gap where `handleHealth` returned early on an empty-connections session and never showed dormant history — now it falls through so operators can see which past servers were unreliable even before loading anything.
|
|
876
|
+
|
|
877
|
+
## 0.33.0 — 2026-04-18
|
|
878
|
+
|
|
879
|
+
- **`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).
|
|
880
|
+
|
|
881
|
+
## 0.32.0 — 2026-04-18
|
|
882
|
+
|
|
883
|
+
- **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.
|
|
884
|
+
|
|
885
|
+
## 0.31.0 — 2026-04-18
|
|
886
|
+
|
|
887
|
+
- **"Did you mean?" suggestions on `mcp_connect_activate`** — When a caller tries to activate a namespace that doesn't exist, the error message now splits the two underlying cases: (a) not installed at all (with up to 3 fuzzy-matched installed namespaces via substring containment or ≤2 edit distance, or a pointer to `mcp_connect_discover` when nothing is close), and (b) installed but disabled in the dashboard (with a pointer to `mcp.hosting` to enable). Replaces the previous conflated "`X` not found or disabled" message.
|
|
888
|
+
|
|
889
|
+
## 0.30.0 — 2026-04-18
|
|
890
|
+
|
|
891
|
+
- **Inline bundle completions in `discover()`** — When a curated bundle has some installed servers but is missing one or two, `mcp_connect_discover` surfaces a "Bundle completions" block with the partial bundle id, what's already installed, and what to add. Top 3 entries, ranked by fewest-missing first (cheapest to complete), tie-broken by most-momentum then id. Same data source as `mcp_connect_bundles action="match"`, but inline so the model can act on the nudge without the extra round-trip. Suppressed when no curated bundle has any overlap with the installed set.
|
|
892
|
+
|
|
893
|
+
## 0.29.0 — 2026-04-18
|
|
894
|
+
|
|
895
|
+
- **Compliance-aware routing (`MCPH_MIN_COMPLIANCE`)** — Phase 3 item. Set the env var to `A`, `B`, `C`, `D`, or `F` and `mcp_connect_activate` refuses to load any installed server whose reported `complianceGrade` is below the floor, with an error that names the grade and the env var to unset. `mcp_connect_discover` annotates below-grade servers in place (so the model knows they exist and why they won't auto-activate) and emits a "Compliance filter active" header. Forward-compatible schema: the optional `complianceGrade` field on `UpstreamServerConfig` rides the existing `/api/connect/config` response — the feature kicks in automatically once the backend starts populating grades. Ungraded servers always pass (don't punish unknown).
|
|
896
|
+
|
|
897
|
+
## 0.28.1 — 2026-04-18
|
|
898
|
+
|
|
899
|
+
Docs-only release.
|
|
900
|
+
|
|
901
|
+
- First-ever `CHANGELOG.md`, covering 0.5.0 → 0.28.0. Linked from `README.md`.
|
|
902
|
+
- README catches up with the meta-tools shipped in the 0.20 – 0.28 arc: `mcp_connect_read_tool`, `mcp_connect_exec`, `mcp_connect_bundles` are now documented in the top-level list. Corrected "session-local" phrasing on the Learning ranker signal (cross-session since v0.23.0).
|
|
903
|
+
- New "Multi-device sync" section under "Config sync" — same token, same servers across every machine; no dotfile repos for secrets.
|
|
904
|
+
- Phase 2 "Multi-device config sync" marked shipped in `ROADMAP.md` (docs-only; backing behavior already worked).
|
|
905
|
+
- `package.json` `files` array now includes `CHANGELOG.md` so release notes ship with the npm tarball.
|
|
906
|
+
|
|
907
|
+
## 0.28.0 — 2026-04-18
|
|
908
|
+
|
|
909
|
+
Phase 3 opener. Two client-only intelligence features.
|
|
910
|
+
|
|
911
|
+
- **Tool deduplication** — `mcp_connect_discover` now surfaces an "Overlapping tools" block when two or more currently-connected servers expose the same bare tool name. Top 5 overlaps, sorted by namespace count descending, with a dispatch-to-disambiguate hint.
|
|
912
|
+
- **Curated bundles (`mcp_connect_bundles`)** — New meta-tool returning hand-picked multi-server presets: `devops-incident`, `pr-review`, `growth-stack`, `data-ops`, `product-release`, `support-ops`. `action: "list"` (default) returns all bundles; `action: "match"` partitions them into "ready to activate now" vs. "partially installed" against the user's current config.
|
|
913
|
+
|
|
914
|
+
## 0.27.0 — 2026-04-18
|
|
915
|
+
|
|
916
|
+
Four Phase 2 items shipped together.
|
|
917
|
+
|
|
918
|
+
- **Automatic load (`MCPH_AUTO_LOAD`)** — Opt-in env flag. On startup, after persistence hydration, activates every namespace in the top recurring pack (by frequency, tie-break recency) from pack history, provided every namespace is installed. Silent no-op otherwise.
|
|
919
|
+
- **Per-tool filter on `mcp_connect_activate`** — Pass `tools: [...]` to expose only the named tools via `tools/list`. Hidden tools stay reachable through `mcp_connect_dispatch` (routes are unfiltered). Re-activate without `tools` to clear the filter. `discover()` shows a `(filtered: K of N)` indicator on filtered connections.
|
|
920
|
+
- **Orchestration pipeline (`mcp_connect_exec`)** — Declarative multi-step tool-call pipeline. Each step names a namespaced tool plus args; `{"$ref": "<stepId>[.path]"}` markers in args splice a prior step's output into the next step's input. No eval / no expression language — only sequential dispatch and dot/bracket path resolution. Capped at 16 steps; any step failure fails the pipeline and returns completed outputs as `partial`.
|
|
921
|
+
- **Marketplace pointer** — `discover()` appends `https://mcp.hosting/explore` for users with fewer than 5 installed servers. URL hint only; a full marketplace meta-tool is parked until the backend ships a catalog API.
|
|
922
|
+
|
|
923
|
+
## 0.26.0 — 2026-04-18
|
|
924
|
+
|
|
925
|
+
- **Recurring packs block in `discover()`** — When pack history and installed config overlap, `discover()` now surfaces an "Recurring packs" block at the top of its output with a ready-to-run `mcp_connect_activate` call. Saves the second `mcp_connect_suggest` round-trip when the signal is already there.
|
|
926
|
+
|
|
927
|
+
## 0.25.1 — 2026-04-18
|
|
928
|
+
|
|
929
|
+
- Truthed up "this session" phrasing across user-facing strings and tool descriptions. With cross-session persistence (v0.23.0) shipping, counts and pack history are no longer session-scoped; the copy now matches.
|
|
930
|
+
|
|
931
|
+
## 0.25.0 — 2026-04-18
|
|
932
|
+
|
|
933
|
+
- `mcp_connect_suggest` now emits a ready-to-run `mcp_connect_activate` call with a verbatim `namespaces=[...]` JSON array, rather than pointing at `mcp_connect_dispatch` (the wrong primitive for loading a pack).
|
|
934
|
+
|
|
935
|
+
## 0.24.0 — 2026-04-18
|
|
936
|
+
|
|
937
|
+
- **`mcph doctor` STATE section** — Prints `~/.mcph/state.json` path, last-saved age, learning count, pack history count; shows "disabled" when persistence is opted out.
|
|
938
|
+
- **`MCPH_DISABLE_PERSISTENCE` opt-out** — Env flag skips both load and save. Useful for CI, sandboxed containers, or users who don't want a state file.
|
|
939
|
+
|
|
940
|
+
## 0.23.0 — 2026-04-18
|
|
941
|
+
|
|
942
|
+
- **Cross-session persistence** — Learning counts (`succeeded`/`dispatched`/`lastUsedAt` per namespace) and pack history (co-activation chains) now round-trip through `~/.mcph/state.json`. Schema-versioned, atomic write-rename.
|
|
943
|
+
|
|
944
|
+
## 0.22.0 — 2026-04-17
|
|
945
|
+
|
|
946
|
+
- **Inline usage hints in `discover()`** — `used Nx` success counts and "often loaded with X, Y" co-activation peers are surfaced per-server in discover output.
|
|
947
|
+
|
|
948
|
+
## 0.21.0 — 2026-04-17
|
|
949
|
+
|
|
950
|
+
- **Concurrent server cap** — Default max 6 simultaneously-active servers; `MCPH_SERVER_CAP` env override. Hard cap both as context protection and a business lever.
|
|
951
|
+
|
|
952
|
+
## 0.20.0 — 2026-04-17
|
|
953
|
+
|
|
954
|
+
- **`mcp_connect_read_tool`** — Schema-on-demand: return a single tool's schema + docs without activating its server. For servers with large tool catalogs where the model only needs 1–2 tools, reads 1–2 schemas instead of loading the entire catalog.
|
|
955
|
+
|
|
956
|
+
## 0.19.x and earlier
|
|
957
|
+
|
|
958
|
+
- v0.19.0 — internal refactor around config reconciliation.
|
|
959
|
+
- v0.18.0 — analytics uploads for tool-call patterns, load/unload events, error rates.
|
|
960
|
+
- v0.17.0 — resource + prompt proxying (beyond tools).
|
|
961
|
+
- v0.16.0 — error tracking surfaced in `discover()`.
|
|
962
|
+
- v0.15.x — `install` command gates success on config refresh; misc fixes.
|
|
963
|
+
- v0.14.0 — auto-allow mcph tools in Claude Code settings + discover dedup.
|
|
964
|
+
- v0.13.0 — deferred tools: advertise inactive-but-cached servers in `tools/list`.
|
|
965
|
+
- v0.12.x — legacy-config migrator + `doctor` freshness checks.
|
|
966
|
+
- v0.11.x — stability patches.
|
|
967
|
+
- v0.10.x — 7-feature bundle, adaptive routing, policy profiles.
|
|
968
|
+
- v0.9.0 — `mcph compliance` subcommand.
|
|
969
|
+
- v0.8.0 — runtime detection + test runner + error deep-links.
|
|
970
|
+
- v0.7.0 — two-stage retrieval: BM25 + semantic rerank.
|
|
971
|
+
- v0.6.0 — BM25 dispatch + auto-warm discover + stderr capture.
|
|
972
|
+
- v0.5.0 — `MCPH_POLL_INTERVAL` env var.
|
|
973
|
+
- v0.1.x – v0.4.x — initial public release, core meta-tools, namespace routing, config polling.
|