@vespermcp/mcp-server 1.0.2 → 1.0.4

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/README.md CHANGED
@@ -55,21 +55,24 @@ pip install opencv-python pillow numpy librosa soundfile
55
55
 
56
56
  ## ⚙️ MCP Configuration
57
57
 
58
- Add Vesper to your MCP settings file:
58
+ ### For Cursor
59
+ 1. Go to **Settings** > **Features** > **MCP**
60
+ 2. Click **Add New MCP Server**
61
+ 3. Enter:
62
+ - **Name**: `vesper`
63
+ - **Type**: `command`
64
+ - **Command**: `vesper`
59
65
 
60
- **Claude Desktop** (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
66
+ ### For Claude Desktop
67
+ Vesper attempts to auto-configure itself! Restart Claude and check. If not:
61
68
 
62
69
  ```json
63
70
  {
64
71
  "mcpServers": {
65
72
  "vesper": {
66
- "command": "node",
67
- "args": [
68
- "/usr/local/lib/node_modules/@vespermcp/mcp-server/build/index.js"
69
- ],
73
+ "command": "vesper",
74
+ "args": [],
70
75
  "env": {
71
- "KAGGLE_USERNAME": "your-username",
72
- "KAGGLE_KEY": "your-api-key",
73
76
  "HF_TOKEN": "your-huggingface-token"
74
77
  }
75
78
  }
@@ -77,7 +80,7 @@ Add Vesper to your MCP settings file:
77
80
  }
78
81
  ```
79
82
 
80
- > **Note**: Update the path in `args` if `vesper` is not in your PATH. You can use the full path: `/usr/local/lib/node_modules/@vespermcp/mcp-server/build/index.js` (use `npm root -g` to check location).
83
+ > **Note**: If the `vesper` command isn't found, you can stick to the absolute path method.
81
84
 
82
85
  ### Environment Variables (Optional)
83
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vespermcp/mcp-server",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
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",
@@ -57,10 +57,53 @@ dirs.forEach(dir => {
57
57
 
58
58
  console.log(`✅ Data directories created at ${vesperDataDir}`);
59
59
 
60
- // 4. Display setup instructions
60
+ // 4. Auto-configure Claude Desktop (Best Effort)
61
+ console.log('\n⚙️ Attempting to auto-configure Claude Desktop...');
62
+
63
+ function getClaudeConfigPath() {
64
+ const platform = process.platform;
65
+ const home = process.env.HOME || process.env.USERPROFILE;
66
+
67
+ if (platform === 'win32') {
68
+ return path.join(process.env.APPDATA, 'Claude', 'claude_desktop_config.json');
69
+ } else if (platform === 'darwin') {
70
+ return path.join(home, 'Library', 'Application Support', 'Claude', 'claude_desktop_config.json');
71
+ }
72
+ return null;
73
+ }
74
+
75
+ const configPath = getClaudeConfigPath();
76
+
77
+ if (configPath && fs.existsSync(configPath)) {
78
+ try {
79
+ const configContent = fs.readFileSync(configPath, 'utf8');
80
+ let config = JSON.parse(configContent);
81
+
82
+ if (!config.mcpServers) config.mcpServers = {};
83
+
84
+ if (!config.mcpServers.vesper) {
85
+ config.mcpServers.vesper = {
86
+ command: "vesper",
87
+ args: [],
88
+ env: {
89
+ "HF_TOKEN": ""
90
+ }
91
+ };
92
+
93
+ fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
94
+ console.log(`✅ Automatically added 'vesper' to ${configPath}`);
95
+ } else {
96
+ console.log(`ℹ️ 'vesper' is already configured in ${configPath}`);
97
+ }
98
+ } catch (e) {
99
+ console.warn(`⚠️ Could not auto-configure Claude Desktop: ${e.message}`);
100
+ }
101
+ } else {
102
+ console.log('ℹ️ Claude Desktop config not found (skipping auto-config)');
103
+ }
104
+
61
105
  console.log('\n✨ Vesper MCP Server installed successfully!\n');
62
106
  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")');
107
+ console.log(' 1. Restart your AI assistant (Cursor/Claude)');
108
+ console.log(' 2. Try: search_datasets(query="sentiment analysis")');
66
109
  console.log('\n💡 For full documentation, visit: https://github.com/vesper/mcp-server\n');