workfullcircle-mcp 1.1.0 → 1.1.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/bin/workfullcircle-mcp.js +59 -59
- package/package.json +32 -32
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const { validateToken } = require('../src/auth');
|
|
4
|
-
const { getTargets, writeConfig } = require('../src/config-writer');
|
|
5
|
-
|
|
6
|
-
const args = process.argv.slice(2);
|
|
7
|
-
|
|
8
|
-
function printUsage() {
|
|
9
|
-
console.log('Usage: workfullcircle-mcp install --token uam_...');
|
|
10
|
-
process.exit(1);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function parseArgs(argv) {
|
|
14
|
-
if (argv.length < 2) {
|
|
15
|
-
printUsage();
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const command = argv[0];
|
|
19
|
-
const tokenIndex = argv.indexOf('--token');
|
|
20
|
-
const token = tokenIndex !== -1 ? argv[tokenIndex + 1] : null;
|
|
21
|
-
const projectIndex = argv.indexOf('--project');
|
|
22
|
-
const projectId = projectIndex !== -1 ? argv[projectIndex + 1] : null;
|
|
23
|
-
|
|
24
|
-
if (command !== 'install' || !token) {
|
|
25
|
-
printUsage();
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const validation = validateToken(token);
|
|
29
|
-
if (!validation.valid) {
|
|
30
|
-
console.error(`Error: ${validation.error}`);
|
|
31
|
-
process.exit(1);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
return { token, projectId };
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function install(token, projectId) {
|
|
38
|
-
const targets = getTargets();
|
|
39
|
-
let updated = 0;
|
|
40
|
-
targets.forEach((target) => {
|
|
41
|
-
if (!target.path) return;
|
|
42
|
-
const result = writeConfig(target, token, projectId);
|
|
43
|
-
if (result.success) {
|
|
44
|
-
console.log(`Updated ${target.name} config.`);
|
|
45
|
-
updated += 1;
|
|
46
|
-
} else {
|
|
47
|
-
console.warn(`Skipping ${target.name}: ${result.error}`);
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
if (updated === 0) {
|
|
52
|
-
console.log('No configs found. Please create a config file manually.');
|
|
53
|
-
} else {
|
|
54
|
-
console.log('Setup complete. Restart your IDE to load WorkFullCircle.');
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const { token, projectId } = parseArgs(args);
|
|
59
|
-
install(token, projectId);
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { validateToken } = require('../src/auth');
|
|
4
|
+
const { getTargets, writeConfig } = require('../src/config-writer');
|
|
5
|
+
|
|
6
|
+
const args = process.argv.slice(2);
|
|
7
|
+
|
|
8
|
+
function printUsage() {
|
|
9
|
+
console.log('Usage: workfullcircle-mcp install --token uam_...');
|
|
10
|
+
process.exit(1);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function parseArgs(argv) {
|
|
14
|
+
if (argv.length < 2) {
|
|
15
|
+
printUsage();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const command = argv[0];
|
|
19
|
+
const tokenIndex = argv.indexOf('--token');
|
|
20
|
+
const token = tokenIndex !== -1 ? argv[tokenIndex + 1] : null;
|
|
21
|
+
const projectIndex = argv.indexOf('--project');
|
|
22
|
+
const projectId = projectIndex !== -1 ? argv[projectIndex + 1] : null;
|
|
23
|
+
|
|
24
|
+
if (command !== 'install' || !token) {
|
|
25
|
+
printUsage();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const validation = validateToken(token);
|
|
29
|
+
if (!validation.valid) {
|
|
30
|
+
console.error(`Error: ${validation.error}`);
|
|
31
|
+
process.exit(1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return { token, projectId };
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function install(token, projectId) {
|
|
38
|
+
const targets = getTargets();
|
|
39
|
+
let updated = 0;
|
|
40
|
+
targets.forEach((target) => {
|
|
41
|
+
if (!target.path) return;
|
|
42
|
+
const result = writeConfig(target, token, projectId);
|
|
43
|
+
if (result.success) {
|
|
44
|
+
console.log(`Updated ${target.name} config.`);
|
|
45
|
+
updated += 1;
|
|
46
|
+
} else {
|
|
47
|
+
console.warn(`Skipping ${target.name}: ${result.error}`);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
if (updated === 0) {
|
|
52
|
+
console.log('No configs found. Please create a config file manually.');
|
|
53
|
+
} else {
|
|
54
|
+
console.log('Setup complete. Restart your IDE to load WorkFullCircle.');
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const { token, projectId } = parseArgs(args);
|
|
59
|
+
install(token, projectId);
|
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "workfullcircle-mcp",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "WorkFullCircle MCP - Universal AI memory that works anywhere",
|
|
5
|
-
"bin": {
|
|
6
|
-
"workfullcircle-mcp": "bin/workfullcircle-mcp.js"
|
|
7
|
-
},
|
|
8
|
-
"main": "bin/workfullcircle-mcp.js",
|
|
9
|
-
"scripts": {
|
|
10
|
-
"start": "node bin/workfullcircle-mcp.js"
|
|
11
|
-
},
|
|
12
|
-
"keywords": [
|
|
13
|
-
"mcp",
|
|
14
|
-
"workfullcircle",
|
|
15
|
-
"ai",
|
|
16
|
-
"memory",
|
|
17
|
-
"universal",
|
|
18
|
-
"cross-platform",
|
|
19
|
-
"windsurf",
|
|
20
|
-
"cursor",
|
|
21
|
-
"claude",
|
|
22
|
-
"vscode"
|
|
23
|
-
],
|
|
24
|
-
"author": "Afreensiyad",
|
|
25
|
-
"license": "MIT",
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"fs-extra": "^11.2.0"
|
|
28
|
-
},
|
|
29
|
-
"engines": {
|
|
30
|
-
"node": ">=16.0.0"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "workfullcircle-mcp",
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"description": "WorkFullCircle MCP - Universal AI memory that works anywhere",
|
|
5
|
+
"bin": {
|
|
6
|
+
"workfullcircle-mcp": "bin/workfullcircle-mcp.js"
|
|
7
|
+
},
|
|
8
|
+
"main": "bin/workfullcircle-mcp.js",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"start": "node bin/workfullcircle-mcp.js"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"mcp",
|
|
14
|
+
"workfullcircle",
|
|
15
|
+
"ai",
|
|
16
|
+
"memory",
|
|
17
|
+
"universal",
|
|
18
|
+
"cross-platform",
|
|
19
|
+
"windsurf",
|
|
20
|
+
"cursor",
|
|
21
|
+
"claude",
|
|
22
|
+
"vscode"
|
|
23
|
+
],
|
|
24
|
+
"author": "Afreensiyad",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"fs-extra": "^11.2.0"
|
|
28
|
+
},
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=16.0.0"
|
|
31
|
+
}
|
|
32
|
+
}
|