@siemens/element-mcp 48.0.0-v.1.10.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.
Files changed (48) hide show
  1. package/AGENTS.md +57 -0
  2. package/LICENSE.md +20 -0
  3. package/README.md +391 -0
  4. package/config.json +36 -0
  5. package/database/vectors.db/documents.lance/_transactions/3-e5f15142-a14a-42bb-9016-97b718052b9d.txn +0 -0
  6. package/database/vectors.db/documents.lance/_versions/5.manifest +0 -0
  7. package/database/vectors.db/documents.lance/data/010011010100101011011110fe1c384178a12f27f3f6d2f9cb.lance +0 -0
  8. package/dist/src/cli.d.ts +3 -0
  9. package/dist/src/cli.d.ts.map +1 -0
  10. package/dist/src/cli.js +310 -0
  11. package/dist/src/cli.js.map +1 -0
  12. package/dist/src/config.d.ts +35 -0
  13. package/dist/src/config.d.ts.map +1 -0
  14. package/dist/src/config.js +33 -0
  15. package/dist/src/config.js.map +1 -0
  16. package/dist/src/db-handler.d.ts +50 -0
  17. package/dist/src/db-handler.d.ts.map +1 -0
  18. package/dist/src/db-handler.js +256 -0
  19. package/dist/src/db-handler.js.map +1 -0
  20. package/dist/src/embeddings.d.ts +77 -0
  21. package/dist/src/embeddings.d.ts.map +1 -0
  22. package/dist/src/embeddings.js +280 -0
  23. package/dist/src/embeddings.js.map +1 -0
  24. package/dist/src/index.d.ts +30 -0
  25. package/dist/src/index.d.ts.map +1 -0
  26. package/dist/src/index.js +427 -0
  27. package/dist/src/index.js.map +1 -0
  28. package/dist/src/keys.d.ts +4 -0
  29. package/dist/src/keys.d.ts.map +1 -0
  30. package/dist/src/keys.js +24 -0
  31. package/dist/src/keys.js.map +1 -0
  32. package/dist/src/logger.d.ts +24 -0
  33. package/dist/src/logger.d.ts.map +1 -0
  34. package/dist/src/logger.js +185 -0
  35. package/dist/src/logger.js.map +1 -0
  36. package/dist/src/prompt.d.ts +19 -0
  37. package/dist/src/prompt.d.ts.map +1 -0
  38. package/dist/src/prompt.js +94 -0
  39. package/dist/src/prompt.js.map +1 -0
  40. package/dist/src/setup.d.ts +29 -0
  41. package/dist/src/setup.d.ts.map +1 -0
  42. package/dist/src/setup.js +851 -0
  43. package/dist/src/setup.js.map +1 -0
  44. package/dist/src/token.d.ts +22 -0
  45. package/dist/src/token.d.ts.map +1 -0
  46. package/dist/src/token.js +76 -0
  47. package/dist/src/token.js.map +1 -0
  48. package/package.json +69 -0
package/AGENTS.md ADDED
@@ -0,0 +1,57 @@
1
+ # Element Development Guidelines
2
+
3
+ ## Project Overview
4
+
5
+ This document provides guidelines for developing applications using the Siemens Element design
6
+ system packages. The libraries are available under both `@siemens/` and `@simpl/` prefixes (legacy
7
+ and some other non-public packages), including element-ng, charts-ng, maps-ng, dashboards-ng,
8
+ native-charts-ng, and other related packages.
9
+
10
+ The Element design system includes the element-theme package and comprehensive token system for
11
+ consistent styling and theming across applications.
12
+
13
+ ## Development Approach
14
+
15
+ Always search Element documentation first before implementing any UI components or patterns. This
16
+ includes looking up UX guidelines, component APIs, helper classes like "card" and "button" which are
17
+ considered components, and design patterns from the official documentation.
18
+
19
+ Use modern Angular syntax with standalone components, Angular Signals for state management, and
20
+ separate template/style files. Avoid inline templates or styles unless they are very short. Import
21
+ components individually and use arrow functions with const declarations.
22
+
23
+ Prefer using existing components and patterns over implementing your own. Do not use antipatterns
24
+ such as card-in-card layouts, apply elevation sparingly and correctly. Use mock data to simulate
25
+ real-world scenarios and maintain consistent theming throughout using Element design tokens and
26
+ documented application layouts.
27
+
28
+ ## Code Quality
29
+
30
+ Write minimal comments only where necessary and avoid meta-comments about changes. Don't add
31
+ unnecessary try-catch blocks or one-line if statements without braces. Fix root causes rather than
32
+ symptoms and assume APIs are available without fallbacks.
33
+
34
+ Use utility classes from the Element design system when available instead of writing custom CSS.
35
+ Don't override utility classes - create new identifying classes if customization is needed. Leverage
36
+ color token variables and documented layout patterns. Use modern TypeScript features (like arrow
37
+ functions and bind to const instead of function) and avoid deprecated or legacy syntax.
38
+
39
+ ## Package Management and Testing
40
+
41
+ Install missing packages using appropriate package managers and fix import paths when packages exist
42
+ but imports fail. Run lint, format, and test commands if available in the project, checking
43
+ package.json for available scripts.
44
+
45
+ Keep documentation changes minimal unless starting or changing an entire project. Focus on
46
+ implementation over excessive documentation and create realistic, cohesive applications using the
47
+ Element ecosystem components and design guidelines.
48
+
49
+ ## Implementation Strategy
50
+
51
+ When building applications, research relevant layouts and navigation patterns first. Plan component
52
+ structure with standalone imports, create appropriate mock data, and apply Element design tokens
53
+ consistently. Use documented Element components and verify functionality through available testing
54
+ suites.
55
+
56
+ This approach ensures high-quality development within the Element ecosystem while maintaining modern
57
+ Angular best practices and leveraging the full design system capabilities.
package/LICENSE.md ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License
2
+
3
+ Copyright (c) Siemens 2016 - 2025
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the “Software”), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,391 @@
1
+ # Siemens MCP Server for Element
2
+
3
+ A Model Context Protocol (MCP) server that provides AI assistants (Agents) with access to
4
+ [Siemens Element](https://element.siemens.io) design system and component API documentation through
5
+ Retrieval-Augmented Generation (RAG). This enables more accurate and relevant assistance with design
6
+ system and component library APIs.
7
+
8
+ ## Usage and use cases
9
+
10
+ - Local MCP server installation includes all design system documentation, component APIs, examples
11
+ and icon information
12
+ - MCP server integration with your AI Agent setup of choice, integrated into your IDE (for example,
13
+ GitHub Copilot Agent integration within VS Code, or OpenCode, with project-related MCP
14
+ configuration)
15
+ - Use cases include (but are not limited to):
16
+ - Get design system best practice information
17
+ - Export components
18
+ - Review project text according to UX writing guidelines
19
+ - Generate new pages using design system components
20
+ - Add and modify pages
21
+
22
+ ## Installation
23
+
24
+ ### Prerequisites
25
+
26
+ - Node.js (20+ recommended)
27
+ - Access to the API [https://api.siemens.com/llm](https://api.siemens.com) by creating a free token
28
+ at <https://my.siemens.com> with `llm` scope. We use the `embeddings` API. Siemens access is
29
+ required to request a token. We are working on a configurable alternative.
30
+ - IDE/Agent/LLM setup of your choice (for example: VS Code, GitHub Copilot, Claude Sonnet 4.5)
31
+
32
+ ### Version selection
33
+
34
+ We distribute a MCP server package `@siemens/element-mcp` for every `@siemens/element-ng` version.
35
+ The version of `@siemens/element-mcp` must match your version of `@siemens/element-ng`. The version
36
+ number of the MCP package `@siemens/element-mcp` is a combination of the `@siemens/element-ng`
37
+ version and the version of the MCP code.
38
+
39
+ For example, `@siemens/element-mcp@48.2.0-v.1.4.8` comes with the data of
40
+ `@siemens/element-ng@48.2.0` and `v.1.4.8` is the version of the MCP script.
41
+
42
+ To facilitate the version selection, we use
43
+ [npm distribution tags](https://docs.npmjs.com/cli/commands/npm-dist-tag) `@element<version>` that
44
+ match the version of `@siemens/element-ng`. When using the corresponding distribution tag on
45
+ installation, you get the latest version of the MCP package that matches your `@siemens/element-ng`
46
+ version and simplifies handling in your `package.json`.
47
+
48
+ ```json
49
+ "dependencies": {
50
+ "@siemens/element-ng": "48.2.0",
51
+ },
52
+ "devDependencies": {
53
+ "@siemens/element-mcp": "48.2.0-v.1.4.8",
54
+ }
55
+ ```
56
+
57
+ New MCP package versions on the same `element-ng` version are incremented like `48.2.0-v.1.4.9`,
58
+ `48.2.0-v.1.4.10`, `48.2.0-v.1.5.0`.
59
+
60
+ ### Project installation
61
+
62
+ ```bash
63
+ npm install --save-dev --save-exact @siemens/element-mcp@element48.2.0
64
+
65
+ # Or with yarn
66
+ yarn add -D --exact @siemens/element-mcp@element48.2.0
67
+ ```
68
+
69
+ ### Global installation
70
+
71
+ ```bash
72
+ npm install -g @siemens/element-mcp@element48.2.0
73
+ ```
74
+
75
+ ### Upgrading
76
+
77
+ Simply install the tag for your version and framework again:
78
+
79
+ ```bash
80
+ # in project
81
+ npm install --save-dev --save-exact @siemens/element-mcp@element48.3.0
82
+
83
+ # with yarn
84
+ yarn add -D --exact @siemens/element-mcp@element48.3.0
85
+
86
+ # global
87
+ npm install -g --save-exact @siemens/element-mcp@element48.3.0
88
+ ```
89
+
90
+ ## Quick Start
91
+
92
+ After local project or global package installation, you need to initialize the MCP server and
93
+ provide the access token.
94
+
95
+ 1. **Navigate to your project directory**:
96
+
97
+ ```bash
98
+ cd your-project
99
+ ```
100
+
101
+ 2. **Run initial setup**:
102
+
103
+ ```bash
104
+ npx @siemens/element-mcp init
105
+ ```
106
+
107
+ Or if token is already set up:
108
+
109
+ ```bash
110
+ npx @siemens/element-mcp setup
111
+ ```
112
+
113
+ > Important: Run this command in the root of every project where you want to use the MCP server.
114
+
115
+ 3. **Follow the prompts**:
116
+ - Enter your LLM token from https://my.siemens.com/ (requires 'llm' scope)
117
+ - This token is needed to generate embeddings for semantic search of the documentation. The
118
+ embeddings help find relevant documentation chunks, but the actual LLM (language model) that
119
+ processes your queries and generates responses is provided separately by your AI tool (e.g.,
120
+ GitHub Copilot, Claude, etc.)
121
+ - Choose which tools to configure (VS Code, Cline, Zed, etc.)
122
+ - Optionally set up Element instruction files for AI agents
123
+ - The tool will create MCP configuration files based on your selection, commit the local
124
+ configuration to share it (make sure it is not ignored by `.gitignore`)
125
+
126
+ 4. **Restart your AI tools** (VS Code, Cline, Zed, etc.)
127
+ - Ensure the server is running and trust the MCP server, e.g. click the "Server" icon in the
128
+ Github Copilot Chat panel in VS Code.
129
+ - **For GitHub Copilot in VS Code**: Make sure you are in Agent Mode (not Chat Mode). Use models
130
+ like **Claude Sonnet 4.5**.
131
+
132
+ 5. **Start prompting**:
133
+ - "How do I use the Filtered-Search component from @siemens/element-ng?"
134
+ - "Show me examples of @siemens/charts-ng usage"
135
+ - "Implement a dashboard with different widgets"
136
+ - "Find icons related to AI or machine learning"
137
+ - "Review the texts of this project"
138
+
139
+ > The MCP server starts automatically when your AI tools need it.
140
+
141
+ ## Setup Options
142
+
143
+ During `init` or `setup`, select which configuration(s) to create:
144
+
145
+ - **Local VS Code / GitHub Copilot (Repository)** creates a VS Code MCP configuration file at
146
+ `.vscode/mcp.json` in the current repository
147
+ - **OpenCode (Repository)** creates `opencode.json` in the current repository for OpenCode AI
148
+ - **OpenCode Global Settings** updates global OpenCode configuration
149
+ (`~/.config/opencode/opencode.json`)
150
+ - **Cline Global Settings** updates global Cline MCP configuration
151
+ - **VS Code / GitHub Copilot Global Config** writes user-level MCP config
152
+ - **Zed Global Settings** configures Zed editor / agent MCP
153
+
154
+ ## AI Agent Instructions (optional)
155
+
156
+ After MCP configuration, you can set up Element and Angular instruction files so AI agents work more
157
+ effectively with your codebase. Do this in each repository where you want instructions.
158
+
159
+ You have two options:
160
+
161
+ - **Symbolic link to receive updates**
162
+ Keeps files synced with the installed package. Requires the package to remain installed and may
163
+ not work on all systems or package managers. The tool can create symlinks automatically;
164
+ otherwise, create links yourself pointing to the installed package's `AGENTS.md` and Element
165
+ instructions.
166
+
167
+ - **Copy the content** Copy the contents of the package’s `AGENTS.md` into one of the following in
168
+ your repo:
169
+ - `.github/instructions/Element.instructions.md`
170
+ - `AGENTS.md`
171
+ - `.github/copilot-instructions.md`
172
+
173
+ If you prefer manual copy, open the package’s `AGENTS.md`, then paste it into your chosen file and
174
+ commit it. Repeat per repository whenever you want to update the instructions.
175
+
176
+ ## Logging
177
+
178
+ Per default no logging is performed, but you can enable local-only logging of all search queries and
179
+ retrieval results during setup.
180
+
181
+ ### Manually enabling logging
182
+
183
+ In your MCP configuration add the flag `--log` to log all search queries and retrieval results to
184
+ local log files in `~/.element-mcp`.
185
+
186
+ ```json
187
+ {
188
+ "servers": {
189
+ "@siemens/element-mcp": {
190
+ "type": "stdio",
191
+ "command": "npx",
192
+ "args": ["@siemens/element-mcp", "--log"]
193
+ }
194
+ }
195
+ }
196
+ ```
197
+
198
+ ### Viewing and sharing logs
199
+
200
+ To view logs, use the `npx @siemens/element-mcp log` command, select any relevant session and look
201
+ at the output or the files copied to your current working directory.
202
+
203
+ For feedback about the MCP and Agent results, please create an issue at
204
+ [https://code.siemens.com/ux/sdl-mcp/issues](https://code.siemens.com/ux/sdl-mcp/issues), share your
205
+ information, and include the relevant logs.
206
+
207
+ ## Usage
208
+
209
+ ### Commands
210
+
211
+ #### Init (First-time setup)
212
+
213
+ Complete initial setup: configure token and create all MCP configurations.
214
+
215
+ ```bash
216
+ npx @siemens/element-mcp init
217
+ ```
218
+
219
+ #### Setup (Update configurations)
220
+
221
+ Create or update MCP configuration files for your tools (uses existing token).
222
+
223
+ ```bash
224
+ npx @siemens/element-mcp setup
225
+ ```
226
+
227
+ #### Setup Token
228
+
229
+ Set or update only the LLM token in system keychain.
230
+
231
+ ```bash
232
+ npx @siemens/element-mcp setup-token
233
+ ```
234
+
235
+ #### Check
236
+
237
+ Verify your installation and configuration.
238
+
239
+ ```bash
240
+ npx @siemens/element-mcp check
241
+ ```
242
+
243
+ #### Test
244
+
245
+ Test the MCP server with a sample query.
246
+
247
+ ```bash
248
+ npx @siemens/element-mcp test
249
+ ```
250
+
251
+ #### Log
252
+
253
+ Check your previous MCP retrieval logs (if enabled / not disabled).
254
+
255
+ ```bash
256
+ npx @siemens/element-mcp log
257
+ ```
258
+
259
+ ### Use within WSL (Windows Subsystem for Linux)
260
+
261
+ If you're using WSL, you need to configure the LLM token using environment variables instead of the
262
+ system keychain. Before running any commands, add the following to a `.env` file in the project root
263
+ (if you're using project installation):
264
+
265
+ ```
266
+ SDL_MCP_TOKEN_ENV=true
267
+ OPENAI_API_KEY=<your-key-here>
268
+ ```
269
+
270
+ Make sure the `.env` file is in your `.gitignore` and can't be committed.
271
+
272
+ Alternatively, or if you're using global installation, add these to your shell profile
273
+ (`~/.zprofile` or `~/.bash_profile`):
274
+
275
+ ```bash
276
+ export SDL_MCP_TOKEN_ENV=true
277
+ export OPENAI_API_KEY=<your-key-here>
278
+ ```
279
+
280
+ ### Connection Issues
281
+
282
+ - Verify that the MCP server is running (it should start automatically)
283
+ - Restart your AI tool after configuration changes
284
+ - Verify your LLM token is valid at https://my.siemens.com/
285
+
286
+ ## Manual Configuration
287
+
288
+ If you prefer to set up the configurations manually, here are the required files and their contents.
289
+
290
+ ### VS Code (.vscode/mcp.json or User/mcp.json)
291
+
292
+ ```json
293
+ {
294
+ "servers": {
295
+ "@siemens/element-mcp": {
296
+ "type": "stdio",
297
+ "command": "npx",
298
+ "args": ["@siemens/element-mcp"]
299
+ }
300
+ }
301
+ }
302
+ ```
303
+
304
+ ### Cline (Global Cline MCP settings)
305
+
306
+ ```json
307
+ {
308
+ "mcpServers": {
309
+ "@siemens/element-mcp": {
310
+ "command": "npx",
311
+ "args": ["@siemens/element-mcp"]
312
+ }
313
+ }
314
+ }
315
+ ```
316
+
317
+ ### Zed (Global Zed settings)
318
+
319
+ ```json
320
+ {
321
+ "context_servers": {
322
+ "@siemens/element-mcp": {
323
+ "source": "custom",
324
+ "command": "<path-to-npx, run which/where npx to find>",
325
+ "args": ["@siemens/element-mcp"],
326
+ "env": {}
327
+ }
328
+ }
329
+ }
330
+ ```
331
+
332
+ ### OpenCode (Local or Global)
333
+
334
+ For repository-level configuration, create `opencode.json` in your project root:
335
+
336
+ ```json
337
+ {
338
+ "$schema": "https://opencode.ai/config.json",
339
+ "mcp": {
340
+ "element-mcp": {
341
+ "type": "local",
342
+ "command": ["npx", "-y", "@siemens/element-mcp"],
343
+ "enabled": true
344
+ }
345
+ },
346
+ "instructions": ["Element.instructions.md"]
347
+ }
348
+ ```
349
+
350
+ For global configuration, edit `~/.config/opencode/opencode.json`:
351
+
352
+ ```json
353
+ {
354
+ "$schema": "https://opencode.ai/config.json",
355
+ "mcp": {
356
+ "element-mcp": {
357
+ "type": "local",
358
+ "command": ["npx", "-y", "@siemens/element-mcp"],
359
+ "enabled": true
360
+ }
361
+ }
362
+ }
363
+ ```
364
+
365
+ Learn more about OpenCode configuration at
366
+ [https://opencode.ai/docs/config](https://opencode.ai/docs/config).
367
+
368
+ ## License
369
+
370
+ The following applies for code and documentation of the git repository, unless explicitly mentioned.
371
+
372
+ Copyright (c) Siemens 2016 - 2025
373
+
374
+ MIT, see [LICENSE.md](LICENSE.md).
375
+
376
+ ### Open Source Software
377
+
378
+ The software of this distributed MCP npm package consists of the database file and JavaScript files,
379
+ which provide access to the database, implementing the Model Context Protocol. This package does not
380
+ include any third party software. However, to use this software, you need the Open Source Software
381
+ packages specified in the `dependencies` part of the [package.json](package.json) file, and their
382
+ dependencies. When installing this package with a npm package manager, the dependencies are
383
+ automatically installed (e.g., when using npm).
384
+
385
+ ## Support
386
+
387
+ For issues and questions, please use the issue tracker at:
388
+ [https://code.siemens.com/ux/sdl-mcp/issues](https://code.siemens.com/ux/sdl-mcp/issues)
389
+
390
+ For suboptimal retrievals / agent behavior, consider attaching a relevant log to help us figure out
391
+ how to improve the service, see [Viewing and sharing logs](#viewing-and-sharing-logs).
package/config.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@siemens/element-mcp",
3
+ "description": "Element MCP server",
4
+ "displayName": "Element",
5
+ "binName": "element-mcp",
6
+ "compatTokenName": "simpl-mcp",
7
+ "documentedName": "Element",
8
+ "projectName": "Element",
9
+ "searchToolName": "element-search",
10
+ "iconSearch": true,
11
+ "iconSearchToolName": "element-icon-search",
12
+ "iconName": "@simpl/element-icons",
13
+ "agentsFile": true,
14
+ "instructionFileName": "Element.instructions.md",
15
+ "observabilityLogging": false,
16
+ "exampleQuestions": [
17
+ "How do I use the Filtered-Search component from @siemens/element-ng?",
18
+ "Show me examples of @siemens/charts-ng usage",
19
+ "Implement a dashboard with different widgets",
20
+ "Find icons related to AI or machine learning"
21
+ ],
22
+ "texts": {
23
+ "DOC_SEARCH_INSTRUCTION": "MANDATORY: For ANY Angular development question, UI component inquiry, design pattern request, or frontend implementation need, you MUST immediately use the search tool before providing any response relevant to UI / Design Systems or Angular implementations. Re-check it to get clarifications and more accurate API often, but do not search if completely unrelated or you just searched the exact same. This applies to ALL Angular-related queries regardless of whether (SiMPL) Element libraries are explicitly mentioned. The tool provides access to version-specific Siemens (SiMPL) Element documentation that is automatically tuned to match the user's library versions. This ensures you get the exact APIs, components, and implementation patterns available in their specific setup rather than generic Angular advice. Always search first to leverage the comprehensive @siemens/element-ng, @siemens/maps-ng, @siemens/charts-ng, @siemens/dashboards-ng, @siemens/native-charts-ng, @siemens/element-theme, and @siemens/element-translate-ng documentation before offering any Angular guidance.",
24
+ "DOC_SEARCH_TOOL_DESCRIPTION": "Semantic search tool for Siemens (SiMPL) Element Design System and Angular component libraries. This tool provides intelligent search across comprehensive documentation for:\n\nSupported 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\n\nUse Cases:\n• Find component APIs and properties\n• Discover usage examples and code snippets\n• Learn about component styling and theming\n• Understand integration patterns\n• Explore design system guidelines\n\nSearch Tips:\n• Use component names: \"button\", \"chart\", \"map\"\n• Describe functionality: \"data visualization\", \"user input\"\n• Ask about APIs: \"input\", \"output\", \"attributes\", \"methods\", \"type\"\n\nThe search returns relevant documentation chunks with similarity scores and contextual headers to help you find exactly what you need.",
25
+ "DOC_SEARCH_QUERY_DESCRIPTION": "Search query for (SiMPL) Element documentation. Can include component names, functionality descriptions, API questions, or usage patterns. Examples: \"button component\", \"chart configuration\", \"map markers\", \"dashboard layout\"",
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
+ "DOC_SUCCESS_HEADER": "# Element Angular Documentation Results\n\nFound **{count}** relevant documentation section(s) for \"{query}\":\n\n",
28
+ "DOC_RESULT_NOTE": "> Note: If documentation mentions missing API docs or examples, those features may not be available in the current version. The search results show the most relevant available documentation based on semantic similarity.\n\n> Need more specific results? Try refining your search with more specific terms or component names.\n\n> Not all information provided here is relevant to your query or task, make sure to only use what is relevant for the user request.",
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.",
30
+ "ICON_SEARCH_TOOL_DESCRIPTION": "Semantic search tool for Siemens (SiMPL) Element Icons (including their metadata like tags)",
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",
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."
35
+ }
36
+ }
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/mcp/cli.ts"],"names":[],"mappings":""}