@okfit/mcp 0.3.2 → 0.3.4
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/index.d.ts +35 -0
- package/package.json +6 -6
- package/tools/validateBundle.js +5 -1
- package/version.js +1 -1
package/index.d.ts
CHANGED
|
@@ -215,6 +215,17 @@ export declare const DescribeVocabularySuccess: Schema.Struct<{
|
|
|
215
215
|
readonly name: Schema.String;
|
|
216
216
|
readonly description: Schema.NullOr<Schema.String>;
|
|
217
217
|
readonly guidance: Schema.NullOr<Schema.String>;
|
|
218
|
+
readonly required: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
219
|
+
readonly require_verified: Schema.NullOr<Schema.Boolean>;
|
|
220
|
+
readonly fields: Schema.$Array<Schema.Struct<{
|
|
221
|
+
readonly name: Schema.String;
|
|
222
|
+
readonly description: Schema.String;
|
|
223
|
+
readonly kind: Schema.NullOr<Schema.Literal<"path">>;
|
|
224
|
+
readonly values: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
225
|
+
readonly name: Schema.String;
|
|
226
|
+
readonly description: Schema.String;
|
|
227
|
+
}>>>;
|
|
228
|
+
}>>;
|
|
218
229
|
}>>;
|
|
219
230
|
readonly tags: Schema.$Array<Schema.Struct<{
|
|
220
231
|
readonly name: Schema.String;
|
|
@@ -444,6 +455,17 @@ export declare const OkfitToolkit: Toolkit.Toolkit<{
|
|
|
444
455
|
readonly name: import("effect/Schema").String;
|
|
445
456
|
readonly description: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
446
457
|
readonly guidance: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
458
|
+
readonly required: import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
459
|
+
readonly require_verified: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
460
|
+
readonly fields: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
461
|
+
readonly name: import("effect/Schema").String;
|
|
462
|
+
readonly description: import("effect/Schema").String;
|
|
463
|
+
readonly kind: import("effect/Schema").NullOr<import("effect/Schema").Literal<"path">>;
|
|
464
|
+
readonly values: import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
465
|
+
readonly name: import("effect/Schema").String;
|
|
466
|
+
readonly description: import("effect/Schema").String;
|
|
467
|
+
}>>>;
|
|
468
|
+
}>>;
|
|
447
469
|
}>>;
|
|
448
470
|
readonly tags: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
449
471
|
readonly name: import("effect/Schema").String;
|
|
@@ -530,6 +552,7 @@ export declare const OkfitToolkit: Toolkit.Toolkit<{
|
|
|
530
552
|
readonly success: import("effect/Schema").Struct<{
|
|
531
553
|
readonly schema: import("effect/Schema").Literal<1>;
|
|
532
554
|
readonly okfit_version: import("effect/Schema").String;
|
|
555
|
+
readonly producer: import("effect/Schema").String;
|
|
533
556
|
readonly okf_version: import("effect/Schema").String;
|
|
534
557
|
readonly root: import("effect/Schema").String;
|
|
535
558
|
readonly profile: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
@@ -610,6 +633,17 @@ export declare const ToolsLayer: (projectRoot: string) => import("effect/Layer")
|
|
|
610
633
|
readonly name: import("effect/Schema").String;
|
|
611
634
|
readonly description: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
612
635
|
readonly guidance: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
636
|
+
readonly required: import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
637
|
+
readonly require_verified: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
638
|
+
readonly fields: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
639
|
+
readonly name: import("effect/Schema").String;
|
|
640
|
+
readonly description: import("effect/Schema").String;
|
|
641
|
+
readonly kind: import("effect/Schema").NullOr<import("effect/Schema").Literal<"path">>;
|
|
642
|
+
readonly values: import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
643
|
+
readonly name: import("effect/Schema").String;
|
|
644
|
+
readonly description: import("effect/Schema").String;
|
|
645
|
+
}>>>;
|
|
646
|
+
}>>;
|
|
613
647
|
}>>;
|
|
614
648
|
readonly tags: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
615
649
|
readonly name: import("effect/Schema").String;
|
|
@@ -696,6 +730,7 @@ export declare const ToolsLayer: (projectRoot: string) => import("effect/Layer")
|
|
|
696
730
|
readonly success: import("effect/Schema").Struct<{
|
|
697
731
|
readonly schema: import("effect/Schema").Literal<1>;
|
|
698
732
|
readonly okfit_version: import("effect/Schema").String;
|
|
733
|
+
readonly producer: import("effect/Schema").String;
|
|
699
734
|
readonly okf_version: import("effect/Schema").String;
|
|
700
735
|
readonly root: import("effect/Schema").String;
|
|
701
736
|
readonly profile: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okfit/mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Model Context Protocol server for okfit: query and understand Open Knowledge Format (OKF) bundles from an agent.",
|
|
6
6
|
"keywords": [
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@effect/platform-node": "4.0.0-rc.115",
|
|
48
|
-
"@effected/git": "^0.15.
|
|
49
|
-
"@effected/xdg": "^0.5.
|
|
50
|
-
"@okfit/core": "0.
|
|
51
|
-
"@okfit/engine": "0.
|
|
52
|
-
"@okfit/profiles": "0.
|
|
48
|
+
"@effected/git": "^0.15.1",
|
|
49
|
+
"@effected/xdg": "^0.5.1",
|
|
50
|
+
"@okfit/core": "0.4.1",
|
|
51
|
+
"@okfit/engine": "0.4.0",
|
|
52
|
+
"@okfit/profiles": "0.5.0",
|
|
53
53
|
"effect": "4.0.0-rc.115"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
package/tools/validateBundle.js
CHANGED
|
@@ -58,7 +58,10 @@ const validateBundle = Tool.make("validate_bundle", {
|
|
|
58
58
|
* convention for an exit-3 infrastructure failure, and here that failure is
|
|
59
59
|
* a typed `McpToolError` instead, so `forDiagnostics`' `0 | 1 | 2` result is
|
|
60
60
|
* always reachable. `okfitVersion` is `MCP_VERSION`, not `CLI_VERSION`
|
|
61
|
-
* (J-2): the field names the package that produced the report
|
|
61
|
+
* (J-2): the field names the package that produced the report, and
|
|
62
|
+
* `producer` says which package that is so a reader comparing this report
|
|
63
|
+
* with `okfit validate --format json` does not read the two versions as
|
|
64
|
+
* drift (okfit #75).
|
|
62
65
|
*
|
|
63
66
|
* @public
|
|
64
67
|
*/
|
|
@@ -82,6 +85,7 @@ const handleValidateBundle = (projectRoot, params) => Effect.gen(function* () {
|
|
|
82
85
|
const code = forDiagnostics(diagnostics);
|
|
83
86
|
return json({
|
|
84
87
|
okfitVersion: MCP_VERSION,
|
|
88
|
+
producer: "@okfit/mcp",
|
|
85
89
|
okfVersion: resolved.config.okf_version ?? OKF_SPEC_VERSION,
|
|
86
90
|
root: resolved.bundleRoot,
|
|
87
91
|
profile: Option.match(resolved.profile, {
|