@okfit/mcp 0.11.0 → 0.12.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 +1 -1
- package/errors.js +3 -3
- package/index.d.ts +16 -16
- package/index.js +2 -2
- package/internal/conceptNotFound.js +1 -1
- package/internal/projectRoot.js +2 -2
- package/internal/resolveNow.js +1 -1
- package/internal/toolContext.js +2 -2
- package/internal/toolSignals.js +2 -2
- package/main.d.ts +1 -1
- package/main.js +2 -2
- package/package.json +19 -19
- package/schema/tools.js +1 -1
- package/server.js +7 -3
- package/tools/conceptNeighbors.js +3 -3
- package/tools/getConcept.js +3 -3
- package/tools/listConcepts.js +4 -4
- package/tools/staleReport.js +2 -2
- package/tools/validateBundle.js +2 -2
- package/tsdoc-metadata.json +1 -1
- package/version.js +1 -1
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ An id that names no concept is not a failed call. `get_concept` and
|
|
|
66
66
|
|
|
67
67
|
Every other failing tool call reaches the client as `isError: true`, with
|
|
68
68
|
the remediation text folded directly into the message and no structured
|
|
69
|
-
error field. `McpToolError` is `@effected/mcp`'s `ToolRefusal`: config
|
|
69
|
+
error field. `McpToolError` is `@effected/mcp-kit`'s `ToolRefusal`: config
|
|
70
70
|
failures, an unreadable bundle root, an undeclared type or tag, and an
|
|
71
71
|
invalid argument all refuse with a message that names the problem and
|
|
72
72
|
what to do next.
|
package/errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Remediation } from "@effected/
|
|
2
|
-
import { ToolRefusal } from "@effected/mcp";
|
|
1
|
+
import { Remediation } from "@effected/kit";
|
|
2
|
+
import { ToolRefusal } from "@effected/mcp-kit";
|
|
3
3
|
|
|
4
4
|
// src/errors.ts
|
|
5
5
|
/**
|
|
6
6
|
* The one failure schema every tool declares (N-14): `ToolRefusal` from
|
|
7
|
-
* `@effected/mcp`.
|
|
7
|
+
* `@effected/mcp-kit`.
|
|
8
8
|
*
|
|
9
9
|
* @remarks
|
|
10
10
|
* Replaces five bespoke tagged errors. Under `failureMode: "error"` a declared
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Remediation } from "@effected/
|
|
2
|
-
import { ToolRefusal } from "@effected/mcp";
|
|
1
|
+
import { Remediation } from "@effected/kit";
|
|
2
|
+
import { ToolRefusal } from "@effected/mcp-kit";
|
|
3
3
|
import { AppDirs, Xdg } from "@effected/xdg";
|
|
4
4
|
import { FileSystem, Layer, Path, Schema, Scope, Stdio } from "effect";
|
|
5
5
|
import { McpServer, Toolkit } from "effect/ai";
|
|
@@ -10,7 +10,7 @@ import { Git } from "@effected/git";
|
|
|
10
10
|
import { GitHistory } from "@okfit/profiles";
|
|
11
11
|
/**
|
|
12
12
|
* The one failure schema every tool declares (N-14): `ToolRefusal` from
|
|
13
|
-
* `@effected/mcp`.
|
|
13
|
+
* `@effected/mcp-kit`.
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
16
|
* Replaces five bespoke tagged errors. Under `failureMode: "error"` a declared
|
|
@@ -522,7 +522,7 @@ export declare const SERVER_INSTRUCTIONS: string;
|
|
|
522
522
|
* The whole server as one layer: the toolkit, one static resource per
|
|
523
523
|
* concept (`okf://concept/<id>`, built once at boot — see
|
|
524
524
|
* {@link ConceptResources}), and `okf://index` (re-read from disk on every
|
|
525
|
-
* call), over `@effected/mcp`'s `McpStdio.layer`.
|
|
525
|
+
* call), over `@effected/mcp-kit`'s `McpStdio.layer`.
|
|
526
526
|
*
|
|
527
527
|
* `McpStdio.layer` (not core's own `McpServer.layerStdio`, hand-wired) is
|
|
528
528
|
* load-bearing, not a style choice: it wraps core's stdin decoder with a
|
|
@@ -620,7 +620,7 @@ export declare const OkfitToolkit: Toolkit.Toolkit<{
|
|
|
620
620
|
readonly reason: import("effect/Schema").Literals<readonly ["empty-id", "not-a-concept"]>;
|
|
621
621
|
}>]>;
|
|
622
622
|
}>]>;
|
|
623
|
-
readonly failure: typeof import("@effected/mcp").ToolRefusal;
|
|
623
|
+
readonly failure: typeof import("@effected/mcp-kit").ToolRefusal;
|
|
624
624
|
readonly failureMode: "error";
|
|
625
625
|
}, never>;
|
|
626
626
|
readonly describe_vocabulary: import("effect/ai/Tool").Tool<"describe_vocabulary", {
|
|
@@ -673,7 +673,7 @@ export declare const OkfitToolkit: Toolkit.Toolkit<{
|
|
|
673
673
|
}>>;
|
|
674
674
|
}>>;
|
|
675
675
|
}>;
|
|
676
|
-
readonly failure: typeof import("@effected/mcp").ToolRefusal;
|
|
676
|
+
readonly failure: typeof import("@effected/mcp-kit").ToolRefusal;
|
|
677
677
|
readonly failureMode: "error";
|
|
678
678
|
}, never>;
|
|
679
679
|
readonly get_concept: import("effect/ai/Tool").Tool<"get_concept", {
|
|
@@ -721,7 +721,7 @@ export declare const OkfitToolkit: Toolkit.Toolkit<{
|
|
|
721
721
|
readonly reason: import("effect/Schema").Literals<readonly ["empty-id", "not-a-concept"]>;
|
|
722
722
|
}>]>;
|
|
723
723
|
}>]>;
|
|
724
|
-
readonly failure: typeof import("@effected/mcp").ToolRefusal;
|
|
724
|
+
readonly failure: typeof import("@effected/mcp-kit").ToolRefusal;
|
|
725
725
|
readonly failureMode: "error";
|
|
726
726
|
}, never>;
|
|
727
727
|
readonly list_concepts: import("effect/ai/Tool").Tool<"list_concepts", {
|
|
@@ -751,7 +751,7 @@ export declare const OkfitToolkit: Toolkit.Toolkit<{
|
|
|
751
751
|
}>>;
|
|
752
752
|
readonly total: import("effect/Schema").Int;
|
|
753
753
|
}>;
|
|
754
|
-
readonly failure: typeof import("@effected/mcp").ToolRefusal;
|
|
754
|
+
readonly failure: typeof import("@effected/mcp-kit").ToolRefusal;
|
|
755
755
|
readonly failureMode: "error";
|
|
756
756
|
}, never>;
|
|
757
757
|
readonly stale_report: import("effect/ai/Tool").Tool<"stale_report", {
|
|
@@ -794,7 +794,7 @@ export declare const OkfitToolkit: Toolkit.Toolkit<{
|
|
|
794
794
|
readonly edited_at: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
795
795
|
}>>;
|
|
796
796
|
}>;
|
|
797
|
-
readonly failure: typeof import("@effected/mcp").ToolRefusal;
|
|
797
|
+
readonly failure: typeof import("@effected/mcp-kit").ToolRefusal;
|
|
798
798
|
readonly failureMode: "error";
|
|
799
799
|
}, never>;
|
|
800
800
|
readonly validate_bundle: import("effect/ai/Tool").Tool<"validate_bundle", {
|
|
@@ -835,7 +835,7 @@ export declare const OkfitToolkit: Toolkit.Toolkit<{
|
|
|
835
835
|
readonly range: import("effect/Schema").optionalKey<typeof import("@okfit/core").DiagnosticRange>;
|
|
836
836
|
}>>;
|
|
837
837
|
}>;
|
|
838
|
-
readonly failure: typeof import("@effected/mcp").ToolRefusal;
|
|
838
|
+
readonly failure: typeof import("@effected/mcp-kit").ToolRefusal;
|
|
839
839
|
readonly failureMode: "error";
|
|
840
840
|
}, never>;
|
|
841
841
|
}>;
|
|
@@ -918,7 +918,7 @@ export declare const ToolsLayer: (projectRoot: string, distribution?: Distributi
|
|
|
918
918
|
readonly reason: import("effect/Schema").Literals<readonly ["empty-id", "not-a-concept"]>;
|
|
919
919
|
}>]>;
|
|
920
920
|
}>]>;
|
|
921
|
-
readonly failure: typeof import("@effected/mcp").ToolRefusal;
|
|
921
|
+
readonly failure: typeof import("@effected/mcp-kit").ToolRefusal;
|
|
922
922
|
readonly failureMode: "error";
|
|
923
923
|
}, never>;
|
|
924
924
|
readonly describe_vocabulary: import("effect/ai/Tool").Tool<"describe_vocabulary", {
|
|
@@ -971,7 +971,7 @@ export declare const ToolsLayer: (projectRoot: string, distribution?: Distributi
|
|
|
971
971
|
}>>;
|
|
972
972
|
}>>;
|
|
973
973
|
}>;
|
|
974
|
-
readonly failure: typeof import("@effected/mcp").ToolRefusal;
|
|
974
|
+
readonly failure: typeof import("@effected/mcp-kit").ToolRefusal;
|
|
975
975
|
readonly failureMode: "error";
|
|
976
976
|
}, never>;
|
|
977
977
|
readonly get_concept: import("effect/ai/Tool").Tool<"get_concept", {
|
|
@@ -1019,7 +1019,7 @@ export declare const ToolsLayer: (projectRoot: string, distribution?: Distributi
|
|
|
1019
1019
|
readonly reason: import("effect/Schema").Literals<readonly ["empty-id", "not-a-concept"]>;
|
|
1020
1020
|
}>]>;
|
|
1021
1021
|
}>]>;
|
|
1022
|
-
readonly failure: typeof import("@effected/mcp").ToolRefusal;
|
|
1022
|
+
readonly failure: typeof import("@effected/mcp-kit").ToolRefusal;
|
|
1023
1023
|
readonly failureMode: "error";
|
|
1024
1024
|
}, never>;
|
|
1025
1025
|
readonly list_concepts: import("effect/ai/Tool").Tool<"list_concepts", {
|
|
@@ -1049,7 +1049,7 @@ export declare const ToolsLayer: (projectRoot: string, distribution?: Distributi
|
|
|
1049
1049
|
}>>;
|
|
1050
1050
|
readonly total: import("effect/Schema").Int;
|
|
1051
1051
|
}>;
|
|
1052
|
-
readonly failure: typeof import("@effected/mcp").ToolRefusal;
|
|
1052
|
+
readonly failure: typeof import("@effected/mcp-kit").ToolRefusal;
|
|
1053
1053
|
readonly failureMode: "error";
|
|
1054
1054
|
}, never>;
|
|
1055
1055
|
readonly stale_report: import("effect/ai/Tool").Tool<"stale_report", {
|
|
@@ -1092,7 +1092,7 @@ export declare const ToolsLayer: (projectRoot: string, distribution?: Distributi
|
|
|
1092
1092
|
readonly edited_at: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1093
1093
|
}>>;
|
|
1094
1094
|
}>;
|
|
1095
|
-
readonly failure: typeof import("@effected/mcp").ToolRefusal;
|
|
1095
|
+
readonly failure: typeof import("@effected/mcp-kit").ToolRefusal;
|
|
1096
1096
|
readonly failureMode: "error";
|
|
1097
1097
|
}, never>;
|
|
1098
1098
|
readonly validate_bundle: import("effect/ai/Tool").Tool<"validate_bundle", {
|
|
@@ -1133,7 +1133,7 @@ export declare const ToolsLayer: (projectRoot: string, distribution?: Distributi
|
|
|
1133
1133
|
readonly range: import("effect/Schema").optionalKey<typeof import("@okfit/core").DiagnosticRange>;
|
|
1134
1134
|
}>>;
|
|
1135
1135
|
}>;
|
|
1136
|
-
readonly failure: typeof import("@effected/mcp").ToolRefusal;
|
|
1136
|
+
readonly failure: typeof import("@effected/mcp-kit").ToolRefusal;
|
|
1137
1137
|
readonly failureMode: "error";
|
|
1138
1138
|
}, never>;
|
|
1139
1139
|
}>, never, ToolServices>;
|
package/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { ConceptResources } from "./resources/conceptResource.js";
|
|
|
3
3
|
import { IndexResource } from "./resources/indexResource.js";
|
|
4
4
|
import { ConceptSummary, toConceptSummary } from "./schema/ConceptSummary.js";
|
|
5
5
|
import { ConceptNeighborsFound, ConceptNeighborsSuccess, ConceptNotFound, DescribeVocabularySuccess, DocsPreset, DocsPresetSurface, GetConceptFound, GetConceptSuccess, ListConceptsParams, ListConceptsSuccess, Neighbor, StaleReportParams, StaleReportSuccess, ValidateBundleParams } from "./schema/tools.js";
|
|
6
|
-
import { MCP_VERSION } from "./version.js";
|
|
7
|
-
import { OkfitToolkit, ToolsLayer } from "./toolkit.js";
|
|
8
6
|
import { SERVER_INSTRUCTIONS, ServerLayer } from "./server.js";
|
|
7
|
+
import { OkfitToolkit, ToolsLayer } from "./toolkit.js";
|
|
8
|
+
import { MCP_VERSION } from "./version.js";
|
|
9
9
|
|
|
10
10
|
export { ConceptNeighborsFound, ConceptNeighborsSuccess, ConceptNotFound, ConceptResources, ConceptSummary, DescribeVocabularySuccess, DocsPreset, DocsPresetSurface, GetConceptFound, GetConceptSuccess, IndexResource, ListConceptsParams, ListConceptsSuccess, MCP_VERSION, McpToolError, Neighbor, OkfitToolkit, Remediation, SERVER_INSTRUCTIONS, ServerLayer, StaleReportParams, StaleReportSuccess, ToolsLayer, ValidateBundleParams, toConceptSummary };
|
package/internal/projectRoot.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LaunchContext } from "@effected/
|
|
1
|
+
import { LaunchContext } from "@effected/kit";
|
|
2
2
|
|
|
3
3
|
// src/internal/projectRoot.ts
|
|
4
4
|
/**
|
|
@@ -8,7 +8,7 @@ import { LaunchContext } from "@effected/engine";
|
|
|
8
8
|
* passed down as plain values (`main.ts` is the only place this package
|
|
9
9
|
* reads `process`).
|
|
10
10
|
*
|
|
11
|
-
* Built on `@effected/
|
|
11
|
+
* Built on `@effected/kit`'s `LaunchContext.projectDir` with an empty
|
|
12
12
|
* `argv`: this server has no command parser and `start-mcp.sh` forwards no
|
|
13
13
|
* positional arguments, so the only candidates are the two env keys and the
|
|
14
14
|
* cwd fallback. `LaunchContext.projectDir` additionally treats a value
|
package/internal/resolveNow.js
CHANGED
package/internal/toolContext.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ErrorText } from "@effected/
|
|
2
|
-
import { ToolRefusal } from "@effected/mcp";
|
|
1
|
+
import { ErrorText } from "@effected/kit";
|
|
2
|
+
import { ToolRefusal } from "@effected/mcp-kit";
|
|
3
3
|
import { Bundle } from "@okfit/core";
|
|
4
4
|
import { Effect, Option } from "effect";
|
|
5
5
|
import { provideConfig, resolveProjectConfig } from "@okfit/engine";
|
package/internal/toolSignals.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ErrorText } from "@effected/
|
|
2
|
-
import { ToolRefusal } from "@effected/mcp";
|
|
1
|
+
import { ErrorText } from "@effected/kit";
|
|
2
|
+
import { ToolRefusal } from "@effected/mcp-kit";
|
|
3
3
|
import { Effect } from "effect";
|
|
4
4
|
import { Trust } from "@okfit/profiles";
|
|
5
5
|
|
package/main.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface MainOptions {
|
|
|
13
13
|
/**
|
|
14
14
|
* Run the okfit MCP server over stdio. Owns the process.
|
|
15
15
|
*
|
|
16
|
-
* `McpGuard.run` (`@effected/mcp/guard`, itself free of static runtime
|
|
16
|
+
* `McpGuard.run` (`@effected/mcp-kit/guard`, itself free of static runtime
|
|
17
17
|
* imports) installs the crash guards before `load` evaluates the server
|
|
18
18
|
* graph, so a throw during module evaluation is still reported on stderr.
|
|
19
19
|
* This module therefore carries no other static runtime import (`Distribution`
|
package/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { McpGuard } from "@effected/mcp/guard";
|
|
1
|
+
import { McpGuard } from "@effected/mcp-kit/guard";
|
|
2
2
|
|
|
3
3
|
// src/main.ts
|
|
4
4
|
/**
|
|
@@ -9,7 +9,7 @@ import { McpGuard } from "@effected/mcp/guard";
|
|
|
9
9
|
/**
|
|
10
10
|
* Run the okfit MCP server over stdio. Owns the process.
|
|
11
11
|
*
|
|
12
|
-
* `McpGuard.run` (`@effected/mcp/guard`, itself free of static runtime
|
|
12
|
+
* `McpGuard.run` (`@effected/mcp-kit/guard`, itself free of static runtime
|
|
13
13
|
* imports) installs the crash guards before `load` evaluates the server
|
|
14
14
|
* graph, so a throw during module evaluation is still reported on stderr.
|
|
15
15
|
* This module therefore carries no other static runtime import (`Distribution`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okfit/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
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": [
|
|
@@ -44,24 +44,24 @@
|
|
|
44
44
|
"okfit-mcp": "bin/okfit-mcp.js"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@effect/platform-node": "~4.1.
|
|
48
|
-
"@effected/config-file": "^0.
|
|
49
|
-
"@effected/
|
|
50
|
-
"@effected/
|
|
51
|
-
"@effected/
|
|
52
|
-
"@effected/
|
|
53
|
-
"@effected/markdown": "^0.
|
|
54
|
-
"@effected/mcp": "^0.
|
|
55
|
-
"@effected/schemastore": "^0.
|
|
56
|
-
"@effected/source": "^0.
|
|
57
|
-
"@effected/toml": "^0.
|
|
58
|
-
"@effected/walker": "^0.
|
|
59
|
-
"@effected/xdg": "^0.
|
|
60
|
-
"@effected/yaml": "^0.
|
|
61
|
-
"@okfit/core": "0.
|
|
62
|
-
"@okfit/engine": "0.
|
|
63
|
-
"@okfit/profiles": "0.14.
|
|
64
|
-
"effect": "~4.1.
|
|
47
|
+
"@effect/platform-node": "~4.1.2",
|
|
48
|
+
"@effected/config-file": "^0.25.0",
|
|
49
|
+
"@effected/git": "^0.30.0",
|
|
50
|
+
"@effected/glob": "^0.19.0",
|
|
51
|
+
"@effected/jsonc": "^0.24.0",
|
|
52
|
+
"@effected/kit": "^0.13.0",
|
|
53
|
+
"@effected/markdown": "^0.27.0",
|
|
54
|
+
"@effected/mcp-kit": "^0.14.0",
|
|
55
|
+
"@effected/schemastore": "^0.30.0",
|
|
56
|
+
"@effected/source": "^0.4.0",
|
|
57
|
+
"@effected/toml": "^0.19.1",
|
|
58
|
+
"@effected/walker": "^0.25.1",
|
|
59
|
+
"@effected/xdg": "^0.19.1",
|
|
60
|
+
"@effected/yaml": "^0.29.0",
|
|
61
|
+
"@okfit/core": "0.13.0",
|
|
62
|
+
"@okfit/engine": "0.20.0",
|
|
63
|
+
"@okfit/profiles": "0.14.2",
|
|
64
|
+
"effect": "~4.1.2"
|
|
65
65
|
},
|
|
66
66
|
"engines": {
|
|
67
67
|
"node": ">=24.11.0"
|
package/schema/tools.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConceptSummary } from "./ConceptSummary.js";
|
|
2
|
-
import { ToolOutcome } from "@effected/mcp";
|
|
2
|
+
import { ToolOutcome } from "@effected/mcp-kit";
|
|
3
3
|
import { GraphNodeKind, Status } from "@okfit/core";
|
|
4
4
|
import { Schema } from "effect";
|
|
5
5
|
import { ContextTag, ContextType, TrustDrift } from "@okfit/engine";
|
package/server.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ConceptResources } from "./resources/conceptResource.js";
|
|
2
2
|
import { IndexResource } from "./resources/indexResource.js";
|
|
3
|
-
import { MCP_VERSION } from "./version.js";
|
|
4
3
|
import { OkfitToolkit, ToolsLayer } from "./toolkit.js";
|
|
5
|
-
import {
|
|
4
|
+
import { MCP_VERSION } from "./version.js";
|
|
5
|
+
import { McpStdio, McpToolkit } from "@effected/mcp-kit";
|
|
6
6
|
import { Layer } from "effect";
|
|
7
7
|
import { McpProtocol } from "effect/ai";
|
|
8
8
|
import { GitHistory } from "@okfit/profiles";
|
|
@@ -39,7 +39,7 @@ const SERVER_INSTRUCTIONS = [
|
|
|
39
39
|
* The whole server as one layer: the toolkit, one static resource per
|
|
40
40
|
* concept (`okf://concept/<id>`, built once at boot — see
|
|
41
41
|
* {@link ConceptResources}), and `okf://index` (re-read from disk on every
|
|
42
|
-
* call), over `@effected/mcp`'s `McpStdio.layer`.
|
|
42
|
+
* call), over `@effected/mcp-kit`'s `McpStdio.layer`.
|
|
43
43
|
*
|
|
44
44
|
* `McpStdio.layer` (not core's own `McpServer.layerStdio`, hand-wired) is
|
|
45
45
|
* load-bearing, not a style choice: it wraps core's stdin decoder with a
|
|
@@ -83,6 +83,10 @@ const ServerLayer = (projectRoot, options = {}) => McpStdio.layer({
|
|
|
83
83
|
McpProtocol.v2025_11_25,
|
|
84
84
|
McpProtocol.v2025_06_18
|
|
85
85
|
],
|
|
86
|
+
cacheHints: { tools: {
|
|
87
|
+
ttl: "1 hour",
|
|
88
|
+
cacheScope: "private"
|
|
89
|
+
} },
|
|
86
90
|
registrations: Layer.mergeAll(McpToolkit.layer(OkfitToolkit).pipe(Layer.provide(ToolsLayer(projectRoot, options.distribution))), ConceptResources(projectRoot), IndexResource(projectRoot)).pipe(Layer.provide(Layer.mergeAll(Git.layer, GitHistory.layer)))
|
|
87
91
|
});
|
|
88
92
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { McpToolError } from "../errors.js";
|
|
2
|
+
import { conceptNotFound } from "../internal/conceptNotFound.js";
|
|
2
3
|
import { loadToolContext } from "../internal/toolContext.js";
|
|
4
|
+
import { toolSignals } from "../internal/toolSignals.js";
|
|
3
5
|
import { toConceptSummary } from "../schema/ConceptSummary.js";
|
|
4
6
|
import { ConceptNeighborsSuccess } from "../schema/tools.js";
|
|
5
|
-
import {
|
|
6
|
-
import { toolSignals } from "../internal/toolSignals.js";
|
|
7
|
-
import { ToolOutcome } from "@effected/mcp";
|
|
7
|
+
import { ToolOutcome } from "@effected/mcp-kit";
|
|
8
8
|
import { DateTime, Effect, Schema } from "effect";
|
|
9
9
|
import { Tool } from "effect/ai";
|
|
10
10
|
import { ConceptQuery, signalFor } from "@okfit/engine";
|
package/tools/getConcept.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { McpToolError } from "../errors.js";
|
|
2
|
-
import { loadToolContext } from "../internal/toolContext.js";
|
|
3
|
-
import { GetConceptSuccess } from "../schema/tools.js";
|
|
4
2
|
import { conceptNotFound } from "../internal/conceptNotFound.js";
|
|
3
|
+
import { loadToolContext } from "../internal/toolContext.js";
|
|
5
4
|
import { toolSignals } from "../internal/toolSignals.js";
|
|
6
|
-
import {
|
|
5
|
+
import { GetConceptSuccess } from "../schema/tools.js";
|
|
6
|
+
import { ToolOutcome } from "@effected/mcp-kit";
|
|
7
7
|
import { Derive } from "@okfit/core";
|
|
8
8
|
import { DateTime, Effect, Schema } from "effect";
|
|
9
9
|
import { Tool } from "effect/ai";
|
package/tools/listConcepts.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { McpToolError } from "../errors.js";
|
|
2
|
+
import { resolveNow } from "../internal/resolveNow.js";
|
|
2
3
|
import { loadToolContext } from "../internal/toolContext.js";
|
|
4
|
+
import { toolSignals } from "../internal/toolSignals.js";
|
|
3
5
|
import { toConceptSummary } from "../schema/ConceptSummary.js";
|
|
4
6
|
import { ListConceptsParams, ListConceptsSuccess } from "../schema/tools.js";
|
|
5
|
-
import {
|
|
6
|
-
import { resolveNow } from "../internal/resolveNow.js";
|
|
7
|
-
import { ToolFailure, ToolRefusal } from "@effected/mcp";
|
|
7
|
+
import { ToolFailure, ToolRefusal } from "@effected/mcp-kit";
|
|
8
8
|
import { Effect } from "effect";
|
|
9
9
|
import { Tool } from "effect/ai";
|
|
10
10
|
import { ConceptQuery, signalFor } from "@okfit/engine";
|
|
@@ -27,7 +27,7 @@ const listConcepts = Tool.make("list_concepts", {
|
|
|
27
27
|
}).annotate(Tool.Title, "List OKF concepts").annotate(Tool.Readonly, true).annotate(Tool.Idempotent, true).annotate(Tool.OpenWorld, false);
|
|
28
28
|
/**
|
|
29
29
|
* Deviation from the brief's literal snippet: `message` is composed through
|
|
30
|
-
* `ToolFailure.message` (`@effected/mcp`), and the raw message embeds the
|
|
30
|
+
* `ToolFailure.message` (`@effected/mcp-kit`), and the raw message embeds the
|
|
31
31
|
* full `valid` list rather than leaving it only on the schema's `valid`
|
|
32
32
|
* field — a declared typed failure under `failureMode: "error"` never
|
|
33
33
|
* reaches the wire with `structuredContent` (B1's finding), so `valid`
|
package/tools/staleReport.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { McpToolError } from "../errors.js";
|
|
2
|
+
import { resolveNow } from "../internal/resolveNow.js";
|
|
2
3
|
import { loadToolContext } from "../internal/toolContext.js";
|
|
4
|
+
import { toolSignals } from "../internal/toolSignals.js";
|
|
3
5
|
import { toConceptSummary } from "../schema/ConceptSummary.js";
|
|
4
6
|
import { StaleReportParams, StaleReportSuccess } from "../schema/tools.js";
|
|
5
|
-
import { toolSignals } from "../internal/toolSignals.js";
|
|
6
|
-
import { resolveNow } from "../internal/resolveNow.js";
|
|
7
7
|
import { Derive } from "@okfit/core";
|
|
8
8
|
import { DateTime, Effect } from "effect";
|
|
9
9
|
import { Tool } from "effect/ai";
|
package/tools/validateBundle.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { McpToolError } from "../errors.js";
|
|
2
|
+
import { resolveNow } from "../internal/resolveNow.js";
|
|
2
3
|
import { resolveConfigOnly } from "../internal/toolContext.js";
|
|
3
4
|
import { ValidateBundleParams } from "../schema/tools.js";
|
|
4
|
-
import { resolveNow } from "../internal/resolveNow.js";
|
|
5
5
|
import { MCP_VERSION } from "../version.js";
|
|
6
|
-
import { ToolRefusal } from "@effected/mcp";
|
|
6
|
+
import { ToolRefusal } from "@effected/mcp-kit";
|
|
7
7
|
import { OKF_SPEC_VERSION } from "@okfit/core";
|
|
8
8
|
import { Effect, Option } from "effect";
|
|
9
9
|
import { Tool } from "effect/ai";
|
package/tsdoc-metadata.json
CHANGED