@agentmesh-md/mcp-server 0.2.2 → 0.3.4

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.
Files changed (45) hide show
  1. package/README.md +143 -4
  2. package/dist/client.js +16 -5
  3. package/dist/codex-hooks.js +142 -0
  4. package/dist/connect.js +75 -205
  5. package/dist/context.js +7 -0
  6. package/dist/contract.js +5 -1
  7. package/dist/errors.js +0 -55
  8. package/dist/index.js +41 -8
  9. package/dist/legacy.js +2 -66
  10. package/dist/oauth-client.js +131 -26
  11. package/dist/plugin-install.js +154 -0
  12. package/dist/plugin-monitor.js +292 -0
  13. package/dist/plugin-permissions.js +212 -0
  14. package/dist/plugin-proxy.js +75 -0
  15. package/dist/plugin-session.js +381 -0
  16. package/dist/plugin-storage.js +94 -0
  17. package/dist/plugin-target.js +16 -0
  18. package/dist/schemas.js +8 -2
  19. package/dist/server.js +30 -5
  20. package/dist/session.js +118 -14
  21. package/dist/terminal-diagnostic.js +1 -1
  22. package/dist/terminal-runtime.js +96 -161
  23. package/dist/tool-annotations.js +57 -0
  24. package/dist/tools.js +36 -55
  25. package/dist/wake-storage.js +33 -49
  26. package/package.json +5 -4
  27. package/plugin-marketplace/.claude-plugin/marketplace.json +11 -0
  28. package/plugin-marketplace/plugins/agentmesh/.claude-plugin/plugin.json +23 -0
  29. package/plugin-marketplace/plugins/agentmesh/README.md +36 -0
  30. package/plugin-marketplace/plugins/agentmesh/hooks/codex.json +44 -0
  31. package/plugin-marketplace/plugins/agentmesh/hooks/hooks.json +44 -0
  32. package/plugin-marketplace/plugins/agentmesh/mcp.json +15 -0
  33. package/plugin-marketplace/plugins/agentmesh/monitors/monitors.json +7 -0
  34. package/plugin-marketplace/plugins/agentmesh/plugin.json +6 -0
  35. package/plugin-marketplace/plugins/agentmesh/release.json +1 -0
  36. package/plugin-marketplace/plugins/agentmesh/server/lib/agent-operating-contract.txt +120 -0
  37. package/plugin-marketplace/plugins/agentmesh/server/lib/agentmesh-mcp.js +39419 -0
  38. package/plugin-marketplace/plugins/agentmesh/server/package.json +4 -0
  39. package/plugin-marketplace/plugins/agentmesh/server/schemas/defs.json +121 -0
  40. package/plugin-marketplace/plugins/agentmesh/server/schemas/tools.json +1933 -0
  41. package/schemas/tools.json +592 -3
  42. package/dist/connect-bridge.js +0 -62
  43. package/dist/mentions.cjs +0 -22
  44. package/dist/wake-monitor.js +0 -117
  45. package/dist/wake.js +0 -521
@@ -306,6 +306,29 @@
306
306
  "channel": {
307
307
  "type": "string",
308
308
  "pattern": "\\S"
309
+ },
310
+ "wake_context": {
311
+ "type": "object",
312
+ "properties": {
313
+ "event_id": {
314
+ "type": "string",
315
+ "format": "uuid"
316
+ },
317
+ "claim_id": {
318
+ "type": "string",
319
+ "format": "uuid"
320
+ },
321
+ "action_id": {
322
+ "type": "string",
323
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
324
+ }
325
+ },
326
+ "required": [
327
+ "event_id",
328
+ "claim_id",
329
+ "action_id"
330
+ ],
331
+ "additionalProperties": false
309
332
  }
310
333
  },
311
334
  "required": [
@@ -333,6 +356,29 @@
333
356
  "card_id": {
334
357
  "type": "string",
335
358
  "format": "uuid"
359
+ },
360
+ "wake_context": {
361
+ "type": "object",
362
+ "properties": {
363
+ "event_id": {
364
+ "type": "string",
365
+ "format": "uuid"
366
+ },
367
+ "claim_id": {
368
+ "type": "string",
369
+ "format": "uuid"
370
+ },
371
+ "action_id": {
372
+ "type": "string",
373
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
374
+ }
375
+ },
376
+ "required": [
377
+ "event_id",
378
+ "claim_id",
379
+ "action_id"
380
+ ],
381
+ "additionalProperties": false
336
382
  }
337
383
  },
338
384
  "required": [
@@ -360,6 +406,29 @@
360
406
  "card_id": {
361
407
  "type": "string",
362
408
  "format": "uuid"
409
+ },
410
+ "wake_context": {
411
+ "type": "object",
412
+ "properties": {
413
+ "event_id": {
414
+ "type": "string",
415
+ "format": "uuid"
416
+ },
417
+ "claim_id": {
418
+ "type": "string",
419
+ "format": "uuid"
420
+ },
421
+ "action_id": {
422
+ "type": "string",
423
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
424
+ }
425
+ },
426
+ "required": [
427
+ "event_id",
428
+ "claim_id",
429
+ "action_id"
430
+ ],
431
+ "additionalProperties": false
363
432
  }
364
433
  },
365
434
  "required": [
@@ -395,6 +464,29 @@
395
464
  "column_id": {
396
465
  "type": "string",
397
466
  "format": "uuid"
467
+ },
468
+ "wake_context": {
469
+ "type": "object",
470
+ "properties": {
471
+ "event_id": {
472
+ "type": "string",
473
+ "format": "uuid"
474
+ },
475
+ "claim_id": {
476
+ "type": "string",
477
+ "format": "uuid"
478
+ },
479
+ "action_id": {
480
+ "type": "string",
481
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
482
+ }
483
+ },
484
+ "required": [
485
+ "event_id",
486
+ "claim_id",
487
+ "action_id"
488
+ ],
489
+ "additionalProperties": false
398
490
  }
399
491
  },
400
492
  "required": [
@@ -627,6 +719,29 @@
627
719
  ],
628
720
  "additionalProperties": false
629
721
  }
722
+ },
723
+ "wake_context": {
724
+ "type": "object",
725
+ "properties": {
726
+ "event_id": {
727
+ "type": "string",
728
+ "format": "uuid"
729
+ },
730
+ "claim_id": {
731
+ "type": "string",
732
+ "format": "uuid"
733
+ },
734
+ "action_id": {
735
+ "type": "string",
736
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
737
+ }
738
+ },
739
+ "required": [
740
+ "event_id",
741
+ "claim_id",
742
+ "action_id"
743
+ ],
744
+ "additionalProperties": false
630
745
  }
631
746
  },
632
747
  "required": [
@@ -710,6 +825,29 @@
710
825
  "type": "string",
711
826
  "minLength": 1,
712
827
  "maxLength": 8192
828
+ },
829
+ "wake_context": {
830
+ "type": "object",
831
+ "properties": {
832
+ "event_id": {
833
+ "type": "string",
834
+ "format": "uuid"
835
+ },
836
+ "claim_id": {
837
+ "type": "string",
838
+ "format": "uuid"
839
+ },
840
+ "action_id": {
841
+ "type": "string",
842
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
843
+ }
844
+ },
845
+ "required": [
846
+ "event_id",
847
+ "claim_id",
848
+ "action_id"
849
+ ],
850
+ "additionalProperties": false
713
851
  }
714
852
  },
715
853
  "required": [
@@ -750,6 +888,29 @@
750
888
  ],
751
889
  "maxLength": 16384,
752
890
  "description": "Complete replacement markdown description, including acceptance criteria. Read the current card first and preserve any sections you are not changing."
891
+ },
892
+ "wake_context": {
893
+ "type": "object",
894
+ "properties": {
895
+ "event_id": {
896
+ "type": "string",
897
+ "format": "uuid"
898
+ },
899
+ "claim_id": {
900
+ "type": "string",
901
+ "format": "uuid"
902
+ },
903
+ "action_id": {
904
+ "type": "string",
905
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
906
+ }
907
+ },
908
+ "required": [
909
+ "event_id",
910
+ "claim_id",
911
+ "action_id"
912
+ ],
913
+ "additionalProperties": false
753
914
  }
754
915
  },
755
916
  "required": [
@@ -790,6 +951,29 @@
790
951
  "assignee_id": {
791
952
  "type": "string",
792
953
  "minLength": 1
954
+ },
955
+ "wake_context": {
956
+ "type": "object",
957
+ "properties": {
958
+ "event_id": {
959
+ "type": "string",
960
+ "format": "uuid"
961
+ },
962
+ "claim_id": {
963
+ "type": "string",
964
+ "format": "uuid"
965
+ },
966
+ "action_id": {
967
+ "type": "string",
968
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
969
+ }
970
+ },
971
+ "required": [
972
+ "event_id",
973
+ "claim_id",
974
+ "action_id"
975
+ ],
976
+ "additionalProperties": false
793
977
  }
794
978
  },
795
979
  "required": [
@@ -828,6 +1012,29 @@
828
1012
  ],
829
1013
  "minimum": 1,
830
1014
  "maximum": 10080
1015
+ },
1016
+ "wake_context": {
1017
+ "type": "object",
1018
+ "properties": {
1019
+ "event_id": {
1020
+ "type": "string",
1021
+ "format": "uuid"
1022
+ },
1023
+ "claim_id": {
1024
+ "type": "string",
1025
+ "format": "uuid"
1026
+ },
1027
+ "action_id": {
1028
+ "type": "string",
1029
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
1030
+ }
1031
+ },
1032
+ "required": [
1033
+ "event_id",
1034
+ "claim_id",
1035
+ "action_id"
1036
+ ],
1037
+ "additionalProperties": false
831
1038
  }
832
1039
  },
833
1040
  "required": [
@@ -855,6 +1062,29 @@
855
1062
  "ask_id": {
856
1063
  "type": "string",
857
1064
  "format": "uuid"
1065
+ },
1066
+ "wake_context": {
1067
+ "type": "object",
1068
+ "properties": {
1069
+ "event_id": {
1070
+ "type": "string",
1071
+ "format": "uuid"
1072
+ },
1073
+ "claim_id": {
1074
+ "type": "string",
1075
+ "format": "uuid"
1076
+ },
1077
+ "action_id": {
1078
+ "type": "string",
1079
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
1080
+ }
1081
+ },
1082
+ "required": [
1083
+ "event_id",
1084
+ "claim_id",
1085
+ "action_id"
1086
+ ],
1087
+ "additionalProperties": false
858
1088
  }
859
1089
  },
860
1090
  "required": [
@@ -886,6 +1116,29 @@
886
1116
  "note": {
887
1117
  "type": "string",
888
1118
  "maxLength": 8192
1119
+ },
1120
+ "wake_context": {
1121
+ "type": "object",
1122
+ "properties": {
1123
+ "event_id": {
1124
+ "type": "string",
1125
+ "format": "uuid"
1126
+ },
1127
+ "claim_id": {
1128
+ "type": "string",
1129
+ "format": "uuid"
1130
+ },
1131
+ "action_id": {
1132
+ "type": "string",
1133
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
1134
+ }
1135
+ },
1136
+ "required": [
1137
+ "event_id",
1138
+ "claim_id",
1139
+ "action_id"
1140
+ ],
1141
+ "additionalProperties": false
889
1142
  }
890
1143
  },
891
1144
  "required": [
@@ -1038,6 +1291,29 @@
1038
1291
  "string",
1039
1292
  "null"
1040
1293
  ]
1294
+ },
1295
+ "wake_context": {
1296
+ "type": "object",
1297
+ "properties": {
1298
+ "event_id": {
1299
+ "type": "string",
1300
+ "format": "uuid"
1301
+ },
1302
+ "claim_id": {
1303
+ "type": "string",
1304
+ "format": "uuid"
1305
+ },
1306
+ "action_id": {
1307
+ "type": "string",
1308
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
1309
+ }
1310
+ },
1311
+ "required": [
1312
+ "event_id",
1313
+ "claim_id",
1314
+ "action_id"
1315
+ ],
1316
+ "additionalProperties": false
1041
1317
  }
1042
1318
  },
1043
1319
  "required": [
@@ -1085,6 +1361,29 @@
1085
1361
  "allow_clear": {
1086
1362
  "type": "boolean",
1087
1363
  "description": "Explicitly permit the API wipe guard to clear a document. Default false."
1364
+ },
1365
+ "wake_context": {
1366
+ "type": "object",
1367
+ "properties": {
1368
+ "event_id": {
1369
+ "type": "string",
1370
+ "format": "uuid"
1371
+ },
1372
+ "claim_id": {
1373
+ "type": "string",
1374
+ "format": "uuid"
1375
+ },
1376
+ "action_id": {
1377
+ "type": "string",
1378
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
1379
+ }
1380
+ },
1381
+ "required": [
1382
+ "event_id",
1383
+ "claim_id",
1384
+ "action_id"
1385
+ ],
1386
+ "additionalProperties": false
1088
1387
  }
1089
1388
  },
1090
1389
  "required": [
@@ -1159,12 +1458,26 @@
1159
1458
  ]
1160
1459
  },
1161
1460
  "runtime_version": {
1162
- "type": "string",
1163
- "pattern": "^\\d+\\.\\d+\\.\\d+$"
1461
+ "type": "string"
1164
1462
  },
1165
1463
  "binding_id": {
1166
1464
  "type": "string",
1167
1465
  "format": "uuid"
1466
+ },
1467
+ "protocol": {
1468
+ "const": 2
1469
+ },
1470
+ "session_id": {
1471
+ "type": "string",
1472
+ "format": "uuid"
1473
+ },
1474
+ "host_id": {
1475
+ "type": "string",
1476
+ "format": "uuid"
1477
+ },
1478
+ "folder_id": {
1479
+ "type": "string",
1480
+ "pattern": "^[a-f0-9]{64}$"
1168
1481
  }
1169
1482
  },
1170
1483
  "required": [
@@ -1173,7 +1486,33 @@
1173
1486
  "runtime_version",
1174
1487
  "binding_id"
1175
1488
  ],
1176
- "additionalProperties": false
1489
+ "additionalProperties": false,
1490
+ "dependentRequired": {
1491
+ "protocol": [
1492
+ "protocol",
1493
+ "session_id",
1494
+ "host_id",
1495
+ "folder_id"
1496
+ ],
1497
+ "session_id": [
1498
+ "protocol",
1499
+ "session_id",
1500
+ "host_id",
1501
+ "folder_id"
1502
+ ],
1503
+ "host_id": [
1504
+ "protocol",
1505
+ "session_id",
1506
+ "host_id",
1507
+ "folder_id"
1508
+ ],
1509
+ "folder_id": [
1510
+ "protocol",
1511
+ "session_id",
1512
+ "host_id",
1513
+ "folder_id"
1514
+ ]
1515
+ }
1177
1516
  },
1178
1517
  "outputSchema": {
1179
1518
  "type": "object",
@@ -1181,6 +1520,15 @@
1181
1520
  "connection_id": {
1182
1521
  "type": "string",
1183
1522
  "format": "uuid"
1523
+ },
1524
+ "protocol": {
1525
+ "const": 2
1526
+ },
1527
+ "state": {
1528
+ "enum": [
1529
+ "ready",
1530
+ "waiting_legacy"
1531
+ ]
1184
1532
  }
1185
1533
  },
1186
1534
  "required": [
@@ -1196,6 +1544,18 @@
1196
1544
  "connection_id": {
1197
1545
  "type": "string",
1198
1546
  "format": "uuid"
1547
+ },
1548
+ "wait_seconds": {
1549
+ "type": "integer",
1550
+ "minimum": 0,
1551
+ "maximum": 25
1552
+ },
1553
+ "activity": {
1554
+ "type": "boolean"
1555
+ },
1556
+ "session_id": {
1557
+ "type": "string",
1558
+ "format": "uuid"
1199
1559
  }
1200
1560
  },
1201
1561
  "required": [
@@ -1244,6 +1604,10 @@
1244
1604
  "string",
1245
1605
  "null"
1246
1606
  ]
1607
+ },
1608
+ "offer_id": {
1609
+ "type": "string",
1610
+ "format": "uuid"
1247
1611
  }
1248
1612
  },
1249
1613
  "required": [
@@ -1254,6 +1618,37 @@
1254
1618
  ],
1255
1619
  "additionalProperties": false
1256
1620
  }
1621
+ },
1622
+ "unhandled": {
1623
+ "type": "array",
1624
+ "maxItems": 100,
1625
+ "items": {
1626
+ "type": "object",
1627
+ "properties": {
1628
+ "event_id": {
1629
+ "type": "string",
1630
+ "format": "uuid"
1631
+ },
1632
+ "claim_id": {
1633
+ "type": "string",
1634
+ "format": "uuid"
1635
+ },
1636
+ "claim_epoch": {
1637
+ "type": "integer",
1638
+ "minimum": 1
1639
+ },
1640
+ "owned": {
1641
+ "type": "boolean"
1642
+ }
1643
+ },
1644
+ "required": [
1645
+ "event_id",
1646
+ "claim_id",
1647
+ "claim_epoch",
1648
+ "owned"
1649
+ ],
1650
+ "additionalProperties": false
1651
+ }
1257
1652
  }
1258
1653
  },
1259
1654
  "required": [
@@ -1282,6 +1677,10 @@
1282
1677
  "transport",
1283
1678
  "agent"
1284
1679
  ]
1680
+ },
1681
+ "offer_id": {
1682
+ "type": "string",
1683
+ "format": "uuid"
1285
1684
  }
1286
1685
  },
1287
1686
  "required": [
@@ -1320,6 +1719,9 @@
1320
1719
  "authentication",
1321
1720
  "unsupported_runtime"
1322
1721
  ]
1722
+ },
1723
+ "activity": {
1724
+ "type": "boolean"
1323
1725
  }
1324
1726
  },
1325
1727
  "required": [
@@ -1340,5 +1742,192 @@
1340
1742
  ],
1341
1743
  "additionalProperties": false
1342
1744
  }
1745
+ },
1746
+ "terminal_wake_read": {
1747
+ "inputSchema": {
1748
+ "type": "object",
1749
+ "properties": {
1750
+ "connection_id": {
1751
+ "type": "string",
1752
+ "format": "uuid"
1753
+ },
1754
+ "event_id": {
1755
+ "type": "string",
1756
+ "format": "uuid"
1757
+ },
1758
+ "offer_id": {
1759
+ "type": "string",
1760
+ "format": "uuid"
1761
+ }
1762
+ },
1763
+ "required": [
1764
+ "connection_id",
1765
+ "event_id",
1766
+ "offer_id"
1767
+ ],
1768
+ "additionalProperties": false
1769
+ },
1770
+ "outputSchema": {
1771
+ "type": "object",
1772
+ "properties": {
1773
+ "event_id": {
1774
+ "type": "string",
1775
+ "format": "uuid"
1776
+ },
1777
+ "claim_id": {
1778
+ "type": "string",
1779
+ "format": "uuid"
1780
+ },
1781
+ "claim_epoch": {
1782
+ "type": "integer",
1783
+ "minimum": 1
1784
+ },
1785
+ "kind": {
1786
+ "enum": [
1787
+ "probe",
1788
+ "mention",
1789
+ "dm",
1790
+ "assignment"
1791
+ ]
1792
+ },
1793
+ "source_id": {
1794
+ "type": "string"
1795
+ },
1796
+ "stream_id": {
1797
+ "type": [
1798
+ "string",
1799
+ "null"
1800
+ ]
1801
+ },
1802
+ "source": {
1803
+ "type": "object"
1804
+ },
1805
+ "actions": {
1806
+ "type": "array",
1807
+ "items": {
1808
+ "type": "object",
1809
+ "properties": {
1810
+ "action_id": {
1811
+ "type": "string",
1812
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
1813
+ },
1814
+ "key": {
1815
+ "type": "string"
1816
+ },
1817
+ "route": {
1818
+ "type": "string"
1819
+ },
1820
+ "status": {
1821
+ "type": "integer",
1822
+ "minimum": 200,
1823
+ "maximum": 299
1824
+ },
1825
+ "body": {
1826
+ "type": "object"
1827
+ }
1828
+ },
1829
+ "required": [
1830
+ "action_id",
1831
+ "key",
1832
+ "route",
1833
+ "status",
1834
+ "body"
1835
+ ],
1836
+ "additionalProperties": false
1837
+ }
1838
+ }
1839
+ },
1840
+ "required": [
1841
+ "event_id",
1842
+ "claim_id",
1843
+ "claim_epoch",
1844
+ "kind",
1845
+ "source_id",
1846
+ "stream_id",
1847
+ "source",
1848
+ "actions"
1849
+ ],
1850
+ "additionalProperties": false
1851
+ }
1852
+ },
1853
+ "terminal_wake_complete": {
1854
+ "inputSchema": {
1855
+ "type": "object",
1856
+ "properties": {
1857
+ "connection_id": {
1858
+ "type": "string",
1859
+ "format": "uuid"
1860
+ },
1861
+ "event_id": {
1862
+ "type": "string",
1863
+ "format": "uuid"
1864
+ },
1865
+ "claim_id": {
1866
+ "type": "string",
1867
+ "format": "uuid"
1868
+ },
1869
+ "outcome": {
1870
+ "enum": [
1871
+ "handled",
1872
+ "no_action"
1873
+ ]
1874
+ }
1875
+ },
1876
+ "required": [
1877
+ "connection_id",
1878
+ "event_id",
1879
+ "claim_id",
1880
+ "outcome"
1881
+ ],
1882
+ "additionalProperties": false
1883
+ },
1884
+ "outputSchema": {
1885
+ "type": "object",
1886
+ "properties": {
1887
+ "completed": {
1888
+ "const": true
1889
+ }
1890
+ },
1891
+ "required": [
1892
+ "completed"
1893
+ ],
1894
+ "additionalProperties": false
1895
+ }
1896
+ },
1897
+ "terminal_wake_pin": {
1898
+ "inputSchema": {
1899
+ "type": "object",
1900
+ "properties": {
1901
+ "session_id": {
1902
+ "anyOf": [
1903
+ {
1904
+ "type": "string",
1905
+ "format": "uuid"
1906
+ },
1907
+ {
1908
+ "type": "null"
1909
+ }
1910
+ ]
1911
+ },
1912
+ "folder_id": {
1913
+ "type": "string",
1914
+ "pattern": "^[a-f0-9]{64}$"
1915
+ }
1916
+ },
1917
+ "additionalProperties": false,
1918
+ "minProperties": 1
1919
+ },
1920
+ "outputSchema": {
1921
+ "type": "object",
1922
+ "properties": {
1923
+ "saved": {
1924
+ "const": true
1925
+ }
1926
+ },
1927
+ "required": [
1928
+ "saved"
1929
+ ],
1930
+ "additionalProperties": false
1931
+ }
1343
1932
  }
1344
1933
  }