@vespermcp/mcp-server 1.0.0 ā 1.0.1
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/package.json +2 -1
- package/scripts/postinstall.cjs +66 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vespermcp/mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "AI-powered dataset discovery, quality analysis, and preparation MCP server with multimodal support (text, image, audio, video)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"build/**/*",
|
|
12
12
|
"src/python/**/*",
|
|
13
|
+
"scripts/**/*",
|
|
13
14
|
"README.md",
|
|
14
15
|
"LICENSE",
|
|
15
16
|
"mcp-config-template.json"
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { execSync } = require('child_process');
|
|
4
|
+
const fs = require('fs');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
|
|
7
|
+
console.log('\nš Setting up Vesper MCP Server...\n');
|
|
8
|
+
|
|
9
|
+
// 1. Check for Python
|
|
10
|
+
try {
|
|
11
|
+
execSync('python --version', { stdio: 'pipe' });
|
|
12
|
+
console.log('ā
Python found');
|
|
13
|
+
} catch (e) {
|
|
14
|
+
console.warn('ā ļø Python not found. Please install Python 3.8+ for full functionality.');
|
|
15
|
+
console.warn(' Image/audio/video analysis features will not work without Python.\n');
|
|
16
|
+
process.exit(0); // Don't fail installation
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// 2. Install Python dependencies
|
|
20
|
+
console.log('\nš¦ Installing Python dependencies...');
|
|
21
|
+
const pythonPackages = [
|
|
22
|
+
'opencv-python',
|
|
23
|
+
'pillow',
|
|
24
|
+
'numpy',
|
|
25
|
+
'librosa',
|
|
26
|
+
'soundfile'
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
try {
|
|
30
|
+
execSync(`python -m pip install ${pythonPackages.join(' ')}`, {
|
|
31
|
+
stdio: 'inherit',
|
|
32
|
+
timeout: 120000 // 2 minutes timeout
|
|
33
|
+
});
|
|
34
|
+
console.log('ā
Python dependencies installed');
|
|
35
|
+
} catch (e) {
|
|
36
|
+
console.warn('ā ļø Failed to install some Python dependencies.');
|
|
37
|
+
console.warn(' You may need to install them manually:');
|
|
38
|
+
console.warn(` pip install ${pythonPackages.join(' ')}\n`);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// 3. Create data directories
|
|
42
|
+
const homeDir = process.env.HOME || process.env.USERPROFILE;
|
|
43
|
+
const vesperDataDir = path.join(homeDir, '.vesper');
|
|
44
|
+
const dirs = [
|
|
45
|
+
vesperDataDir,
|
|
46
|
+
path.join(vesperDataDir, 'data'),
|
|
47
|
+
path.join(vesperDataDir, 'data', 'raw'),
|
|
48
|
+
path.join(vesperDataDir, 'data', 'processed'),
|
|
49
|
+
path.join(vesperDataDir, 'datasets')
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
dirs.forEach(dir => {
|
|
53
|
+
if (!fs.existsSync(dir)) {
|
|
54
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
console.log(`ā
Data directories created at ${vesperDataDir}`);
|
|
59
|
+
|
|
60
|
+
// 4. Display setup instructions
|
|
61
|
+
console.log('\n⨠Vesper MCP Server installed successfully!\n');
|
|
62
|
+
console.log('š Next steps:');
|
|
63
|
+
console.log(' 1. Add Vesper to your MCP settings (see README.md)');
|
|
64
|
+
console.log(' 2. Restart your AI assistant');
|
|
65
|
+
console.log(' 3. Try: search_datasets(query="sentiment analysis")');
|
|
66
|
+
console.log('\nš” For full documentation, visit: https://github.com/vesper/mcp-server\n');
|