@unson/brainbase-mcp 0.1.0 → 0.2.2

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/dist/server.d.ts CHANGED
@@ -26,7 +26,7 @@ export declare const toolDefinitions: readonly [{
26
26
  };
27
27
  }, {
28
28
  readonly name: "search";
29
- readonly description: "Search canonical local Graph, Personal KG, relationships, and decisions.";
29
+ readonly description: "Search all canonical local stores: Graph entities, Personal KG, relationships, and decisions. Use this for people and projects.";
30
30
  readonly inputSchema: {
31
31
  readonly type: "object";
32
32
  readonly required: readonly ["query"];
@@ -44,7 +44,7 @@ export declare const toolDefinitions: readonly [{
44
44
  };
45
45
  }, {
46
46
  readonly name: "search_personal_kg";
47
- readonly description: "Search owner-local Personal KG only.";
47
+ readonly description: "Search owner-local Personal KG only. People and projects are Graph entities, so use search for them.";
48
48
  readonly inputSchema: {
49
49
  readonly type: "object";
50
50
  readonly required: readonly ["query"];
@@ -71,9 +71,301 @@ export declare const toolDefinitions: readonly [{
71
71
  };
72
72
  };
73
73
  };
74
+ }, {
75
+ readonly name: "brainbase_onboarding_start";
76
+ readonly description: "Start a local first-value onboarding run from actually callable sources. The result exposes runId (also id); pass runId to every later onboarding tool.";
77
+ readonly inputSchema: {
78
+ readonly type: "object";
79
+ readonly required: readonly ["valueTarget", "sources"];
80
+ readonly additionalProperties: false;
81
+ readonly properties: {
82
+ readonly dataDir: {
83
+ readonly type: "string";
84
+ readonly description: "Optional Personal OS directory.";
85
+ };
86
+ readonly valueTarget: {
87
+ readonly type: "string";
88
+ readonly description: "One concrete question the first useful answer should resolve.";
89
+ };
90
+ readonly sources: {
91
+ readonly type: "array";
92
+ readonly maxItems: 50;
93
+ readonly items: {
94
+ readonly type: "object";
95
+ readonly required: readonly ["id", "mode", "status"];
96
+ readonly additionalProperties: false;
97
+ readonly properties: {
98
+ readonly id: {
99
+ readonly type: "string";
100
+ };
101
+ readonly mode: {
102
+ readonly enum: readonly ["mcp", "drive", "gmail", "local_folder", "single_document"];
103
+ };
104
+ readonly status: {
105
+ readonly enum: readonly ["ready", "waiting_for_authorization", "unavailable", "error", "unconfirmed"];
106
+ };
107
+ readonly evidencePointer: {
108
+ readonly type: "string";
109
+ };
110
+ readonly permissionScope: {
111
+ readonly type: "array";
112
+ readonly items: {
113
+ readonly type: "string";
114
+ };
115
+ };
116
+ readonly detail: {
117
+ readonly type: "string";
118
+ };
119
+ };
120
+ };
121
+ };
122
+ };
123
+ };
124
+ }, {
125
+ readonly name: "brainbase_onboarding_get";
126
+ readonly description: "Read a connected-world onboarding run without exposing source or answer bodies.";
127
+ readonly inputSchema: {
128
+ readonly type: "object";
129
+ readonly required: readonly ["runId"];
130
+ readonly additionalProperties: false;
131
+ readonly properties: {
132
+ readonly dataDir: {
133
+ readonly type: "string";
134
+ };
135
+ readonly runId: {
136
+ readonly type: "string";
137
+ };
138
+ };
139
+ };
140
+ }, {
141
+ readonly name: "brainbase_onboarding_ingest";
142
+ readonly description: "Ingest one selected source receipt under source plus review candidates. Do not flatten sourceId or receipt fields at the top level.";
143
+ readonly inputSchema: {
144
+ readonly type: "object";
145
+ readonly required: readonly ["runId", "source", "candidates"];
146
+ readonly additionalProperties: false;
147
+ readonly properties: {
148
+ readonly dataDir: {
149
+ readonly type: "string";
150
+ };
151
+ readonly runId: {
152
+ readonly type: "string";
153
+ readonly description: "runId returned by brainbase_onboarding_start.";
154
+ };
155
+ readonly source: {
156
+ readonly type: "object";
157
+ readonly required: readonly ["sourceId", "evidencePointer", "contentHash", "permissionSnapshot", "collectionStatus"];
158
+ readonly additionalProperties: false;
159
+ readonly properties: {
160
+ readonly sourceId: {
161
+ readonly type: "string";
162
+ };
163
+ readonly evidencePointer: {
164
+ readonly type: "string";
165
+ };
166
+ readonly contentHash: {
167
+ readonly type: "string";
168
+ };
169
+ readonly permissionSnapshot: {
170
+ readonly type: "object";
171
+ };
172
+ readonly collectionStatus: {
173
+ readonly const: "collected";
174
+ };
175
+ };
176
+ };
177
+ readonly candidates: {
178
+ readonly type: "array";
179
+ readonly maxItems: 50;
180
+ readonly items: {
181
+ readonly type: "object";
182
+ readonly required: readonly ["kind", "payload", "observationClass", "evidenceId"];
183
+ readonly additionalProperties: false;
184
+ readonly properties: {
185
+ readonly kind: {
186
+ readonly type: "string";
187
+ };
188
+ readonly payload: {
189
+ readonly type: "object";
190
+ };
191
+ readonly observationClass: {
192
+ readonly enum: readonly ["observed", "inferred"];
193
+ };
194
+ readonly evidenceId: {
195
+ readonly type: "string";
196
+ };
197
+ };
198
+ };
199
+ };
200
+ };
201
+ };
202
+ }, {
203
+ readonly name: "brainbase_onboarding_review";
204
+ readonly description: "Submit review decisions in actions. Inferred candidates cannot be approved or merged; use edit with a human-confirmed payload, or reject.";
205
+ readonly inputSchema: {
206
+ readonly type: "object";
207
+ readonly required: readonly ["runId", "actions"];
208
+ readonly additionalProperties: false;
209
+ readonly properties: {
210
+ readonly dataDir: {
211
+ readonly type: "string";
212
+ };
213
+ readonly runId: {
214
+ readonly type: "string";
215
+ readonly minLength: 1;
216
+ readonly maxLength: 200;
217
+ };
218
+ readonly actions: {
219
+ readonly type: "array";
220
+ readonly minItems: 1;
221
+ readonly maxItems: 50;
222
+ readonly items: {
223
+ readonly oneOf: readonly [{
224
+ readonly type: "object";
225
+ readonly required: readonly ["candidateId", "decision", "reason"];
226
+ readonly additionalProperties: false;
227
+ readonly properties: {
228
+ readonly candidateId: {
229
+ readonly type: "string";
230
+ readonly minLength: 1;
231
+ readonly maxLength: 200;
232
+ };
233
+ readonly decision: {
234
+ readonly const: "approve";
235
+ };
236
+ readonly reason: {
237
+ readonly type: "string";
238
+ readonly minLength: 1;
239
+ readonly maxLength: 500;
240
+ };
241
+ };
242
+ }, {
243
+ readonly type: "object";
244
+ readonly required: readonly ["candidateId", "decision", "reason", "payload"];
245
+ readonly additionalProperties: false;
246
+ readonly properties: {
247
+ readonly candidateId: {
248
+ readonly type: "string";
249
+ readonly minLength: 1;
250
+ readonly maxLength: 200;
251
+ };
252
+ readonly decision: {
253
+ readonly const: "edit";
254
+ };
255
+ readonly reason: {
256
+ readonly type: "string";
257
+ readonly minLength: 1;
258
+ readonly maxLength: 500;
259
+ };
260
+ readonly payload: {
261
+ readonly type: "object";
262
+ };
263
+ };
264
+ }, {
265
+ readonly type: "object";
266
+ readonly required: readonly ["candidateId", "decision", "reason"];
267
+ readonly additionalProperties: false;
268
+ readonly properties: {
269
+ readonly candidateId: {
270
+ readonly type: "string";
271
+ readonly minLength: 1;
272
+ readonly maxLength: 200;
273
+ };
274
+ readonly decision: {
275
+ readonly const: "reject";
276
+ };
277
+ readonly reason: {
278
+ readonly type: "string";
279
+ readonly minLength: 1;
280
+ readonly maxLength: 500;
281
+ };
282
+ };
283
+ }, {
284
+ readonly type: "object";
285
+ readonly required: readonly ["candidateId", "decision", "reason", "mergeIntoCandidateId"];
286
+ readonly additionalProperties: false;
287
+ readonly properties: {
288
+ readonly candidateId: {
289
+ readonly type: "string";
290
+ readonly minLength: 1;
291
+ readonly maxLength: 200;
292
+ };
293
+ readonly decision: {
294
+ readonly const: "merge";
295
+ };
296
+ readonly reason: {
297
+ readonly type: "string";
298
+ readonly minLength: 1;
299
+ readonly maxLength: 500;
300
+ };
301
+ readonly mergeIntoCandidateId: {
302
+ readonly type: "string";
303
+ readonly minLength: 1;
304
+ readonly maxLength: 200;
305
+ };
306
+ };
307
+ }];
308
+ };
309
+ };
310
+ };
311
+ };
312
+ }, {
313
+ readonly name: "brainbase_onboarding_first_value";
314
+ readonly description: "Finish onboarding in two calls. First choose action=record with an answer hash and promoted canonical IDs. Then choose action=review with useful or not_useful.";
315
+ readonly inputSchema: {
316
+ readonly type: "object";
317
+ readonly required: readonly ["runId", "action"];
318
+ readonly additionalProperties: false;
319
+ readonly properties: {
320
+ readonly dataDir: {
321
+ readonly type: "string";
322
+ readonly description: "Optional Personal OS directory.";
323
+ };
324
+ readonly runId: {
325
+ readonly type: "string";
326
+ readonly minLength: 1;
327
+ readonly maxLength: 200;
328
+ readonly description: "runId returned by the previous onboarding step.";
329
+ };
330
+ readonly action: {
331
+ readonly enum: readonly ["record", "review"];
332
+ readonly description: "Use record first. Use review only after the answer receipt has been recorded.";
333
+ };
334
+ readonly answerHash: {
335
+ readonly type: "string";
336
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
337
+ readonly description: "Required for action=record. SHA-256 of the answer body; the body itself is not stored.";
338
+ };
339
+ readonly usedCanonicalIds: {
340
+ readonly type: "array";
341
+ readonly minItems: 1;
342
+ readonly maxItems: 50;
343
+ readonly items: {
344
+ readonly type: "string";
345
+ readonly minLength: 1;
346
+ readonly maxLength: 200;
347
+ };
348
+ readonly description: "Required for action=record. Use only promotedCanonicalIds returned by review.";
349
+ };
350
+ readonly verdict: {
351
+ readonly enum: readonly ["useful", "not_useful"];
352
+ readonly description: "Required for action=review.";
353
+ };
354
+ readonly missingContext: {
355
+ readonly type: "array";
356
+ readonly maxItems: 50;
357
+ readonly items: {
358
+ readonly type: "string";
359
+ readonly minLength: 1;
360
+ readonly maxLength: 200;
361
+ };
362
+ readonly description: "Optional short labels for context the answer still lacked.";
363
+ };
364
+ };
365
+ };
74
366
  }, {
75
367
  readonly name: "get_ontology";
76
- readonly description: "Return the bundled immutable Brainbase Portable Ontology Kernel release.";
368
+ readonly description: "Return a beginner guide followed by the bundled immutable Brainbase Portable Ontology Kernel release.";
77
369
  readonly inputSchema: {
78
370
  readonly type: "object";
79
371
  readonly properties: {};