cwtools-mcp 0.4.0 → 0.5.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.
package/README.md CHANGED
@@ -145,26 +145,11 @@ using the active extension host's loaded state.
145
145
 
146
146
  ### Tools
147
147
 
148
- The MCP surface exposes generated CWTools semantic tools plus six whitelisted
149
- domain-write tools by default. The legacy `--enable-writes` /
150
- `--allow-domain-writes` flags remain accepted but are no longer required.
151
-
152
- - `query_types`
153
- - `query_rules`
154
- - `query_scope`
155
- - `get_diagnostics`
156
- - `explore_pdx_project` for a bounded live semantic graph with dependency edges and freshness
157
- - `query_workspace_index`
158
- - `query_localisation_index`
159
- - `get_pdx_block`
160
- - completion, document/workspace symbols, definition and reference lookup
161
- - deep semantic queries for scripted effects/triggers, enums, static modifiers,
162
- variables, and entity info
163
-
164
- Default domain writes are `write_localisation`, `typed_pdx_write`,
165
- `candidate_transaction`, `convert_image_to_dds`, `convert_audio`, and
166
- `deploy_mod_asset`. Existing path containment, locks, and validation prechecks still
167
- apply; non-whitelisted writes remain unavailable. Re-run diagnostics after writes.
148
+ The shared catalog covers CWTools semantic, project graph, localisation, asset, scope, Archetype, navigation, diagnostic, and Shader queries. `initialize_project` creates or incrementally refreshes the V4 profile and V7 SQLite knowledge pack in both Bridge and Standalone modes.
149
+
150
+ Default whitelisted write/initialization tools are `write_localisation`, `typed_pdx_write`, `candidate_transaction`, `convert_image_to_dds`, `convert_audio`, `deploy_mod_asset`, `remove_ignored_diagnostic`, and `initialize_project`. Existing path containment, locks, binary-safe asset deployment, cancellation, and validation prechecks apply. The legacy `--enable-writes` / `--allow-domain-writes` flags remain accepted but are no longer required.
151
+
152
+ `get_ide_context`, `open_in_visual_editor`, and `capture_gui_preview` are disclosed only when a real editor host supports them. Standalone mode does not advertise these IDE-only operations.
168
153
 
169
154
  ---
170
155
 
@@ -184,7 +169,7 @@ bridge,并复用该宿主中的:
184
169
  - 当前工作区根目录;
185
170
  - IDE Problems 面板诊断;
186
171
  - rules/cache/localisation/用户设置;
187
- - 共享索引和 AI 只读工具。
172
+ - 共享索引和语义工具。
188
173
 
189
174
  这样可以降低内存占用,并让 MCP 诊断数量与 IDE 保持一致。
190
175
 
@@ -300,20 +285,8 @@ cwtools-mcp --standalone --workspace /path/to/mod --game stellaris --rules "/pat
300
285
 
301
286
  ### 工具
302
287
 
303
- MCP 入口默认提供生成的 CWTools 语义工具和六个白名单领域写入工具。
304
- 兼容参数 `--enable-writes` / `--allow-domain-writes` 仍可使用,但不再是启用前提。
305
-
306
- - `query_types`
307
- - `query_rules`
308
- - `query_scope`
309
- - `get_diagnostics`
310
- - `explore_pdx_project`:返回带依赖边与 freshness 的有界 live 语义图
311
- - `query_workspace_index`
312
- - `query_localisation_index`
313
- - `get_pdx_block`
314
- - 补全、document/workspace symbols、定义和引用查询
315
- - scripted effects/triggers、enums、static modifiers、variables、entity info 等深层语义查询
316
-
317
- 默认写入工具为 `write_localisation`、`typed_pdx_write`、`candidate_transaction`、
318
- `convert_image_to_dds`、`convert_audio` 和 `deploy_mod_asset`。既有路径包含性、
319
- 锁和写入预检仍然生效,非白名单写入继续拒绝。写入后应重新调用诊断。
288
+ 共享目录覆盖 CWTools 语义、项目图、本地化、资产、作用域、Archetype、导航、诊断与 Shader 查询。`initialize_project` 在 Bridge 与 Standalone 中均可创建或增量刷新 V4 画像和 V7 SQLite 知识库。
289
+
290
+ 默认白名单写入/初始化工具包括 `write_localisation`、`typed_pdx_write`、`candidate_transaction`、`convert_image_to_dds`、`convert_audio`、`deploy_mod_asset`、`remove_ignored_diagnostic` 与 `initialize_project`。既有路径包含、锁、二进制资产安全复制、取消与写入预检继续生效。兼容参数 `--enable-writes` / `--allow-domain-writes` 仍接受,但不再是前提。
291
+
292
+ `get_ide_context`、`open_in_visual_editor` 与 `capture_gui_preview` 只在真实编辑器宿主支持时披露;Standalone 不广告这些 IDE 专属操作。