@agentmesh-md/mcp-server 0.2.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +130 -3
  2. package/dist/client.js +16 -5
  3. package/dist/codex-hooks.js +142 -0
  4. package/dist/connect.js +77 -202
  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 +33 -7
  9. package/dist/legacy.js +2 -66
  10. package/dist/oauth-client.js +188 -36
  11. package/dist/plugin-install.js +97 -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 +31 -5
  20. package/dist/session.js +118 -14
  21. package/dist/terminal-diagnostic.js +1 -1
  22. package/dist/terminal-runtime.js +149 -151
  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 +31 -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 +39413 -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 +1934 -0
  41. package/schemas/tools.json +591 -1
  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": [
@@ -1165,6 +1464,21 @@
1165
1464
  "binding_id": {
1166
1465
  "type": "string",
1167
1466
  "format": "uuid"
1467
+ },
1468
+ "protocol": {
1469
+ "const": 2
1470
+ },
1471
+ "session_id": {
1472
+ "type": "string",
1473
+ "format": "uuid"
1474
+ },
1475
+ "host_id": {
1476
+ "type": "string",
1477
+ "format": "uuid"
1478
+ },
1479
+ "folder_id": {
1480
+ "type": "string",
1481
+ "pattern": "^[a-f0-9]{64}$"
1168
1482
  }
1169
1483
  },
1170
1484
  "required": [
@@ -1173,7 +1487,33 @@
1173
1487
  "runtime_version",
1174
1488
  "binding_id"
1175
1489
  ],
1176
- "additionalProperties": false
1490
+ "additionalProperties": false,
1491
+ "dependentRequired": {
1492
+ "protocol": [
1493
+ "protocol",
1494
+ "session_id",
1495
+ "host_id",
1496
+ "folder_id"
1497
+ ],
1498
+ "session_id": [
1499
+ "protocol",
1500
+ "session_id",
1501
+ "host_id",
1502
+ "folder_id"
1503
+ ],
1504
+ "host_id": [
1505
+ "protocol",
1506
+ "session_id",
1507
+ "host_id",
1508
+ "folder_id"
1509
+ ],
1510
+ "folder_id": [
1511
+ "protocol",
1512
+ "session_id",
1513
+ "host_id",
1514
+ "folder_id"
1515
+ ]
1516
+ }
1177
1517
  },
1178
1518
  "outputSchema": {
1179
1519
  "type": "object",
@@ -1181,6 +1521,15 @@
1181
1521
  "connection_id": {
1182
1522
  "type": "string",
1183
1523
  "format": "uuid"
1524
+ },
1525
+ "protocol": {
1526
+ "const": 2
1527
+ },
1528
+ "state": {
1529
+ "enum": [
1530
+ "ready",
1531
+ "waiting_legacy"
1532
+ ]
1184
1533
  }
1185
1534
  },
1186
1535
  "required": [
@@ -1196,6 +1545,18 @@
1196
1545
  "connection_id": {
1197
1546
  "type": "string",
1198
1547
  "format": "uuid"
1548
+ },
1549
+ "wait_seconds": {
1550
+ "type": "integer",
1551
+ "minimum": 0,
1552
+ "maximum": 25
1553
+ },
1554
+ "activity": {
1555
+ "type": "boolean"
1556
+ },
1557
+ "session_id": {
1558
+ "type": "string",
1559
+ "format": "uuid"
1199
1560
  }
1200
1561
  },
1201
1562
  "required": [
@@ -1244,6 +1605,10 @@
1244
1605
  "string",
1245
1606
  "null"
1246
1607
  ]
1608
+ },
1609
+ "offer_id": {
1610
+ "type": "string",
1611
+ "format": "uuid"
1247
1612
  }
1248
1613
  },
1249
1614
  "required": [
@@ -1254,6 +1619,37 @@
1254
1619
  ],
1255
1620
  "additionalProperties": false
1256
1621
  }
1622
+ },
1623
+ "unhandled": {
1624
+ "type": "array",
1625
+ "maxItems": 100,
1626
+ "items": {
1627
+ "type": "object",
1628
+ "properties": {
1629
+ "event_id": {
1630
+ "type": "string",
1631
+ "format": "uuid"
1632
+ },
1633
+ "claim_id": {
1634
+ "type": "string",
1635
+ "format": "uuid"
1636
+ },
1637
+ "claim_epoch": {
1638
+ "type": "integer",
1639
+ "minimum": 1
1640
+ },
1641
+ "owned": {
1642
+ "type": "boolean"
1643
+ }
1644
+ },
1645
+ "required": [
1646
+ "event_id",
1647
+ "claim_id",
1648
+ "claim_epoch",
1649
+ "owned"
1650
+ ],
1651
+ "additionalProperties": false
1652
+ }
1257
1653
  }
1258
1654
  },
1259
1655
  "required": [
@@ -1282,6 +1678,10 @@
1282
1678
  "transport",
1283
1679
  "agent"
1284
1680
  ]
1681
+ },
1682
+ "offer_id": {
1683
+ "type": "string",
1684
+ "format": "uuid"
1285
1685
  }
1286
1686
  },
1287
1687
  "required": [
@@ -1320,6 +1720,9 @@
1320
1720
  "authentication",
1321
1721
  "unsupported_runtime"
1322
1722
  ]
1723
+ },
1724
+ "activity": {
1725
+ "type": "boolean"
1323
1726
  }
1324
1727
  },
1325
1728
  "required": [
@@ -1340,5 +1743,192 @@
1340
1743
  ],
1341
1744
  "additionalProperties": false
1342
1745
  }
1746
+ },
1747
+ "terminal_wake_read": {
1748
+ "inputSchema": {
1749
+ "type": "object",
1750
+ "properties": {
1751
+ "connection_id": {
1752
+ "type": "string",
1753
+ "format": "uuid"
1754
+ },
1755
+ "event_id": {
1756
+ "type": "string",
1757
+ "format": "uuid"
1758
+ },
1759
+ "offer_id": {
1760
+ "type": "string",
1761
+ "format": "uuid"
1762
+ }
1763
+ },
1764
+ "required": [
1765
+ "connection_id",
1766
+ "event_id",
1767
+ "offer_id"
1768
+ ],
1769
+ "additionalProperties": false
1770
+ },
1771
+ "outputSchema": {
1772
+ "type": "object",
1773
+ "properties": {
1774
+ "event_id": {
1775
+ "type": "string",
1776
+ "format": "uuid"
1777
+ },
1778
+ "claim_id": {
1779
+ "type": "string",
1780
+ "format": "uuid"
1781
+ },
1782
+ "claim_epoch": {
1783
+ "type": "integer",
1784
+ "minimum": 1
1785
+ },
1786
+ "kind": {
1787
+ "enum": [
1788
+ "probe",
1789
+ "mention",
1790
+ "dm",
1791
+ "assignment"
1792
+ ]
1793
+ },
1794
+ "source_id": {
1795
+ "type": "string"
1796
+ },
1797
+ "stream_id": {
1798
+ "type": [
1799
+ "string",
1800
+ "null"
1801
+ ]
1802
+ },
1803
+ "source": {
1804
+ "type": "object"
1805
+ },
1806
+ "actions": {
1807
+ "type": "array",
1808
+ "items": {
1809
+ "type": "object",
1810
+ "properties": {
1811
+ "action_id": {
1812
+ "type": "string",
1813
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
1814
+ },
1815
+ "key": {
1816
+ "type": "string"
1817
+ },
1818
+ "route": {
1819
+ "type": "string"
1820
+ },
1821
+ "status": {
1822
+ "type": "integer",
1823
+ "minimum": 200,
1824
+ "maximum": 299
1825
+ },
1826
+ "body": {
1827
+ "type": "object"
1828
+ }
1829
+ },
1830
+ "required": [
1831
+ "action_id",
1832
+ "key",
1833
+ "route",
1834
+ "status",
1835
+ "body"
1836
+ ],
1837
+ "additionalProperties": false
1838
+ }
1839
+ }
1840
+ },
1841
+ "required": [
1842
+ "event_id",
1843
+ "claim_id",
1844
+ "claim_epoch",
1845
+ "kind",
1846
+ "source_id",
1847
+ "stream_id",
1848
+ "source",
1849
+ "actions"
1850
+ ],
1851
+ "additionalProperties": false
1852
+ }
1853
+ },
1854
+ "terminal_wake_complete": {
1855
+ "inputSchema": {
1856
+ "type": "object",
1857
+ "properties": {
1858
+ "connection_id": {
1859
+ "type": "string",
1860
+ "format": "uuid"
1861
+ },
1862
+ "event_id": {
1863
+ "type": "string",
1864
+ "format": "uuid"
1865
+ },
1866
+ "claim_id": {
1867
+ "type": "string",
1868
+ "format": "uuid"
1869
+ },
1870
+ "outcome": {
1871
+ "enum": [
1872
+ "handled",
1873
+ "no_action"
1874
+ ]
1875
+ }
1876
+ },
1877
+ "required": [
1878
+ "connection_id",
1879
+ "event_id",
1880
+ "claim_id",
1881
+ "outcome"
1882
+ ],
1883
+ "additionalProperties": false
1884
+ },
1885
+ "outputSchema": {
1886
+ "type": "object",
1887
+ "properties": {
1888
+ "completed": {
1889
+ "const": true
1890
+ }
1891
+ },
1892
+ "required": [
1893
+ "completed"
1894
+ ],
1895
+ "additionalProperties": false
1896
+ }
1897
+ },
1898
+ "terminal_wake_pin": {
1899
+ "inputSchema": {
1900
+ "type": "object",
1901
+ "properties": {
1902
+ "session_id": {
1903
+ "anyOf": [
1904
+ {
1905
+ "type": "string",
1906
+ "format": "uuid"
1907
+ },
1908
+ {
1909
+ "type": "null"
1910
+ }
1911
+ ]
1912
+ },
1913
+ "folder_id": {
1914
+ "type": "string",
1915
+ "pattern": "^[a-f0-9]{64}$"
1916
+ }
1917
+ },
1918
+ "additionalProperties": false,
1919
+ "minProperties": 1
1920
+ },
1921
+ "outputSchema": {
1922
+ "type": "object",
1923
+ "properties": {
1924
+ "saved": {
1925
+ "const": true
1926
+ }
1927
+ },
1928
+ "required": [
1929
+ "saved"
1930
+ ],
1931
+ "additionalProperties": false
1932
+ }
1343
1933
  }
1344
1934
  }