@okfit/mcp 0.3.3 → 0.3.5
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 +2 -0
- package/package.json +4 -4
- package/tools/validateBundle.js +5 -1
- package/version.js +1 -1
package/index.d.ts
CHANGED
|
@@ -552,6 +552,7 @@ export declare const OkfitToolkit: Toolkit.Toolkit<{
|
|
|
552
552
|
readonly success: import("effect/Schema").Struct<{
|
|
553
553
|
readonly schema: import("effect/Schema").Literal<1>;
|
|
554
554
|
readonly okfit_version: import("effect/Schema").String;
|
|
555
|
+
readonly producer: import("effect/Schema").String;
|
|
555
556
|
readonly okf_version: import("effect/Schema").String;
|
|
556
557
|
readonly root: import("effect/Schema").String;
|
|
557
558
|
readonly profile: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
@@ -729,6 +730,7 @@ export declare const ToolsLayer: (projectRoot: string) => import("effect/Layer")
|
|
|
729
730
|
readonly success: import("effect/Schema").Struct<{
|
|
730
731
|
readonly schema: import("effect/Schema").Literal<1>;
|
|
731
732
|
readonly okfit_version: import("effect/Schema").String;
|
|
733
|
+
readonly producer: import("effect/Schema").String;
|
|
732
734
|
readonly okf_version: import("effect/Schema").String;
|
|
733
735
|
readonly root: import("effect/Schema").String;
|
|
734
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.5",
|
|
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": [
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"@effect/platform-node": "4.0.0-rc.115",
|
|
48
48
|
"@effected/git": "^0.15.1",
|
|
49
49
|
"@effected/xdg": "^0.5.1",
|
|
50
|
-
"@okfit/core": "0.4.
|
|
51
|
-
"@okfit/engine": "0.
|
|
52
|
-
"@okfit/profiles": "0.
|
|
50
|
+
"@okfit/core": "0.4.1",
|
|
51
|
+
"@okfit/engine": "0.4.1",
|
|
52
|
+
"@okfit/profiles": "0.6.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, {
|