@noyrax/documentation-system-plugin 1.0.4-beta.1

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 (200) hide show
  1. package/.vscodeignore +41 -0
  2. package/LICENSE +21 -0
  3. package/MCP_SERVER_SETUP.md +371 -0
  4. package/README.md +663 -0
  5. package/assets/icon.svg +27 -0
  6. package/docs/LINKEDIN_ANTWORT_SEQUENZDIAGRAMME.md +190 -0
  7. package/docs/SEQUENZDIAGRAMM_BEWEIS.md +469 -0
  8. package/docs/SEQUENZDIAGRAMM_VALIDATE_FLOW.md +282 -0
  9. package/docs/adr/001-signatur-abweichung-fix.md +54 -0
  10. package/docs/adr/002-file-specific-validation-1.0.1.md +45 -0
  11. package/docs/adr/003-documentation-generation-bugs.md +134 -0
  12. package/docs/adr/004-validator-signature-matching-fix.md +121 -0
  13. package/docs/adr/005-validator-generic-simplification-tightening.md +35 -0
  14. package/docs/adr/006-parser-variable-type-extraction.md +33 -0
  15. package/docs/adr/007-ts-parser-load-libs-for-accurate-types.md +31 -0
  16. package/docs/adr/008-dependencies-cache-phase1.md +133 -0
  17. package/docs/adr/009-consolidation-union-logic-phase1-2.md +147 -0
  18. package/docs/adr/010-extension-union-integration-phase1-3-and-phase2.md +179 -0
  19. package/docs/adr/011-module-doc-change-tracking-phase3.md +190 -0
  20. package/docs/adr/012-git-deletions-change-report-phase4.md +235 -0
  21. package/docs/adr/013-system-functionality-fixes.md +279 -0
  22. package/docs/adr/014-rules-migration-und-mcp-integration.md +113 -0
  23. package/docs/adr/015-global-agent-package.md +158 -0
  24. package/docs/adr/016-produktisierung-docguard.md +193 -0
  25. package/docs/adr/017-signature-matching-optional-fields.md +128 -0
  26. package/docs/adr/018-rebranding-docguard-to-noyrax.md +109 -0
  27. package/docs/adr/019-system-schwachstellen-analyse-und-fixes.md +204 -0
  28. package/docs/adr/020-api-doc-tiefe-und-signatureformatter.md +74 -0
  29. package/docs/adr/021-semantic-api-docs-and-symbol-classifier.md +125 -0
  30. package/docs/adr/022-semantic-class-and-constants-rendering.md +82 -0
  31. package/docs/adr/023-adr-verknuepfung-modul-doku.md +54 -0
  32. package/docs/adr/024-cursor-rules-mehrdimensionaler-raum.md +230 -0
  33. package/docs/adr/025-mcp-tools-scan-validate-cli-bridge.md +202 -0
  34. package/docs/adr/026-reality-driven-development-system.md +173 -0
  35. package/docs/adr/027-scanner-excludes-and-union-logic-fix.md +189 -0
  36. package/docs/adr/028-src-coverage-union-resync.md +124 -0
  37. package/docs/adr/029-parser-flow-kopplung-und-sync-drift-modi.md +102 -0
  38. package/docs/adr/030-dependency-import-symbol-names-preservation.md +123 -0
  39. package/docs/adr/031-generate-cli-vollstaendige-dokumentation.md +99 -0
  40. package/docs/adr/032-windows-optimized-verification-scripts.md +165 -0
  41. package/docs/adr/036-enhanced-dependency-metadata.md +190 -0
  42. package/docs/adr/TEMPLATE.md +76 -0
  43. package/docs/index/symbols.jsonl +31 -0
  44. package/docs/modules/action__action.yml.md +50 -0
  45. package/docs/modules/documentation.config.schema.json.md +37 -0
  46. package/docs/modules/mcp__package.json.md +130 -0
  47. package/docs/modules/mcp__src__resources__docs.ts.md +94 -0
  48. package/docs/modules/mcp__src__server.ts.md +15 -0
  49. package/docs/modules/mcp__src__tools__drift.ts.md +110 -0
  50. package/docs/modules/mcp__src__tools__impact.ts.md +127 -0
  51. package/docs/modules/mcp__src__tools__scan.ts.md +75 -0
  52. package/docs/modules/mcp__src__tools__validate.ts.md +116 -0
  53. package/docs/modules/mcp__src__tools__verify-adrs.ts.md +106 -0
  54. package/docs/modules/mcp__tsconfig.json.md +22 -0
  55. package/docs/modules/package.json.md +131 -0
  56. package/docs/modules/packages__doc-system-agent__examples__basic-project__package.json.md +43 -0
  57. package/docs/modules/packages__doc-system-agent__examples__basic-project__src__calculator.ts.md +81 -0
  58. package/docs/modules/packages__doc-system-agent__package.json.md +154 -0
  59. package/docs/modules/packages__doc-system-agent__src__cli__index.ts.md +8 -0
  60. package/docs/modules/packages__doc-system-agent__src__cli__init.ts.md +93 -0
  61. package/docs/modules/packages__doc-system-agent__src__cli__update.ts.md +113 -0
  62. package/docs/modules/packages__doc-system-agent__src__constants.ts.md +29 -0
  63. package/docs/modules/packages__doc-system-agent__src__index.ts.md +234 -0
  64. package/docs/modules/packages__doc-system-agent__src__mcp__resources__docs.ts.md +94 -0
  65. package/docs/modules/packages__doc-system-agent__src__mcp__server.ts.md +17 -0
  66. package/docs/modules/packages__doc-system-agent__src__mcp__tools__drift.ts.md +38 -0
  67. package/docs/modules/packages__doc-system-agent__src__mcp__tools__impact.ts.md +75 -0
  68. package/docs/modules/packages__doc-system-agent__src__mcp__tools__scan.ts.md +23 -0
  69. package/docs/modules/packages__doc-system-agent__src__mcp__tools__validate.ts.md +23 -0
  70. package/docs/modules/packages__doc-system-agent__src__mcp__tools__verify-adrs.ts.md +106 -0
  71. package/docs/modules/packages__doc-system-agent__src__mcp__types.ts.md +355 -0
  72. package/docs/modules/packages__doc-system-agent__tsconfig.json.md +22 -0
  73. package/docs/modules/scripts__verify-adrs.js.md +97 -0
  74. package/docs/modules/scripts__verify-architecture.js.md +93 -0
  75. package/docs/modules/scripts__verify-imports.js.md +114 -0
  76. package/docs/modules/src____tests____setup.ts.md +8 -0
  77. package/docs/modules/src____tests____signature-formatter.test.ts.md +16 -0
  78. package/docs/modules/src____tests____snapshot-doc-generation.test.ts.md +8 -0
  79. package/docs/modules/src____tests____symbol-classifier.test.ts.md +16 -0
  80. package/docs/modules/src__cache__ast-cache.ts.md +91 -0
  81. package/docs/modules/src__cache__dependencies-cache.ts.md +89 -0
  82. package/docs/modules/src__cache__output-cache.ts.md +91 -0
  83. package/docs/modules/src__cache__signature-cache.ts.md +76 -0
  84. package/docs/modules/src__cli__generate-cli.ts.md +130 -0
  85. package/docs/modules/src__cli__scan-cli.ts.md +99 -0
  86. package/docs/modules/src__cli__validate-cli.ts.md +144 -0
  87. package/docs/modules/src__core__async.ts.md +18 -0
  88. package/docs/modules/src__core__consolidation.ts.md +158 -0
  89. package/docs/modules/src__core__git.ts.md +35 -0
  90. package/docs/modules/src__core__language-detection.ts.md +31 -0
  91. package/docs/modules/src__core__scanner.ts.md +101 -0
  92. package/docs/modules/src__core__signature-formatter.ts.md +232 -0
  93. package/docs/modules/src__core__symbol-classifier.ts.md +178 -0
  94. package/docs/modules/src__core__symbols.ts.md +31 -0
  95. package/docs/modules/src__drift__index.ts.md +53 -0
  96. package/docs/modules/src__extension.ts.md +418 -0
  97. package/docs/modules/src__generator__adr-linker.ts.md +154 -0
  98. package/docs/modules/src__generator__change-report.ts.md +85 -0
  99. package/docs/modules/src__generator__dependency-graph.ts.md +63 -0
  100. package/docs/modules/src__generator__index.ts.md +40 -0
  101. package/docs/modules/src__generator__module-doc.ts.md +242 -0
  102. package/docs/modules/src__index__index.ts.md +141 -0
  103. package/docs/modules/src__logging__index.ts.md +87 -0
  104. package/docs/modules/src__parsers__dependencies.ts.md +69 -0
  105. package/docs/modules/src__parsers__json-yaml.ts.md +81 -0
  106. package/docs/modules/src__parsers__python.ts.md +73 -0
  107. package/docs/modules/src__parsers__ts-js.ts.md +48 -0
  108. package/docs/modules/src__parsers__types.ts.md +99 -0
  109. package/docs/modules/src__ui__commands-provider.ts.md +70 -0
  110. package/docs/modules/src__ui__status-bar.ts.md +79 -0
  111. package/docs/modules/src__validator__index.ts.md +211 -0
  112. package/docs/modules/src__validator__signature-matching.ts.md +209 -0
  113. package/docs/modules/src__validator__status.ts.md +72 -0
  114. package/docs/modules/test-mcp-resources.js.md +27 -0
  115. package/docs/modules/tsconfig.json.md +22 -0
  116. package/docs/system/CHANGE_REPORT.md +19 -0
  117. package/docs/system/DEPENDENCIES.md +430 -0
  118. package/docs/system/DEPENDENCY_GRAPH.md +368 -0
  119. package/docs/system/NAVIGATION_SPACE_ANALYSIS.md +244 -0
  120. package/docs/system/NPX_CACHE_FIX.md +85 -0
  121. package/docs/system/NPX_LOCAL_USAGE.md +66 -0
  122. package/docs/system/PLUGIN_ECOSYSTEM_STATUS.md +465 -0
  123. package/docs/system/PLUGIN_UPDATE_GUIDE.md +212 -0
  124. package/docs/system/RULES_UPDATE_GUIDE.md +182 -0
  125. package/docs/system/SYSTEM_ANALYSIS.md +947 -0
  126. package/documentation.config.schema.json +77 -0
  127. package/noyrax-5d-database-plugin-0.1.8.tgz +0 -0
  128. package/out/cache/ast-cache.js +69 -0
  129. package/out/cache/ast-cache.js.map +1 -0
  130. package/out/cache/dependencies-cache.js +73 -0
  131. package/out/cache/dependencies-cache.js.map +1 -0
  132. package/out/cache/output-cache.js +69 -0
  133. package/out/cache/output-cache.js.map +1 -0
  134. package/out/cache/signature-cache.js +60 -0
  135. package/out/cache/signature-cache.js.map +1 -0
  136. package/out/cli/generate-cli.js +330 -0
  137. package/out/cli/generate-cli.js.map +1 -0
  138. package/out/cli/scan-cli.js +151 -0
  139. package/out/cli/scan-cli.js.map +1 -0
  140. package/out/cli/validate-cli.js +258 -0
  141. package/out/cli/validate-cli.js.map +1 -0
  142. package/out/core/async.js +38 -0
  143. package/out/core/async.js.map +1 -0
  144. package/out/core/consolidation.js +230 -0
  145. package/out/core/consolidation.js.map +1 -0
  146. package/out/core/git.js +48 -0
  147. package/out/core/git.js.map +1 -0
  148. package/out/core/language-detection.js +29 -0
  149. package/out/core/language-detection.js.map +1 -0
  150. package/out/core/scanner.js +179 -0
  151. package/out/core/scanner.js.map +1 -0
  152. package/out/core/signature-formatter.js +162 -0
  153. package/out/core/signature-formatter.js.map +1 -0
  154. package/out/core/symbol-classifier.js +96 -0
  155. package/out/core/symbol-classifier.js.map +1 -0
  156. package/out/core/symbols.js +24 -0
  157. package/out/core/symbols.js.map +1 -0
  158. package/out/drift/index.js +28 -0
  159. package/out/drift/index.js.map +1 -0
  160. package/out/extension.js +984 -0
  161. package/out/extension.js.map +1 -0
  162. package/out/generator/adr-linker.js +216 -0
  163. package/out/generator/adr-linker.js.map +1 -0
  164. package/out/generator/change-report.js +124 -0
  165. package/out/generator/change-report.js.map +1 -0
  166. package/out/generator/dependency-graph.js +98 -0
  167. package/out/generator/dependency-graph.js.map +1 -0
  168. package/out/generator/index.js +117 -0
  169. package/out/generator/index.js.map +1 -0
  170. package/out/generator/module-doc.js +438 -0
  171. package/out/generator/module-doc.js.map +1 -0
  172. package/out/index/index.js +147 -0
  173. package/out/index/index.js.map +1 -0
  174. package/out/logging/index.js +24 -0
  175. package/out/logging/index.js.map +1 -0
  176. package/out/parsers/dependencies.js +126 -0
  177. package/out/parsers/dependencies.js.map +1 -0
  178. package/out/parsers/json-yaml.js +90 -0
  179. package/out/parsers/json-yaml.js.map +1 -0
  180. package/out/parsers/python.js +160 -0
  181. package/out/parsers/python.js.map +1 -0
  182. package/out/parsers/ts-js.js +397 -0
  183. package/out/parsers/ts-js.js.map +1 -0
  184. package/out/parsers/types.js +3 -0
  185. package/out/parsers/types.js.map +1 -0
  186. package/out/ui/commands-provider.js +91 -0
  187. package/out/ui/commands-provider.js.map +1 -0
  188. package/out/ui/status-bar.js +85 -0
  189. package/out/ui/status-bar.js.map +1 -0
  190. package/out/validator/index.js +185 -0
  191. package/out/validator/index.js.map +1 -0
  192. package/out/validator/signature-matching.js +261 -0
  193. package/out/validator/signature-matching.js.map +1 -0
  194. package/out/validator/status.js +38 -0
  195. package/out/validator/status.js.map +1 -0
  196. package/package.json +306 -0
  197. package/publish.ps1 +21 -0
  198. package/scripts/verify-adrs.js +312 -0
  199. package/scripts/verify-architecture.js +181 -0
  200. package/scripts/verify-imports.js +274 -0
package/.vscodeignore ADDED
@@ -0,0 +1,41 @@
1
+ # Source Maps und Type Definitions nicht benötigt
2
+ out/**/*.map
3
+ out/**/*.d.ts
4
+ dist/**
5
+ test-corpus/**
6
+
7
+ # Source Files nicht benötigt (nur kompilierte out/ Dateien)
8
+ src/**
9
+
10
+ # Demo-Projekt nicht ins VSIX packen
11
+ demo/**
12
+
13
+ # Website / Marketing
14
+ website/**
15
+
16
+ # Interne Pläne und Editor-/Agent-Metadaten
17
+ plans-archive/**
18
+ .cursor/**
19
+ .ai-agent-context/**
20
+ .ai-agent-rules.json
21
+
22
+ # Generierte Dokumentation nicht ins VSIX packen
23
+ docs/**
24
+
25
+ # MCP Server und Packages nicht ins VSIX packen (separate Projekte)
26
+ mcp/**
27
+ packages/**
28
+
29
+ # GitHub Actions nicht ins VSIX packen
30
+ action/**
31
+
32
+ # Lokale Build-/Cache-Artefakte
33
+ *.vsix
34
+ *.zip
35
+ temp-vsix-extract/**
36
+ temp-check/**
37
+ temp-*/**
38
+ *.log
39
+
40
+ # node_modules wird von vsce automatisch eingebunden (nur dependencies, nicht devDependencies)
41
+ # Daher NICHT ausschließen - vsce kümmert sich darum
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Benjamin Behrens
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, 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,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,371 @@
1
+ # MCP Server Setup für LLM-Agenten
2
+
3
+ ## Übersicht
4
+
5
+ Der 5D Database Plugin MCP Server ermöglicht es LLM-Agenten (Claude, GPT, Cursor AI), über das Model Context Protocol (MCP) auf die Datenbanken zuzugreifen.
6
+
7
+ ## Voraussetzungen
8
+
9
+ ⚠️ **KRITISCH: System-Kopplung**
10
+
11
+ **Das Documentation System Plugin (Noyrax) und das 5D Database Plugin müssen beide installiert und konfiguriert sein!**
12
+
13
+ ```
14
+ 1. Documentation System Plugin (Noyrax) → generiert docs/
15
+ 2. 5D Database Plugin → ingestiert docs/ in SQLite-DBs
16
+ 3. MCP-Server → ermöglicht LLM-Agenten-Zugriff
17
+ ```
18
+
19
+ ## Installation
20
+
21
+ ### Option 1: Via VS Code Extension (Development)
22
+
23
+ ```bash
24
+ # 1. Extension kompilieren
25
+ cd 5d-database-plugin
26
+ npm install
27
+ npm run compile
28
+
29
+ # 2. MCP-Server direkt starten
30
+ node out/cli/mcp-server-cli.js /path/to/workspace
31
+ ```
32
+
33
+ ### Option 2: Via npm Package (wenn veröffentlicht)
34
+
35
+ ```bash
36
+ # 1. Package installieren
37
+ npm install -g @noyrax/5d-database-plugin
38
+
39
+ # 2. MCP-Server starten
40
+ noyrax-5d-database-mcp /path/to/workspace
41
+ ```
42
+
43
+ ### Option 3: Via npx (ohne Installation)
44
+
45
+ ```bash
46
+ npx -y @noyrax/5d-database-plugin mcp-server /path/to/workspace
47
+ ```
48
+
49
+ ## CLI-Tools für direkten Zugriff (AI-Agenten)
50
+
51
+ Für AI-Agenten (wie Cursor AI) stehen zusätzliche CLI-Tools zur Verfügung, die direkten Zugriff auf Datenbanken und Tools bieten, ohne MCP-Server-Prozess:
52
+
53
+ ### Query-CLI (Datenbank-Queries)
54
+
55
+ Direkter Zugriff auf Datenbank-Queries:
56
+
57
+ ```bash
58
+ # Query Module
59
+ noyrax-5d-database-query <workspace-root> modules <filePath>
60
+
61
+ # Query Symbols
62
+ noyrax-5d-database-query <workspace-root> symbols <path|symbolId>
63
+
64
+ # Query Dependencies
65
+ noyrax-5d-database-query <workspace-root> dependencies --from <path>
66
+ noyrax-5d-database-query <workspace-root> dependencies --to <path>
67
+
68
+ # Query ADRs
69
+ noyrax-5d-database-query <workspace-root> adrs --number <num>
70
+ noyrax-5d-database-query <workspace-root> adrs --path <path>
71
+
72
+ # Query Changes
73
+ noyrax-5d-database-query <workspace-root> changes
74
+ ```
75
+
76
+ ### Tool-CLI (MCP-Tools direkt)
77
+
78
+ Direkter Zugriff auf MCP-Tools ohne Server:
79
+
80
+ ```bash
81
+ # Bootstrap
82
+ noyrax-5d-database-tool <workspace-root> bootstrap
83
+
84
+ # Semantic Discovery
85
+ noyrax-5d-database-tool <workspace-root> semantic_discovery "How does ingestion work?" [limit]
86
+
87
+ # System Explanation
88
+ noyrax-5d-database-tool <workspace-root> system_explanation
89
+
90
+ # Learning Path
91
+ noyrax-5d-database-tool <workspace-root> learning_path <topic>
92
+
93
+ # Cross Analysis
94
+ noyrax-5d-database-tool <workspace-root> cross_analysis <filePath>
95
+
96
+ # Gap Analysis (ab Version 0.1.8)
97
+ noyrax-5d-database-tool <workspace-root> gap_analysis [--min-deps N] [--limit N]
98
+
99
+ # Architecture Mining (ab Version 0.1.8)
100
+ noyrax-5d-database-tool <workspace-root> architecture_mining [filePath]
101
+ ```
102
+
103
+ ### Semantic-Search-CLI (V-Dimension)
104
+
105
+ Direkter Zugriff auf Semantic Search:
106
+
107
+ ```bash
108
+ # Semantic Search
109
+ noyrax-5d-database-search <workspace-root> "How does the MCP server work?" --limit 10
110
+
111
+ # Mit spezifischen Dimensionen
112
+ noyrax-5d-database-search <workspace-root> "ingestion" --dimensions X,W --limit 5
113
+ ```
114
+
115
+ **Vorteile für AI-Agenten:**
116
+ - Schneller als MCP-Server (kein JSON-RPC-Overhead)
117
+ - Direkter API-Zugriff
118
+ - JSON-Output einfach zu parsen
119
+ - Keine zusätzliche Infrastruktur nötig
120
+
121
+ ## Konfiguration für LLM-Agenten
122
+
123
+ ### Claude Desktop
124
+
125
+ Konfiguriere den MCP Server in `claude_desktop_config.json`:
126
+
127
+ **Windows:**
128
+ ```
129
+ %APPDATA%\Claude\claude_desktop_config.json
130
+ ```
131
+
132
+ **macOS:**
133
+ ```
134
+ ~/Library/Application Support/Claude/claude_desktop_config.json
135
+ ```
136
+
137
+ **Linux:**
138
+ ```
139
+ ~/.config/Claude/claude_desktop_config.json
140
+ ```
141
+
142
+ #### Konfiguration (Entwicklung - lokaler Pfad):
143
+
144
+ ```json
145
+ {
146
+ "mcpServers": {
147
+ "5d-database": {
148
+ "command": "node",
149
+ "args": [
150
+ "D:/path/to/5d-database-plugin/out/cli/mcp-server-cli.js",
151
+ "${workspaceFolder}"
152
+ ]
153
+ }
154
+ }
155
+ }
156
+ ```
157
+
158
+ #### Konfiguration (Production - npm Package):
159
+
160
+ ```json
161
+ {
162
+ "mcpServers": {
163
+ "5d-database": {
164
+ "command": "npx",
165
+ "args": [
166
+ "-y",
167
+ "@noyrax/5d-database-plugin",
168
+ "mcp-server",
169
+ "${workspaceFolder}"
170
+ ]
171
+ }
172
+ }
173
+ }
174
+ ```
175
+
176
+ ### Andere LLM-Agenten
177
+
178
+ Der MCP-Server kommuniziert via stdin/stdout (JSON-RPC 2.0). Jeder MCP-kompatible Agent kann den Server nutzen, indem er:
179
+
180
+ 1. Den Server als Child-Process startet: `node out/cli/mcp-server-cli.js <workspace-root>`
181
+ 2. JSON-RPC 2.0 Requests via stdin sendet
182
+ 3. JSON-RPC 2.0 Responses via stdout empfängt
183
+
184
+ ## Verfügbare Tools
185
+
186
+ Der MCP-Server stellt folgende Tools bereit:
187
+
188
+ | Tool | Beschreibung | Parameter |
189
+ |------|--------------|-----------|
190
+ | `bootstrap` | Erste Anlaufstelle für Agenten ohne Vorwissen | `pluginId` |
191
+ | `semantic_discovery` | Semantic Search in natürlicher Sprache | `query`, `pluginId`, `limit?` |
192
+ | `system_explanation` | System-Übersicht, Entry Points, Architecture ADRs | `pluginId` |
193
+ | `learning_path` | Geführter Lernpfad für ein Topic | `topic`, `pluginId` |
194
+ | `query_modules` | Query Module nach filePath | `filePath`, `pluginId` |
195
+ | `query_symbols` | Query Symbols nach path oder symbolId | `path?`, `symbolId?`, `pluginId` |
196
+ | `query_dependencies` | Query Dependencies nach fromModule oder toModule | `fromModule?`, `toModule?`, `pluginId` |
197
+ | `cross_analysis` | Cross-Dimension-Analyse für filePath | `filePath`, `pluginId` |
198
+ | `gap_analysis` | Findet Dokumentationslücken (Module mit vielen Dependencies aber wenigen ADRs) | `pluginId`, `minDependencies?` (default: 5), `limit?` (default: 50) |
199
+ | `architecture_mining` | Leitet Architektur-Entscheidungen aus Code-Struktur ab | `pluginId`, `filePath?` (optional, für spezifische Datei) |
200
+
201
+ ## Verfügbare Resources
202
+
203
+ | Resource | Beschreibung | URI Format |
204
+ |----------|--------------|------------|
205
+ | Modules | Alle Module (X-Dimension) | `db://modules/{pluginId}` |
206
+ | Symbols | Alle Symbols (Y-Dimension) | `db://symbols/{pluginId}` |
207
+ | Dependencies | Alle Dependencies (Z-Dimension) | `db://dependencies/{pluginId}` |
208
+ | ADRs | Alle ADRs (W-Dimension) | `db://adrs/{pluginId}` |
209
+ | Changes | Alle Change Reports (T-Dimension) | `db://changes/{pluginId}` |
210
+
211
+ ## Workflow
212
+
213
+ ### 1. Dokumentation generieren (Noyrax)
214
+
215
+ ```bash
216
+ # Documentation System Plugin ausführen
217
+ noyrax-documentation generate /path/to/workspace
218
+ # Erstellt docs/ Ordner mit allen 5 Dimensionen
219
+ ```
220
+
221
+ ### 2. Ingestion ausführen (5D Database Plugin)
222
+
223
+ ```bash
224
+ # 5D Database Plugin ausführen
225
+ noyrax-5d-database ingest /path/to/workspace
226
+ # Liest docs/ und speichert in SQLite-DBs (.database-plugin/)
227
+ ```
228
+
229
+ ### 3. MCP-Server starten
230
+
231
+ ```bash
232
+ # MCP-Server starten (für LLM-Agenten)
233
+ noyrax-5d-database-mcp /path/to/workspace
234
+ ```
235
+
236
+ ### 4. LLM-Agent nutzen
237
+
238
+ Der LLM-Agent kann nun:
239
+ - `bootstrap` Tool aufrufen, um System zu verstehen
240
+ - `semantic_discovery` Tool nutzen, um relevante Code-Entitäten zu finden
241
+ - `system_explanation` Tool nutzen, um Entry Points zu finden
242
+ - `learning_path` Tool nutzen, um geführte Lernpfade zu generieren
243
+ - Resources lesen, um auf Datenbanken zuzugreifen
244
+
245
+ ## Troubleshooting
246
+
247
+ ### "docs/ directory not found"
248
+
249
+ **Problem:** Documentation System Plugin wurde nicht ausgeführt.
250
+
251
+ **Lösung:**
252
+ ```bash
253
+ # Schritt 1: Dokumentation generieren
254
+ noyrax-documentation generate /path/to/workspace
255
+ ```
256
+
257
+ ### "No modules found in database"
258
+
259
+ **Problem:** Ingestion wurde nicht ausgeführt.
260
+
261
+ **Lösung:**
262
+ ```bash
263
+ # Schritt 2: Ingestion ausführen
264
+ noyrax-5d-database ingest /path/to/workspace
265
+ ```
266
+
267
+ ### "MCP Server connection failed"
268
+
269
+ **Problem:** MCP-Server konnte nicht gestartet werden.
270
+
271
+ **Lösung:**
272
+ 1. Prüfe ob beide Plugins installiert sind (Noyrax + 5D Database)
273
+ 2. Prüfe ob `docs/` existiert
274
+ 3. Prüfe ob Ingestion ausgeführt wurde
275
+ 4. Prüfe MCP-Server-Konfiguration in Claude Desktop
276
+
277
+ ### "Permission denied" beim Starten des Servers
278
+
279
+ **Problem:** Node.js-Script ist nicht ausführbar.
280
+
281
+ **Lösung (Linux/macOS):**
282
+ ```bash
283
+ chmod +x out/cli/mcp-server-cli.js
284
+ ```
285
+
286
+ ## Beispiel-Interaktion
287
+
288
+ ### 1. Bootstrap (First Contact)
289
+
290
+ **LLM-Agent fragt:**
291
+ ```json
292
+ {
293
+ "method": "tools/call",
294
+ "params": {
295
+ "name": "bootstrap",
296
+ "arguments": {
297
+ "pluginId": "a1b2c3d4e5f6g7h8"
298
+ }
299
+ }
300
+ }
301
+ ```
302
+
303
+ **Server antwortet:**
304
+ ```json
305
+ {
306
+ "content": [{
307
+ "type": "text",
308
+ "text": "{\"what_am_i\": \"...\", \"where_to_start\": [...], ...}"
309
+ }]
310
+ }
311
+ ```
312
+
313
+ ### 2. Semantic Discovery
314
+
315
+ **LLM-Agent fragt:**
316
+ ```json
317
+ {
318
+ "method": "tools/call",
319
+ "params": {
320
+ "name": "semantic_discovery",
321
+ "arguments": {
322
+ "query": "How does ingestion work?",
323
+ "pluginId": "a1b2c3d4e5f6g7h8",
324
+ "limit": 10
325
+ }
326
+ }
327
+ }
328
+ ```
329
+
330
+ **Server antwortet:**
331
+ ```json
332
+ {
333
+ "content": [{
334
+ "type": "text",
335
+ "text": "{\"entities\": [...], \"context\": {...}}"
336
+ }]
337
+ }
338
+ ```
339
+
340
+ ## CLI-Tools vs. MCP-Server
341
+
342
+ **MCP-Server** ist für externe LLM-Agenten gedacht, die keine direkte Codebase-Zugriff haben (z.B. Claude Desktop).
343
+
344
+ **CLI-Tools** sind für AI-Agenten gedacht, die direkten Codebase-Zugriff haben (z.B. Cursor AI):
345
+
346
+ - `noyrax-5d-database-query` - Direkte Datenbank-Queries
347
+ - `noyrax-5d-database-tool` - MCP-Tools direkt nutzen
348
+ - `noyrax-5d-database-search` - Semantic Search direkt
349
+
350
+ **Vorteile CLI-Tools:**
351
+ - Schneller (kein JSON-RPC-Overhead)
352
+ - Einfacher zu nutzen (direkter API-Zugriff)
353
+ - Kein Server-Prozess nötig
354
+
355
+ **Wann MCP-Server nutzen:**
356
+ - Externe LLM-Agenten (Claude Desktop, etc.)
357
+ - Standardisiertes Protokoll (JSON-RPC 2.0)
358
+ - Tool-Integration in Agent-UIs
359
+
360
+ ## Weitere Informationen
361
+
362
+ - Siehe `SETUP_NEW_PROJECT.md` für vollständigen Setup-Workflow
363
+ - Siehe `README.md` für allgemeine Plugin-Dokumentation
364
+ - Siehe ADR-007 für MCP-Server-Architektur-Details
365
+ - Siehe ADR-028 für Semantic Brain MCP-Tools
366
+ - Siehe ADR-033 für MCP-Server CLI-Integration und System-Kopplung
367
+ - Siehe ADR-034 für Gap Analysis Tool
368
+ - Siehe ADR-035 für Architecture Mining Tool
369
+
370
+ **Hinweis:** Die Tools `gap_analysis` und `architecture_mining` sind ab Version 0.1.8 verfügbar.
371
+