@aleph-alpha/lib-mcp 1.1.0 → 1.2.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.
@@ -608,7 +608,7 @@
608
608
  "_autoGenerated": true
609
609
  },
610
610
  "UiIcon": {
611
- "description": "An icon component using UnoCSS/Iconify icons. Use for visual indicators, button decorations, or standalone meaningful graphics.",
611
+ "description": "An icon component using Lucide icons. Use for visual indicators, button decorations, or standalone meaningful graphics.",
612
612
  "category": "Data Display",
613
613
  "useCases": [
614
614
  "visual indicator",
@@ -620,8 +620,7 @@
620
620
  "icon",
621
621
  "symbol",
622
622
  "graphic",
623
- "material",
624
- "iconify",
623
+ "lucide",
625
624
  "svg"
626
625
  ],
627
626
  "related": [
@@ -629,11 +628,15 @@
629
628
  "UiButton"
630
629
  ],
631
630
  "props": [
632
- "icon",
633
- "ariaLabel"
631
+ "name",
632
+ "size",
633
+ "strokeWidth",
634
+ "ariaLabel",
635
+ "class"
634
636
  ],
635
637
  "examples": [
636
638
  "Default",
639
+ "Sizes",
637
640
  "InIconButton"
638
641
  ],
639
642
  "_autoGenerated": true
@@ -724,6 +727,121 @@
724
727
  ],
725
728
  "_autoGenerated": true
726
729
  },
730
+ "UiKbd": {
731
+ "description": "A keyboard key indicator component. Use to display keyboard shortcuts, hotkeys, or key combinations in documentation and UI hints.",
732
+ "category": "Feedback",
733
+ "useCases": [
734
+ "keyboard shortcut",
735
+ "hotkey display",
736
+ "key combination",
737
+ "command hint"
738
+ ],
739
+ "keywords": [
740
+ "kbd",
741
+ "keyboard",
742
+ "key",
743
+ "shortcut",
744
+ "hotkey",
745
+ "command",
746
+ "keybinding"
747
+ ],
748
+ "related": [
749
+ "UiKbdGroup",
750
+ "UiTooltip"
751
+ ],
752
+ "props": [
753
+ "size"
754
+ ],
755
+ "examples": [
756
+ "Default",
757
+ "Interactive",
758
+ "Group",
759
+ "Button",
760
+ "WithTooltip",
761
+ "Sizes"
762
+ ],
763
+ "_autoGenerated": true
764
+ },
765
+ "UiLabel": {
766
+ "description": "A text label for form elements. Use to identify form inputs, provide context, and improve accessibility by associating labels with controls.",
767
+ "category": "Form Inputs",
768
+ "useCases": [
769
+ "form label",
770
+ "input label",
771
+ "field label",
772
+ "accessibility label"
773
+ ],
774
+ "keywords": [
775
+ "label",
776
+ "form",
777
+ "input",
778
+ "text",
779
+ "field",
780
+ "accessibility",
781
+ "a11y"
782
+ ],
783
+ "related": [
784
+ "UiInput",
785
+ "UiCheckbox",
786
+ "UiField",
787
+ "UiRadioGroup"
788
+ ],
789
+ "props": [
790
+ "for"
791
+ ],
792
+ "examples": [
793
+ "Default",
794
+ "WithInput",
795
+ "WithCheckbox",
796
+ "DisabledState",
797
+ "RequiredField"
798
+ ],
799
+ "_autoGenerated": true
800
+ },
801
+ "UiListbox": {
802
+ "description": "A listbox component for displaying a list of selectable options. Use for dropdown menus, selection lists, or any list-based selection UI.",
803
+ "category": "Form Inputs",
804
+ "useCases": [
805
+ "option selection",
806
+ "dropdown list",
807
+ "selectable items",
808
+ "multi-select"
809
+ ],
810
+ "keywords": [
811
+ "listbox",
812
+ "select",
813
+ "options",
814
+ "list",
815
+ "dropdown",
816
+ "choices"
817
+ ],
818
+ "related": [
819
+ "UiSelect",
820
+ "UiTagsInput"
821
+ ],
822
+ "props": [
823
+ "modelValue",
824
+ "defaultValue",
825
+ "multiple",
826
+ "orientation",
827
+ "dir",
828
+ "disabled",
829
+ "selectionBehavior",
830
+ "highlightOnHover",
831
+ "by",
832
+ "class"
833
+ ],
834
+ "examples": [
835
+ "Default",
836
+ "Multiple",
837
+ "WithFilter",
838
+ "WithGroups",
839
+ "Disabled",
840
+ "HighlightOnHover",
841
+ "WithDisabledItems"
842
+ ],
843
+ "_autoGenerated": true
844
+ },
727
845
  "UiPopover": {
728
846
  "description": "A floating panel that appears relative to a trigger element. Use for rich content like forms, pickers, or detailed information.",
729
847
  "category": "Overlays",
@@ -912,6 +1030,73 @@
912
1030
  ],
913
1031
  "_autoGenerated": true
914
1032
  },
1033
+ "UiSeparator": {
1034
+ "description": "A visual divider between content sections. Use for grouping related items or creating visual breaks in layouts.",
1035
+ "category": "Layout",
1036
+ "useCases": [
1037
+ "divider",
1038
+ "section break",
1039
+ "content grouping",
1040
+ "visual separation"
1041
+ ],
1042
+ "keywords": [
1043
+ "separator",
1044
+ "divider",
1045
+ "line",
1046
+ "hr",
1047
+ "break",
1048
+ "layout"
1049
+ ],
1050
+ "related": [
1051
+ "UiCard",
1052
+ "UiDropdownMenu"
1053
+ ],
1054
+ "props": [
1055
+ "orientation",
1056
+ "decorative"
1057
+ ],
1058
+ "examples": [
1059
+ "Default",
1060
+ "Vertical",
1061
+ "InCard"
1062
+ ],
1063
+ "_autoGenerated": true
1064
+ },
1065
+ "UiSkeleton": {
1066
+ "description": "A placeholder loading state for content. Use to indicate loading state while preserving layout structure.",
1067
+ "category": "Feedback",
1068
+ "useCases": [
1069
+ "loading state",
1070
+ "content placeholder",
1071
+ "lazy loading",
1072
+ "data fetching"
1073
+ ],
1074
+ "keywords": [
1075
+ "skeleton",
1076
+ "loading",
1077
+ "placeholder",
1078
+ "shimmer",
1079
+ "pulse",
1080
+ "loader"
1081
+ ],
1082
+ "related": [
1083
+ "UiSpinner",
1084
+ "UiProgress"
1085
+ ],
1086
+ "props": [
1087
+ "width",
1088
+ "height",
1089
+ "rounded"
1090
+ ],
1091
+ "examples": [
1092
+ "Default",
1093
+ "Card",
1094
+ "TextBlock",
1095
+ "Avatars",
1096
+ "Table"
1097
+ ],
1098
+ "_autoGenerated": true
1099
+ },
915
1100
  "UiSlider": {
916
1101
  "description": "A range input for selecting numeric values by dragging a thumb along a track. Supports single-thumb sliders via `[value]` and multi-thumb sliders via `[min, max]`.",
917
1102
  "category": "Form Inputs",
@@ -1075,6 +1260,40 @@
1075
1260
  ],
1076
1261
  "_autoGenerated": true
1077
1262
  },
1263
+ "UiTagsInput": {
1264
+ "description": "A tags input component that renders tags inside an input, followed by an actual text input. Use for entering multiple values like tags, keywords, or email addresses.",
1265
+ "category": "Form Inputs",
1266
+ "useCases": [
1267
+ "tag entry",
1268
+ "keyword input",
1269
+ "email list",
1270
+ "multi-value input",
1271
+ "chip input"
1272
+ ],
1273
+ "keywords": [
1274
+ "tags",
1275
+ "input",
1276
+ "chips",
1277
+ "tokens",
1278
+ "multi",
1279
+ "keywords",
1280
+ "labels"
1281
+ ],
1282
+ "related": [
1283
+ "UiInput",
1284
+ "UiBadge"
1285
+ ],
1286
+ "props": [],
1287
+ "examples": [
1288
+ "Default",
1289
+ "Empty",
1290
+ "Disabled",
1291
+ "MaxTags",
1292
+ "EmailInput",
1293
+ "WithListbox"
1294
+ ],
1295
+ "_autoGenerated": true
1296
+ },
1078
1297
  "UiTextarea": {
1079
1298
  "description": "A multi-line text input for longer content. Use for comments, descriptions, messages, or any text that may span multiple lines.",
1080
1299
  "category": "Form Inputs",
@@ -1109,6 +1328,46 @@
1109
1328
  ],
1110
1329
  "_autoGenerated": true
1111
1330
  },
1331
+ "UiToggle": {
1332
+ "description": "A two-state button that can be toggled on or off. Use for enabling/disabling features or switching between states.",
1333
+ "category": "Form Inputs",
1334
+ "useCases": [
1335
+ "toolbar button",
1336
+ "formatting toggle",
1337
+ "view toggle",
1338
+ "filter toggle"
1339
+ ],
1340
+ "keywords": [
1341
+ "toggle",
1342
+ "button",
1343
+ "pressed",
1344
+ "on",
1345
+ "off",
1346
+ "state"
1347
+ ],
1348
+ "related": [
1349
+ "UiSwitch",
1350
+ "UiButton",
1351
+ "UiCheckbox"
1352
+ ],
1353
+ "props": [
1354
+ "modelValue",
1355
+ "defaultValue",
1356
+ "disabled",
1357
+ "variant",
1358
+ "size"
1359
+ ],
1360
+ "examples": [
1361
+ "Default",
1362
+ "Outline",
1363
+ "WithText",
1364
+ "Small",
1365
+ "Large",
1366
+ "Disabled",
1367
+ "AllStates"
1368
+ ],
1369
+ "_autoGenerated": true
1370
+ },
1112
1371
  "UiTooltip": {
1113
1372
  "description": "A popup that displays information on hover or focus. Use for explaining icons, providing hints, or showing additional context.",
1114
1373
  "category": "Overlays",
package/dist/cli.js CHANGED
@@ -6838,7 +6838,7 @@ function findMatchingBrace(text2, openingBraceIndex, openChar = "{", closeChar =
6838
6838
  var __filename = fileURLToPath(import.meta.url);
6839
6839
  var __dirname = path.dirname(__filename);
6840
6840
  var IDE_CONFIG = {
6841
- claude: { dir: ".claude", file: "settings.json", name: "Claude Code" },
6841
+ claude: { dir: null, file: ".mcp.json", name: "Claude Code" },
6842
6842
  cursor: { dir: ".cursor", file: "mcp.json", name: "Cursor" }
6843
6843
  };
6844
6844
  function getProjectRoot() {
@@ -6859,9 +6859,9 @@ function getMcpServerPath(projectRoot) {
6859
6859
  }
6860
6860
  function configureIDE(ide, projectRoot, mcpPath) {
6861
6861
  const { dir, file, name } = IDE_CONFIG[ide];
6862
- const settingsDir = path.join(projectRoot, dir);
6862
+ const settingsDir = dir ? path.join(projectRoot, dir) : projectRoot;
6863
6863
  const settingsFile = path.join(settingsDir, file);
6864
- if (!fs2.existsSync(settingsDir)) {
6864
+ if (dir && !fs2.existsSync(settingsDir)) {
6865
6865
  fs2.mkdirSync(settingsDir, { recursive: true });
6866
6866
  }
6867
6867
  const settings = readJsonFile(settingsFile) ?? {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aleph-alpha/lib-mcp",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/server.js",
@@ -28,7 +28,7 @@
28
28
  "@aleph-alpha/tsconfig-frontend": "0.5.0"
29
29
  },
30
30
  "peerDependencies": {
31
- "@aleph-alpha/ui-library": "1.11.0"
31
+ "@aleph-alpha/ui-library": "1.12.0"
32
32
  },
33
33
  "homepage": "https://docs.aleph-alpha.com",
34
34
  "scripts": {