@openfairygui/mcp 0.3.1 → 0.4.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.
package/README.md CHANGED
@@ -13,7 +13,9 @@ It maps the backend P2 runtime surface into MCP tools:
13
13
  - `openProjectSession`
14
14
  - `getSession`
15
15
  - `getProjectOutline`
16
+ - `queryEntity`
16
17
  - `validateSession`
18
+ - `preflightTransaction`
17
19
  - `applyTransaction`
18
20
  - `saveSession`
19
21
  - `materializeSession`
@@ -25,13 +27,15 @@ It maps the backend P2 runtime surface into MCP tools:
25
27
  - `getCacheSnapshot`
26
28
  - `refreshCache`
27
29
 
28
- Each tool exposes a shared output schema for `structuredContent.backendResult`, preserving the backend envelope shape:
30
+ Each tool exposes a method-specific output schema for `structuredContent.backendResult`, preserving the backend envelope shape:
29
31
 
30
32
  - `ok`
31
33
  - `data?`
32
34
  - `error?`
33
35
  - `meta?`
34
36
 
37
+ The factory advertises the fixed 18-method Backend catalog. Input/output schemas come from the canonical installed contract; discovery uses self-contained draft-07 `definitions`/`$ref` to reuse repeated structures without loosening the 41-operation union, call validators or input budgets. Installed operation documentation remains available through `openfairygui://contracts/operations` and `openfairygui://docs/index`.
38
+
35
39
  P1 also registers MCP-native ergonomics around the same backend surface:
36
40
 
37
41
  - read-only resources for identity snapshots:
package/dist/index.cjs CHANGED
@@ -1,13 +1,37 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_stdio = require("./stdio-N6Yxacus.cjs");
2
+ const require_stdio = require("./stdio-B0OU-oZC.cjs");
3
+ let _openfairygui_backend_docs = require("@openfairygui/backend/docs");
3
4
  exports.OPENFAIRYGUI_BACKEND_CAPABILITIES_RESOURCE_URI = require_stdio.OPENFAIRYGUI_BACKEND_CAPABILITIES_RESOURCE_URI;
4
5
  exports.OPENFAIRYGUI_BACKEND_PROMPT_DEFINITIONS = require_stdio.OPENFAIRYGUI_BACKEND_PROMPT_DEFINITIONS;
5
6
  exports.OPENFAIRYGUI_BACKEND_PROMPT_NAMES = require_stdio.OPENFAIRYGUI_BACKEND_PROMPT_NAMES;
6
7
  exports.OPENFAIRYGUI_BACKEND_RESOURCE_TEMPLATES = require_stdio.OPENFAIRYGUI_BACKEND_RESOURCE_TEMPLATES;
7
8
  exports.OPENFAIRYGUI_BACKEND_TOOL_DEFINITIONS = require_stdio.OPENFAIRYGUI_BACKEND_TOOL_DEFINITIONS;
8
9
  exports.OPENFAIRYGUI_BACKEND_TOOL_NAMES = require_stdio.OPENFAIRYGUI_BACKEND_TOOL_NAMES;
9
- exports.OPENFAIRYGUI_BACKEND_TOOL_OUTPUT_SCHEMA = require_stdio.OPENFAIRYGUI_BACKEND_TOOL_OUTPUT_SCHEMA;
10
10
  exports.OPENFAIRYGUI_BACKEND_TOOL_PREFIX = require_stdio.OPENFAIRYGUI_BACKEND_TOOL_PREFIX;
11
+ Object.defineProperty(exports, "OPENFAIRYGUI_OPERATION_CATALOG_URI", {
12
+ enumerable: true,
13
+ get: function() {
14
+ return _openfairygui_backend_docs.OPENFAIRYGUI_OPERATION_CATALOG_URI;
15
+ }
16
+ });
17
+ Object.defineProperty(exports, "OPENFAIRYGUI_OPERATION_SCHEMA_TEMPLATE", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return _openfairygui_backend_docs.OPENFAIRYGUI_OPERATION_SCHEMA_TEMPLATE;
21
+ }
22
+ });
11
23
  exports.callOpenFairyGuiBackendTool = require_stdio.callOpenFairyGuiBackendTool;
12
24
  exports.connectOpenFairyGuiMcpStdio = require_stdio.connectOpenFairyGuiMcpStdio;
13
25
  exports.createOpenFairyGuiMcpServer = require_stdio.createOpenFairyGuiMcpServer;
26
+ Object.defineProperty(exports, "getOpenFairyGuiOperationCatalog", {
27
+ enumerable: true,
28
+ get: function() {
29
+ return _openfairygui_backend_docs.getOpenFairyGuiOperationCatalog;
30
+ }
31
+ });
32
+ Object.defineProperty(exports, "getOpenFairyGuiOperationSchema", {
33
+ enumerable: true,
34
+ get: function() {
35
+ return _openfairygui_backend_docs.getOpenFairyGuiOperationSchema;
36
+ }
37
+ });