@vespermcp/mcp-server 1.0.2 → 1.0.3

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
@@ -63,13 +63,9 @@ Add Vesper to your MCP settings file:
63
63
  {
64
64
  "mcpServers": {
65
65
  "vesper": {
66
- "command": "node",
67
- "args": [
68
- "/usr/local/lib/node_modules/@vespermcp/mcp-server/build/index.js"
69
- ],
66
+ "command": "vesper",
67
+ "args": [],
70
68
  "env": {
71
- "KAGGLE_USERNAME": "your-username",
72
- "KAGGLE_KEY": "your-api-key",
73
69
  "HF_TOKEN": "your-huggingface-token"
74
70
  }
75
71
  }
@@ -77,7 +73,7 @@ Add Vesper to your MCP settings file:
77
73
  }
78
74
  ```
79
75
 
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).
76
+ > **Note**: If the `vesper` command isn't found, you can stick to the absolute path method.
81
77
 
82
78
  ### Environment Variables (Optional)
83
79
 
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.3",
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');