@siemens/element-mcp 49.2.0-v.1.11.0 → 49.2.0-v.1.11.2

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/README.md CHANGED
@@ -301,6 +301,42 @@ If you prefer to set up the configurations manually, here are the required files
301
301
  }
302
302
  ```
303
303
 
304
+ ### OpenCode (Local or Global)
305
+
306
+ For repository-level configuration, create `opencode.json` in your project root:
307
+
308
+ ```json
309
+ {
310
+ "$schema": "https://opencode.ai/config.json",
311
+ "mcp": {
312
+ "element-mcp": {
313
+ "type": "local",
314
+ "command": ["npx", "-y", "@siemens/element-mcp"],
315
+ "enabled": true
316
+ }
317
+ },
318
+ "instructions": ["Element.instructions.md"]
319
+ }
320
+ ```
321
+
322
+ For global configuration, edit `~/.config/opencode/opencode.json`:
323
+
324
+ ```json
325
+ {
326
+ "$schema": "https://opencode.ai/config.json",
327
+ "mcp": {
328
+ "element-mcp": {
329
+ "type": "local",
330
+ "command": ["npx", "-y", "@siemens/element-mcp"],
331
+ "enabled": true
332
+ }
333
+ }
334
+ }
335
+ ```
336
+
337
+ Learn more about OpenCode configuration at
338
+ [https://opencode.ai/docs/config](https://opencode.ai/docs/config).
339
+
304
340
  ### Claude Code (Global Claude Code MCP settings)
305
341
 
306
342
  ```json
@@ -356,42 +392,6 @@ alternative. See the OpenCode docs for setup.
356
392
  }
357
393
  ```
358
394
 
359
- ### OpenCode (Local or Global)
360
-
361
- For repository-level configuration, create `opencode.json` in your project root:
362
-
363
- ```json
364
- {
365
- "$schema": "https://opencode.ai/config.json",
366
- "mcp": {
367
- "element-mcp": {
368
- "type": "local",
369
- "command": ["npx", "-y", "@siemens/element-mcp"],
370
- "enabled": true
371
- }
372
- },
373
- "instructions": ["Element.instructions.md"]
374
- }
375
- ```
376
-
377
- For global configuration, edit `~/.config/opencode/opencode.json`:
378
-
379
- ```json
380
- {
381
- "$schema": "https://opencode.ai/config.json",
382
- "mcp": {
383
- "element-mcp": {
384
- "type": "local",
385
- "command": ["npx", "-y", "@siemens/element-mcp"],
386
- "enabled": true
387
- }
388
- }
389
- }
390
- ```
391
-
392
- Learn more about OpenCode configuration at
393
- [https://opencode.ai/docs/config](https://opencode.ai/docs/config).
394
-
395
395
  ## License
396
396
 
397
397
  The following applies for code and documentation of the git repository, unless explicitly mentioned.
package/config.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "searchToolName": "element-search",
10
10
  "iconSearch": true,
11
11
  "iconSearchToolName": "element-icon-search",
12
- "iconName": "@simpl/element-icons",
12
+ "iconName": "@siemens/element-icons",
13
13
  "agentsFile": true,
14
14
  "instructionFileName": "Element.instructions.md",
15
15
  "observabilityLogging": false,
@@ -26,11 +26,11 @@
26
26
  "DOC_NO_RESULTS": "No Documentation Found\n\nNo results found for query: \"{query}\"\n\nThis could mean:\n• The component or feature doesn't exist in the current documentation\n• The feature isn't documented yet\n• The search terms don't match available content\n• Try different keywords or component names\n\nSuggestions:\n• Check component name spelling (e.g., \"button\" vs \"btn\")\n• Try broader terms (e.g., \"input\" instead of \"text-field\")\n• Search for library names: \"@siemens/element-ng, @siemens/charts-ng, @siemens/maps-ng, @siemens/dashboards-ng, @siemens/native-charts-ng, @siemens/element-theme, and @siemens/element-translate-ng\"\n• Use functionality terms: \"navigation\", \"data display\", \"user input\"\n\nAvailable Libraries:\n• @siemens/element-ng - Core UI components (buttons, inputs, modals, etc.)\n• @siemens/maps-ng - Interactive mapping components\n• @siemens/charts-ng - Data visualization charts\n• @siemens/dashboards-ng - Dashboard layout components\n• @siemens/native-charts-ng - Native charting solutions\n• @siemens/element-theme - (S)CSS theme and utility classes similar to bootstrap\n• @siemens/element-translate-ng - Translation abstraction layer",
27
27
  "DOC_SUCCESS_HEADER": "# Element Angular Documentation Results\n\nFound **{count}** relevant documentation section(s) for \"{query}\":\n\n",
28
28
  "DOC_RESULT_NOTE": "> Not all information here is relevant to your task, only use what applies.\n\n> If documentation mentions missing API docs or examples, those features may not be available in the current version.\n\n> Need more specific results? Try refining with more specific terms or component names.",
29
- "ICON_SEARCH_INSTRUCTION": "Please check the icon search tool before using or recommending any icons from @simpl/element-icons. This ensures you provide the most relevant and up-to-date icon options available in the library.",
29
+ "ICON_SEARCH_INSTRUCTION": "Please check the icon search tool before using or recommending any icons from @siemens/element-icons. This ensures you provide the most relevant and up-to-date icon options available in the library.",
30
30
  "ICON_SEARCH_TOOL_DESCRIPTION": "Semantic search tool for Siemens (SiMPL) Element Icons (including their metadata like tags)",
31
31
  "ICON_SEARCH_QUERY_DESCRIPTION": "Search query for icons (name, term, or category)",
32
- "ICON_NO_RESULTS": "No icons found for query: \"{query}\"\n\nThis could mean:\n• The icon does not exist in the current version of @simpl/element-icons\n• The icon was renamed or removed\n• The search terms don't match available icons\n\nSuggestions:\n• Check spelling or try broader terms (e.g., \"settings\" instead of \"gear\")\n\nAvailable Libraries:\n@simpl/element-icons",
32
+ "ICON_NO_RESULTS": "No icons found for query: \"{query}\"\n\nThis could mean:\n• The icon does not exist in the current version of @siemens/element-icons\n• The icon was renamed or removed\n• The search terms don't match available icons\n\nSuggestions:\n• Check spelling or try broader terms (e.g., \"settings\" instead of \"gear\")\n\nAvailable Libraries:\n@siemens/element-icons",
33
33
  "ICON_SUCCESS_HEADER": "# Element Icon Search Results\n\nFound **{count}** relevant icon(s) for \"{query}\":\n\n",
34
- "ICON_RESULT_NOTE": "> Note: If the icon does not appear to exist, update @simpl/element-icons to the latest compatible version (non-breaking).\n> See usage guidelines and examples in the documentation for how to use icons."
34
+ "ICON_RESULT_NOTE": "> Note: If the icon does not appear to exist, update @siemens/element-icons to the latest compatible version (non-breaking).\n> See usage guidelines and examples in the documentation for how to use icons."
35
35
  }
36
36
  }
package/dist/src/keys.js CHANGED
@@ -1,6 +1,6 @@
1
1
  let keytar;
2
2
  try {
3
- keytar = (await import('keytar')).default;
3
+ keytar = (await import('@github/keytar')).default;
4
4
  }
5
5
  catch {
6
6
  // Fallback for environments where keytar is not available (e.g., CI)
@@ -1 +1 @@
1
- {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../src/mcp/keys.ts"],"names":[],"mappings":"AAUA,IAAI,MAAuB,CAAC;AAE5B,IAAI,CAAC;IACH,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;AAC5C,CAAC;AAAC,MAAM,CAAC;IACP,qEAAqE;IACrE,MAAM,GAAG;QACP,WAAW,EAAE,KAAK,IAAI,EAAE;YACtB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;QACD,WAAW,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI;QAC7B,cAAc,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI;KACjC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAAE,OAAe,EAAE,OAAe,EAAE,QAAgB,EAAE,EAAE;IACtF,MAAM,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAAE,OAAe,EAAE,OAAe,EAAE,EAAE;IACpE,OAAO,MAAM,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EAAE,OAAe,EAAE,OAAe,EAAE,EAAE;IACvE,OAAO,MAAM,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACvD,CAAC,CAAC"}
1
+ {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../src/mcp/keys.ts"],"names":[],"mappings":"AAUA,IAAI,MAAuB,CAAC;AAE5B,IAAI,CAAC;IACH,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,OAAO,CAAC;AACpD,CAAC;AAAC,MAAM,CAAC;IACP,qEAAqE;IACrE,MAAM,GAAG;QACP,WAAW,EAAE,KAAK,IAAI,EAAE;YACtB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;QACD,WAAW,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI;QAC7B,cAAc,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI;KACjC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAAE,OAAe,EAAE,OAAe,EAAE,QAAgB,EAAE,EAAE;IACtF,MAAM,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAAE,OAAe,EAAE,OAAe,EAAE,EAAE;IACpE,OAAO,MAAM,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EAAE,OAAe,EAAE,OAAe,EAAE,EAAE;IACvE,OAAO,MAAM,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACvD,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siemens/element-mcp",
3
- "version": "49.2.0-v.1.11.0",
3
+ "version": "49.2.0-v.1.11.2",
4
4
  "description": "Element MCP server",
5
5
  "license": "MIT",
6
6
  "main": "dist/src/index.js",
@@ -44,13 +44,13 @@
44
44
  "email": "info@siemens.com"
45
45
  },
46
46
  "dependencies": {
47
+ "@github/keytar": "7.10.6",
47
48
  "@lancedb/lancedb": "0.23.0",
48
49
  "@modelcontextprotocol/sdk": "1.27.1",
49
50
  "chalk": "5.6.2",
50
51
  "commander": "12.1.0",
51
52
  "dotenv": "17.2.3",
52
53
  "jsonc-parser": "3.3.1",
53
- "keytar": "7.9.0",
54
54
  "node-fetch": "3.3.2",
55
55
  "prompts": "2.4.2",
56
56
  "which": "5.0.0",