@unson/brainbase-mcp 0.1.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/LICENSE +21 -0
- package/README.md +493 -0
- package/SECURITY.md +62 -0
- package/dist/cli.d.ts +11 -0
- package/dist/cli.js +824 -0
- package/dist/guided-onboarding.d.ts +97 -0
- package/dist/guided-onboarding.js +490 -0
- package/dist/import-extract.d.ts +121 -0
- package/dist/import-extract.js +554 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -0
- package/dist/onboarding.d.ts +174 -0
- package/dist/onboarding.js +1061 -0
- package/dist/ontology-ssot.d.ts +4 -0
- package/dist/ontology-ssot.js +33 -0
- package/dist/ontology.d.ts +181 -0
- package/dist/ontology.js +384 -0
- package/dist/operationalization.d.ts +24 -0
- package/dist/operationalization.js +87 -0
- package/dist/paths.d.ts +2 -0
- package/dist/paths.js +8 -0
- package/dist/projects.d.ts +51 -0
- package/dist/projects.js +227 -0
- package/dist/routines.d.ts +34 -0
- package/dist/routines.js +136 -0
- package/dist/server.d.ts +127 -0
- package/dist/server.js +185 -0
- package/dist/skills.d.ts +30 -0
- package/dist/skills.js +236 -0
- package/dist/ssot.d.ts +4 -0
- package/dist/ssot.js +387 -0
- package/dist/templates.d.ts +4 -0
- package/dist/templates.js +89 -0
- package/dist/tools.d.ts +6 -0
- package/dist/tools.js +180 -0
- package/dist/types.d.ts +63 -0
- package/dist/types.js +1 -0
- package/package.json +65 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export type EntityKind = 'person' | 'org' | 'project' | 'relationship' | 'decision';
|
|
2
|
+
export interface GraphEntity {
|
|
3
|
+
id: string;
|
|
4
|
+
type: Exclude<EntityKind, 'decision'>;
|
|
5
|
+
name: string;
|
|
6
|
+
summary?: string;
|
|
7
|
+
tags?: string[];
|
|
8
|
+
metadata?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
export interface GraphFile {
|
|
11
|
+
version: 1;
|
|
12
|
+
owner?: {
|
|
13
|
+
name?: string;
|
|
14
|
+
summary?: string;
|
|
15
|
+
};
|
|
16
|
+
entities: GraphEntity[];
|
|
17
|
+
}
|
|
18
|
+
export interface PersonalKgEntry {
|
|
19
|
+
id: string;
|
|
20
|
+
type: 'self' | 'work' | 'relationship' | 'value' | 'judgment' | 'experience' | 'sns_context';
|
|
21
|
+
text: string;
|
|
22
|
+
tags?: string[];
|
|
23
|
+
source?: string;
|
|
24
|
+
updatedAt?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface RelationshipRecord {
|
|
27
|
+
id: string;
|
|
28
|
+
person: string;
|
|
29
|
+
role?: string;
|
|
30
|
+
context: string;
|
|
31
|
+
tags?: string[];
|
|
32
|
+
updatedAt?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface RelationshipsFile {
|
|
35
|
+
version: 1;
|
|
36
|
+
relationships: RelationshipRecord[];
|
|
37
|
+
}
|
|
38
|
+
export interface DecisionRecord {
|
|
39
|
+
id: string;
|
|
40
|
+
title: string;
|
|
41
|
+
decision: string;
|
|
42
|
+
topic?: string;
|
|
43
|
+
supersedes?: string[];
|
|
44
|
+
effectiveAt?: string;
|
|
45
|
+
rationale?: string;
|
|
46
|
+
tags?: string[];
|
|
47
|
+
updatedAt?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface PersonalOs {
|
|
50
|
+
dataDir: string;
|
|
51
|
+
graph: GraphFile;
|
|
52
|
+
personalKg: PersonalKgEntry[];
|
|
53
|
+
relationships: RelationshipsFile;
|
|
54
|
+
decisions: DecisionRecord[];
|
|
55
|
+
sourceCount: number;
|
|
56
|
+
}
|
|
57
|
+
export interface SearchResult {
|
|
58
|
+
source: 'graph' | 'personal-kg' | 'relationships' | 'decisions';
|
|
59
|
+
id: string;
|
|
60
|
+
title: string;
|
|
61
|
+
text: string;
|
|
62
|
+
score: number;
|
|
63
|
+
}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@unson/brainbase-mcp",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Local-first Brainbase MCP server and personal onboarding kit.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Unson-LLC/brainbase.git"
|
|
10
|
+
},
|
|
11
|
+
"main": "dist/index.js",
|
|
12
|
+
"types": "dist/index.d.ts",
|
|
13
|
+
"bin": {
|
|
14
|
+
"brainbase-mcp": "dist/index.js",
|
|
15
|
+
"brainbase": "dist/cli.js"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE",
|
|
21
|
+
"SECURITY.md"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsc -p tsconfig.json",
|
|
28
|
+
"test": "vitest run",
|
|
29
|
+
"test:integration": "vitest run tests/mcp-contract.test.ts tests/ontology-cli.test.ts tests/npm-release-validation.integration.test.ts",
|
|
30
|
+
"test:integration:release-evidence": "vitest run tests/npm-release-validation.integration.test.ts tests/npm-prepublication-evidence.integration.test.ts",
|
|
31
|
+
"test:e2e": "vitest run tests/e2e/brainbase-mcp-only-acceptance.spec.ts tests/e2e/story-brainbase-portable-ontology-kernel-acceptance.spec.ts",
|
|
32
|
+
"docs:dev": "vitepress dev docs",
|
|
33
|
+
"docs:build": "vitepress build docs",
|
|
34
|
+
"docs:preview": "vitepress preview docs",
|
|
35
|
+
"start": "node dist/index.js",
|
|
36
|
+
"doctor": "node dist/cli.js doctor",
|
|
37
|
+
"onboard:init": "node dist/cli.js onboard:init",
|
|
38
|
+
"onboard:start": "node dist/cli.js onboard:start",
|
|
39
|
+
"onboard:seed": "node dist/cli.js onboard:seed",
|
|
40
|
+
"onboard:demo": "node dist/cli.js onboard:demo",
|
|
41
|
+
"onboard:install": "node dist/cli.js onboard:install",
|
|
42
|
+
"release:plan": "node scripts/npm-release.mjs plan",
|
|
43
|
+
"release:validate": "node scripts/npm-release.mjs validate",
|
|
44
|
+
"release:publish": "node scripts/npm-release.mjs publish",
|
|
45
|
+
"release:verify": "node scripts/npm-release.mjs verify"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
49
|
+
"zod": "^3.25.56"
|
|
50
|
+
},
|
|
51
|
+
"overrides": {
|
|
52
|
+
"ip-address": "^10.4.0"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@types/node": "^22.15.29",
|
|
56
|
+
"tsx": "^4.19.4",
|
|
57
|
+
"typescript": "^5.8.3",
|
|
58
|
+
"vitepress": "^1.6.4",
|
|
59
|
+
"vitest": "^4.1.8"
|
|
60
|
+
},
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=20"
|
|
63
|
+
},
|
|
64
|
+
"gitHead": "01f9e7578080390c252104df9c66cf4b6ccb2920"
|
|
65
|
+
}
|