@inventarch/mcp-door 3.2.2 → 3.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/LANGUAGE.md +1 -1
- package/README.md +6 -4
- package/SPEC.md +4 -0
- package/assets/vocabulary.json +9 -6
- package/dist/kb.d.ts +13 -0
- package/dist/kb.d.ts.map +1 -0
- package/dist/kb.js +37 -0
- package/dist/kb.js.map +1 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +40 -5
- package/dist/protocol.js.map +1 -1
- package/dist/tools.d.ts +60 -0
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +11 -1
- package/dist/tools.js.map +1 -1
- package/package.json +4 -3
package/LANGUAGE.md
CHANGED
|
@@ -43,7 +43,7 @@ Spec source locators do not load documents. Resource capture and disclosure requ
|
|
|
43
43
|
| @predicate | taxonomy | Defines a directed relationship, its inverse spelling and its present phrase. |
|
|
44
44
|
| @primitive | taxonomy | Defines a cognitive primitive coordinate; a cell is selected using its phase and primitive. |
|
|
45
45
|
| @principle | governance-system | Declares a governing rationale in the shared governance shape. |
|
|
46
|
-
| @run | session-system | Represents a governed run identity, declared phase
|
|
46
|
+
| @run | session-system | Represents a governed run identity, status, owner and declared phase when known. Declaration does not start execution. |
|
|
47
47
|
| @schema | floor | Declares the structural contract for exactly one registered discriminator. |
|
|
48
48
|
| @spec | work-system | Represents a maintained specification with explicit status and at most one same-word supersession. Contents and document membership belong to its author; a source locator does not load a body or prove semantic quality. |
|
|
49
49
|
| @system | floor | Registers vocabulary, direct system dependencies, a local steward and consent for relationships. |
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@inventarch/mcp-door) [](https://github.com/inventarch/ia/actions/workflows/platform-quality.yml) [](LICENSE) [](package.json)
|
|
4
4
|
|
|
5
|
-
> `ia-mcp-door` is a local MCP server that gives an agent host read-only access to one IA workspace over stdio. It serves
|
|
5
|
+
> `ia-mcp-door` is a local MCP server that gives an agent host read-only access to one IA workspace over stdio. It serves seventeen tools: eleven Door operations from [`@inventarch/runtime`](../../packages/runtime/README.md), the same reads the `ia` CLI performs, `ia_vocabulary`, and five scoped `ia_kb_*` knowledge readers.
|
|
6
6
|
>
|
|
7
7
|
> `ia host claude` and `ia host codex` register it for you. Any other MCP client can launch it directly.
|
|
8
8
|
|
|
@@ -54,12 +54,12 @@ The second response line carries the result as `structuredContent` (shortened he
|
|
|
54
54
|
| `ia_traverse` | Relationships followed from start records, with typed filters and optional condition gating. |
|
|
55
55
|
| `ia_read` | The body behind a locator (`<identity>`, `<identity>#<phase>/<Primitive>`, `<identity>#<REQ-ID>` or `<path>:<line>`), with the SHA-256 of its UTF-8 bytes and `certified: false`. `includeRuntime: true` reads a record at runtime placement. |
|
|
56
56
|
| `ia_next` | One plan's delivery view, as `ia next` prints it: milestones and tasks in prerequisite order, each task's verdict, and `next`, the command for the first task with no declared blocker. |
|
|
57
|
-
| `ia_position` | `{body, digest, hostNote}` for a scope key: `seat` (an identity or `{path}`), `shape`, `phase`, `depth` (0 to 2), `budget` (0 to 64) and `word`. No key part means the repository's `@workspace` at context, orient, depth 0, budget 0. |
|
|
57
|
+
| `ia_position` | `{body, digest, hostNote}` for a scope key: `seat` (an identity or `{path}`), `shape`, `phase`, `depth` (0 to 2), `budget` (0 to 64) and `word`, plus optional `primitive`. Omitted, primitive is derived from shape; explicit primitive also supplies the default phase. No key part means the repository's `@workspace` at context, orient, depth 0, budget 0. |
|
|
58
58
|
| `ia_vocabulary` | The public words and their schemas, from the catalogue shipped with the server. It reads no workspace and takes no scope token. |
|
|
59
59
|
|
|
60
|
-
The first eight tools
|
|
60
|
+
The first eight tools were introduced in machine-protocol version 1 and `ia_read`, `ia_next` and `ia_position` in version 2. The server uses the latest protocol, version 3, whose `ia_position` schema additionally accepts `primitive`. A runtime Door explicitly serving version 2 still refuses that parameter. The protocol's `report` operation has no tool; run `ia report` from the CLI.
|
|
61
61
|
|
|
62
|
-
Every result carries its JSON as `structuredContent` and as text. A refusal sets `isError: true
|
|
62
|
+
Every result carries its JSON as `structuredContent` and as text. A refusal sets `isError: true`. Door tools return `ok: false` with a top-level `code`; knowledge tools return `{version: 1, ok: false, error: {code, message}}`. Refusals from the three version 2 tools can also carry `next`, the one command to run:
|
|
63
63
|
|
|
64
64
|
- `ia_read`: `IA-RUNTIME-READ-UNADMITTED` for a locator no admitted record in the scope answers. Through a narrowed token it names nothing outside the scope; through the whole workspace it says what the sources hold there, such as a record whose admission was refused.
|
|
65
65
|
- `ia_next`: `IA-RUNTIME-NEXT-SEAT`, `-NO-PLAN`, `-AMBIGUOUS` or `-CYCLE`, with the `plans` or the `cycle` concerned.
|
|
@@ -77,6 +77,8 @@ The `ia_position` body is a pure function of the key and the admitted records. I
|
|
|
77
77
|
|
|
78
78
|
## 📚 Learn more
|
|
79
79
|
|
|
80
|
+
Five additional read tools—`ia_kb_check`, `ia_kb_search`, `ia_kb_read`, `ia_kb_resolve`, and `ia_kb_traverse`—read selected native records and their bound documents through [the knowledge foundation](../../packages/kb/README.md). They accept an optional `within` issued by this server. The original Door validates membership, and a matching graph revision is required before any body read. A stale, foreign or unsupported narrowed scope refuses; there is no workspace fallback. The complete knowledge-tool result envelope, including both text and structured content, is bounded to 48 KiB; an oversized request id instead receives a JSON-RPC error. Local citations resolve only while current captured bytes still match. These tools create no index or `.kb` directory.
|
|
81
|
+
|
|
80
82
|
- [SPEC.md](SPEC.md): the package contract
|
|
81
83
|
- [LANGUAGE.md](LANGUAGE.md): the packaged summary of the words this release ships
|
|
82
84
|
- [`@inventarch/runtime`](../../packages/runtime/README.md): the Door, `MACHINE_PROTOCOL`, positions and delivery views behind these tools
|
package/SPEC.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
# @inventarch/mcp-door
|
|
2
2
|
|
|
3
|
+
Knowledge membership budgets apply after intersecting the original Door membership with the optional persisted `.ia/knowledge.json` selection, using the KB library's shared eligibility predicate. Excluded authored records, floor records and excluded body resources do not widen the selected view. The adapter validates the selector before budgeting and passes it to capture, retaining the Door revision check before body reads.
|
|
4
|
+
|
|
3
5
|
Public language mechanism. The [language reference](LANGUAGE.md) defines vocabulary and evaluation limits. Package exports describe the installed API. Curated agent methods and hosted services are supplied independently.
|
|
6
|
+
|
|
7
|
+
Knowledge integration adds five tools: `ia_kb_check`, `ia_kb_search`, `ia_kb_read`, `ia_kb_resolve`, `ia_kb_traverse`. They use the public KB protocol DTOs. The original Door validates any scope token, supplies membership, and must agree with the KB native graph revision before bodies are read. Unknown/stale tokens, budget overflow and graph changes refuse without widening scope. Arguments cannot change root or select export paths. Local checks expose selected-record admission and closure; workspace compliance is explicitly not evaluated, and excluded records do not contribute diagnostics. The complete JSON-RPC KB tool-result envelope, including text plus structured content and request id, is bounded to 48 KiB. An oversized result returns a bounded refusal. If the request id itself prevents even that refusal from fitting, the server rejects the request before executing a KB operation with JSON-RPC error -32600 and echoes the original id. That protocol error can exceed 48 KiB; truncating or replacing the id would prevent the caller from matching its request. Existing twelve tools and protocol negotiation are preserved.
|
package/assets/vocabulary.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": 1,
|
|
3
3
|
"language": "ia 1.0",
|
|
4
4
|
"status": "public IA 1.0 language contract",
|
|
5
|
-
"sourceDigest": "
|
|
5
|
+
"sourceDigest": "6b36475d89b787e364c44ad5b8ba479b19787990c9fdb1d93a72af8b825c993a",
|
|
6
6
|
"words": [
|
|
7
7
|
{
|
|
8
8
|
"word": "agent",
|
|
@@ -3248,7 +3248,7 @@
|
|
|
3248
3248
|
"run"
|
|
3249
3249
|
],
|
|
3250
3250
|
"identity": "session-system/definition/<facet>/<name>",
|
|
3251
|
-
"description": "Represents a governed run identity, declared phase
|
|
3251
|
+
"description": "Represents a governed run identity, status, owner and declared phase when known. Declaration does not start execution.",
|
|
3252
3252
|
"schema": {
|
|
3253
3253
|
"name": "run",
|
|
3254
3254
|
"path": ".ia/src/systems/session-system/schemas/run.schema.ia",
|
|
@@ -3286,7 +3286,8 @@
|
|
|
3286
3286
|
{
|
|
3287
3287
|
"path": "execution.phase",
|
|
3288
3288
|
"type": "id",
|
|
3289
|
-
"required":
|
|
3289
|
+
"required": false,
|
|
3290
|
+
"description": "The declared phase, when known; omit it when unknown. Historical id values remain valid. A declaration does not prove engine state."
|
|
3290
3291
|
},
|
|
3291
3292
|
{
|
|
3292
3293
|
"path": "execution.owner",
|
|
@@ -3629,7 +3630,7 @@
|
|
|
3629
3630
|
"path": "work.exit-evidence",
|
|
3630
3631
|
"type": "ref",
|
|
3631
3632
|
"required": false,
|
|
3632
|
-
"description": "
|
|
3633
|
+
"description": "An observation used to establish this task's exit evidence when its verdict is success and its subject revision matches the task's current digest; it does not change work.status.",
|
|
3633
3634
|
"target": "observation"
|
|
3634
3635
|
},
|
|
3635
3636
|
{
|
|
@@ -3728,12 +3729,14 @@
|
|
|
3728
3729
|
{
|
|
3729
3730
|
"path": "template.parameters",
|
|
3730
3731
|
"type": "list of id",
|
|
3731
|
-
"required":
|
|
3732
|
+
"required": false,
|
|
3733
|
+
"description": "The scalar renderer requires declared parameters; structured-v1 may omit this field or retain an empty list."
|
|
3732
3734
|
},
|
|
3733
3735
|
{
|
|
3734
3736
|
"path": "template.lines",
|
|
3735
3737
|
"type": "list of text",
|
|
3736
|
-
"required":
|
|
3738
|
+
"required": false,
|
|
3739
|
+
"description": "The scalar renderer requires content lines; structured-v1 may omit this field or retain an empty list."
|
|
3737
3740
|
},
|
|
3738
3741
|
{
|
|
3739
3742
|
"path": "template.profile",
|
package/dist/kb.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Door } from '@inventarch/runtime';
|
|
2
|
+
import type { KnowledgeOperation } from '@inventarch/kb/protocol';
|
|
3
|
+
/** Selectable authored records a Door scope may carry into one knowledge capture. */
|
|
4
|
+
export declare const MEMBERSHIP: Readonly<{
|
|
5
|
+
records: 1000;
|
|
6
|
+
bytes: number;
|
|
7
|
+
}>;
|
|
8
|
+
/** Tokens are interpreted only by their issuing Door. Transfer membership and graph revision, never the token. */
|
|
9
|
+
export declare function knowledgeTool(root: string, door: Door, operation: KnowledgeOperation, input: unknown, budget?: {
|
|
10
|
+
readonly records: number;
|
|
11
|
+
readonly bytes: number;
|
|
12
|
+
}): import("@inventarch/kb/protocol").KnowledgeResponse;
|
|
13
|
+
//# sourceMappingURL=kb.d.ts.map
|
package/dist/kb.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kb.d.ts","sourceRoot":"","sources":["../src/kb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAShD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,qFAAqF;AACrF,eAAO,MAAM,UAAU;;;EAA2D,CAAC;AACnF,kHAAkH;AAClH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,kBAAkB,EAC7B,KAAK,EAAE,OAAO,EACd,MAAM,GAAE;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAe,uDAiC1E"}
|
package/dist/kb.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { captureKnowledge, openKnowledgeView, KnowledgeError, readKnowledgeSelection, selectableKnowledgeRecord, } from '@inventarch/kb';
|
|
2
|
+
import { executeKnowledge, knowledgeFailure, parseKnowledgeRequest } from '@inventarch/kb/protocol';
|
|
3
|
+
/** Selectable authored records a Door scope may carry into one knowledge capture. */
|
|
4
|
+
export const MEMBERSHIP = Object.freeze({ records: 1000, bytes: 8 * 1024 * 1024 });
|
|
5
|
+
/** Tokens are interpreted only by their issuing Door. Transfer membership and graph revision, never the token. */
|
|
6
|
+
export function knowledgeTool(root, door, operation, input, budget = MEMBERSHIP) {
|
|
7
|
+
try {
|
|
8
|
+
const args = parseKnowledgeRequest(operation, input);
|
|
9
|
+
const membership = door.request({
|
|
10
|
+
operation: 'records',
|
|
11
|
+
params: args.within === undefined ? {} : { within: args.within },
|
|
12
|
+
});
|
|
13
|
+
if (!membership.ok)
|
|
14
|
+
throw new KnowledgeError('IA-KB-SCOPE-UNAVAILABLE', 'Knowledge scope unavailable');
|
|
15
|
+
const snapshot = membership.result;
|
|
16
|
+
const selection = readKnowledgeSelection(root);
|
|
17
|
+
// Count the same selected authored records capture can read, within the original Door membership.
|
|
18
|
+
const authored = snapshot.records.filter((record) => selectableKnowledgeRecord(record, selection));
|
|
19
|
+
if (authored.length > budget.records || Buffer.byteLength(JSON.stringify(authored)) > budget.bytes)
|
|
20
|
+
throw new KnowledgeError('IA-KB-SCOPE-LIMIT', 'Knowledge scope exceeds membership budget');
|
|
21
|
+
const view = openKnowledgeView(captureKnowledge(root, {
|
|
22
|
+
identities: authored.map((r) => r.identity),
|
|
23
|
+
expectedRevision: snapshot.revision,
|
|
24
|
+
...(selection === undefined ? {} : { selection }),
|
|
25
|
+
}));
|
|
26
|
+
try {
|
|
27
|
+
return executeKnowledge(view, operation, args);
|
|
28
|
+
}
|
|
29
|
+
finally {
|
|
30
|
+
view.close();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
return knowledgeFailure(error);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=kb.js.map
|
package/dist/kb.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kb.js","sourceRoot":"","sources":["../src/kb.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE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AgB,CAAC,IAAI,EAAE;YACrB,UAAU,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;YAC3C,gBAAgB,EAAE,QAAQ,CAAC,QAAQ;YACnC,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC;SAClD,CAAC,CACH,CAAC;QACF,IAAI,CAAC;YACH,OAAO,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;QACjD,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,KAAK,EAAE,CAAC;QACf,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;AACH,CAAC"}
|
package/dist/protocol.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAE7C,KAAK,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AACjC,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;IACxB,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC;IAChB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACtE;AACD,eAAO,MAAM,QAAQ,GAAI,IAAI,EAAE,EAAE,MAAM,MAAM,EAAE,SAAS,MAAM,KAAG,QAI/D,CAAC;AAGH,qBAAa,QAAQ;;gBAIP,IAAI,EAAE,MAAM;IAIxB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS;IASxC,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS;IA2G/C,KAAK,IAAI,IAAI;CAId"}
|
package/dist/protocol.js
CHANGED
|
@@ -3,6 +3,8 @@ import { Door } from '@inventarch/runtime';
|
|
|
3
3
|
import { OPERATIONS, TOOLS } from './tools.js';
|
|
4
4
|
import { compactContext } from './presentation.js';
|
|
5
5
|
import { vocabulary } from './vocabulary.js';
|
|
6
|
+
import { knowledgeTool } from './kb.js';
|
|
7
|
+
import { LIMITS } from '@inventarch/kb';
|
|
6
8
|
export const PROTOCOL_VERSION = '2025-11-25';
|
|
7
9
|
const PACKAGE_VERSION = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')).version;
|
|
8
10
|
export const rpcError = (id, code, message) => ({
|
|
@@ -12,9 +14,11 @@ export const rpcError = (id, code, message) => ({
|
|
|
12
14
|
});
|
|
13
15
|
const object = (value) => value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
14
16
|
export class Protocol {
|
|
17
|
+
#root;
|
|
15
18
|
#door;
|
|
16
19
|
#state = 'new';
|
|
17
20
|
constructor(root) {
|
|
21
|
+
this.#root = root;
|
|
18
22
|
this.#door = new Door(root, { cache: false });
|
|
19
23
|
}
|
|
20
24
|
line(line) {
|
|
@@ -85,13 +89,44 @@ export class Protocol {
|
|
|
85
89
|
return rpcError(requestId, -32602, 'context format must be full or compact');
|
|
86
90
|
if (operation === 'context')
|
|
87
91
|
delete args['format'];
|
|
88
|
-
const
|
|
92
|
+
const knowledge = operation.startsWith('kb:'), size = (value) => Buffer.byteLength(JSON.stringify(value));
|
|
93
|
+
const refusal = {
|
|
94
|
+
version: 1,
|
|
95
|
+
ok: false,
|
|
96
|
+
error: {
|
|
97
|
+
code: 'IA-KB-RESPONSE-LIMIT',
|
|
98
|
+
message: 'Knowledge transport response exceeds 48 KiB; narrow the request',
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
const bounded = success({
|
|
102
|
+
content: [{ type: 'text', text: JSON.stringify(refusal) }],
|
|
103
|
+
structuredContent: refusal,
|
|
104
|
+
isError: true,
|
|
105
|
+
});
|
|
106
|
+
// An id too long for even the bounded refusal is refused before any work, still answering that id.
|
|
107
|
+
if (knowledge && size(bounded) > LIMITS.responseBytes)
|
|
108
|
+
return rpcError(requestId, -32600, 'Knowledge request id exceeds response budget');
|
|
109
|
+
const raw = knowledge
|
|
110
|
+
? knowledgeTool(this.#root, this.#door, operation.slice(3), args)
|
|
111
|
+
: operation === 'vocabulary'
|
|
112
|
+
? vocabulary(args)
|
|
113
|
+
: this.#door.request({ operation, params: args });
|
|
89
114
|
const result = format === 'compact' ? compactContext(raw) : raw;
|
|
90
|
-
|
|
91
|
-
content: [{ type: 'text', text: JSON.stringify(
|
|
92
|
-
structuredContent:
|
|
93
|
-
isError: !
|
|
115
|
+
const envelope = (value) => success({
|
|
116
|
+
content: [{ type: 'text', text: JSON.stringify(value) }],
|
|
117
|
+
structuredContent: value,
|
|
118
|
+
isError: !value.ok,
|
|
94
119
|
});
|
|
120
|
+
let response = envelope(result);
|
|
121
|
+
if (operation === 'kb:search' && result.ok && 'value' in result) {
|
|
122
|
+
const search = result.value;
|
|
123
|
+
const results = [...search.results];
|
|
124
|
+
while (size(response) > LIMITS.responseBytes && results.length) {
|
|
125
|
+
results.pop();
|
|
126
|
+
response = envelope({ ...result, value: { ...search, results, truncated: true } });
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return knowledge && size(response) > LIMITS.responseBytes ? bounded : response;
|
|
95
130
|
}
|
|
96
131
|
return rpcError(requestId, -32601, `Unknown method '${method}'`);
|
|
97
132
|
}
|
package/dist/protocol.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.js","s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AC,CAAC;oBACrF,CAAC;gBACH,CAAC;gBACD,OAAO,SAAS,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;YACjF,CAAC;YACD,OAAO,QAAQ,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,mBAAmB,MAAM,GAAG,CAAC,CAAC;QACnE,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,QAAQ,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,yBAAyB,CAAC,CAAC;QAChE,CAAC;IACH,CAAC;IACD,KAAK;QACH,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC;QACvB,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;CACF"}
|
package/dist/tools.d.ts
CHANGED
|
@@ -6,6 +6,66 @@ export declare const TOOLS: {
|
|
|
6
6
|
properties: Record<string, unknown>;
|
|
7
7
|
required: readonly string[];
|
|
8
8
|
additionalProperties: boolean;
|
|
9
|
+
} | {
|
|
10
|
+
type: string;
|
|
11
|
+
properties: {
|
|
12
|
+
within: {
|
|
13
|
+
description: string;
|
|
14
|
+
type: string;
|
|
15
|
+
minLength: number;
|
|
16
|
+
maxLength: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
required: string[];
|
|
20
|
+
additionalProperties: boolean;
|
|
21
|
+
} | {
|
|
22
|
+
type: string;
|
|
23
|
+
properties: {
|
|
24
|
+
within: {
|
|
25
|
+
description: string;
|
|
26
|
+
type: string;
|
|
27
|
+
minLength: number;
|
|
28
|
+
maxLength: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
required: string[];
|
|
32
|
+
additionalProperties: boolean;
|
|
33
|
+
} | {
|
|
34
|
+
type: string;
|
|
35
|
+
properties: {
|
|
36
|
+
within: {
|
|
37
|
+
description: string;
|
|
38
|
+
type: string;
|
|
39
|
+
minLength: number;
|
|
40
|
+
maxLength: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
required: string[];
|
|
44
|
+
additionalProperties: boolean;
|
|
45
|
+
} | {
|
|
46
|
+
type: string;
|
|
47
|
+
properties: {
|
|
48
|
+
within: {
|
|
49
|
+
description: string;
|
|
50
|
+
type: string;
|
|
51
|
+
minLength: number;
|
|
52
|
+
maxLength: number;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
required: string[];
|
|
56
|
+
additionalProperties: boolean;
|
|
57
|
+
} | {
|
|
58
|
+
type: string;
|
|
59
|
+
properties: {
|
|
60
|
+
within: {
|
|
61
|
+
description: string;
|
|
62
|
+
type: string;
|
|
63
|
+
minLength: number;
|
|
64
|
+
maxLength: number;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
required: string[];
|
|
68
|
+
additionalProperties: boolean;
|
|
9
69
|
};
|
|
10
70
|
annotations: {
|
|
11
71
|
readOnlyHint: boolean;
|
package/dist/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAmFA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKf,CAAC;AACJ,eAAO,MAAM,UAAU,qBAAuE,CAAC"}
|
package/dist/tools.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MACHINE_PROTOCOL } from '@inventarch/runtime';
|
|
2
|
+
import { KB_OPERATIONS } from '@inventarch/kb/protocol';
|
|
2
3
|
import { LIMITS } from './vocabulary.js';
|
|
3
4
|
const text = { type: 'string' };
|
|
4
5
|
const object = (properties, required = []) => ({
|
|
@@ -62,7 +63,16 @@ const vocabulary = {
|
|
|
62
63
|
},
|
|
63
64
|
}),
|
|
64
65
|
};
|
|
65
|
-
const definitions = [
|
|
66
|
+
const definitions = [
|
|
67
|
+
...served,
|
|
68
|
+
vocabulary,
|
|
69
|
+
...KB_OPERATIONS.map((row) => ({
|
|
70
|
+
name: 'ia_kb_' + row.name,
|
|
71
|
+
operation: 'kb:' + row.name,
|
|
72
|
+
description: row.description,
|
|
73
|
+
inputSchema: row.inputSchema,
|
|
74
|
+
})),
|
|
75
|
+
];
|
|
66
76
|
export const TOOLS = definitions.map(({ name, description, inputSchema }) => ({
|
|
67
77
|
name,
|
|
68
78
|
description,
|
package/dist/tools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,MAAM,IAAI,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AAChC,MAAM,MAAM,GAAG,CAAC,UAAmC,EAAE,WAA8B,EAAE,EAAE,EAAE,CAAC,CAAC;IACzF,IAAI,EAAE,QAAQ;IACd,UAAU;IACV,QAAQ;IACR,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC;AACH,wGAAwG;AACxG,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;IACzB,WAAW,EACT,6LAA6L;CAChM,CAAC;AACF,MAAM,UAAU,GAAG,CAAC,MAAkB,EAAc,EAAE,CAAC,CAAC;IACtD,GAAG,MAAM;IACT,UAAU,EAAE,EAAE,GAA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W,EAAE,uBAAuB;SACrC;QACD,MAAM,EAAE;YACN,GAAG,IAAI;YACP,SAAS,EAAE,MAAM,CAAC,MAAM;YACxB,WAAW,EAAE,4DAA4D;SAC1E;QACD,MAAM,EAAE;YACN,IAAI,EAAE,SAAS;YACf,WAAW,EACT,6GAA6G;SAChH;KACF,CAAC;CACH,CAAC;AACF,MAAM,WAAW,GAAG;IAClB,GAAG,MAAM;IACT,UAAU;IACV,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAC7B,IAAI,EAAE,QAAQ,GAAG,GAAG,CAAC,IAAI;QACzB,SAAS,EAAE,KAAK,GAAG,GAAG,CAAC,IAAI;QAC3B,WAAW,EAAE,GAAG,CAAC,WAAW;QAC5B,WAAW,EAAE,GAAG,CAAC,WAAW;KAC7B,CAAC,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,IAAI;IACJ,WAAW;IACX,WAAW;IACX,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE;CAClF,CAAC,CAAC,CAAC;AACJ,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inventarch/mcp-door",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"types": "./dist/main.d.ts",
|
|
@@ -14,12 +14,13 @@
|
|
|
14
14
|
"LANGUAGE.md"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@inventarch/
|
|
17
|
+
"@inventarch/kb": "3.4.0",
|
|
18
|
+
"@inventarch/runtime": "3.4.0"
|
|
18
19
|
},
|
|
19
20
|
"devDependencies": {
|
|
20
21
|
"@types/node": "^22.19.0",
|
|
21
22
|
"typescript": "^5.9.3",
|
|
22
|
-
"vitest": "^4.1.
|
|
23
|
+
"vitest": "^4.1.12"
|
|
23
24
|
},
|
|
24
25
|
"bin": {
|
|
25
26
|
"ia-mcp-door": "./dist/main.js"
|