@vibescope/mcp-server 0.3.4 → 0.3.5
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/dist/cli-init.js +18 -15
- package/docs/TOOLS.md +26 -2
- package/package.json +1 -1
- package/src/cli-init.ts +20 -17
package/dist/cli-init.js
CHANGED
|
@@ -173,24 +173,27 @@ function detectAgents() {
|
|
|
173
173
|
// Agent Configurators
|
|
174
174
|
// ============================================================================
|
|
175
175
|
async function configureClaudeCode(apiKey) {
|
|
176
|
-
//
|
|
177
|
-
try {
|
|
178
|
-
execSync('claude --version', { stdio: 'pipe', timeout: 5000 });
|
|
179
|
-
// Use project scope for claude mcp add
|
|
180
|
-
try {
|
|
181
|
-
execSync(`claude mcp add vibescope -e VIBESCOPE_API_KEY=${apiKey} -- npx -y -p @vibescope/mcp-server@latest vibescope-mcp`, { stdio: 'pipe', timeout: 15000 });
|
|
182
|
-
console.log(` ${icon.check} Claude Code configured via ${c.cyan}claude mcp add${c.reset}`);
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
catch {
|
|
186
|
-
// claude mcp add not available (older version), fall through to manual config
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
catch { /* claude CLI not available */ }
|
|
190
|
-
// Fallback: write .mcp.json
|
|
176
|
+
// Write project-level .mcp.json (works reliably across all platforms)
|
|
191
177
|
const configPath = join(process.cwd(), '.mcp.json');
|
|
192
178
|
writeMcpJson(configPath, apiKey);
|
|
193
179
|
console.log(` ${icon.check} Wrote ${c.cyan}.mcp.json${c.reset} (Claude Code project config)`);
|
|
180
|
+
// Also offer to write user-level config for global access
|
|
181
|
+
const globalConfig = platform() === 'win32'
|
|
182
|
+
? join(homedir(), '.claude', 'settings.json')
|
|
183
|
+
: join(homedir(), '.claude', 'settings.json');
|
|
184
|
+
const addGlobal = await promptConfirm(` Also add Vibescope globally (all projects)?`, true);
|
|
185
|
+
if (addGlobal) {
|
|
186
|
+
const existing = readJsonFile(globalConfig);
|
|
187
|
+
const mcpServers = existing.mcpServers || {};
|
|
188
|
+
mcpServers['vibescope'] = {
|
|
189
|
+
command: 'npx',
|
|
190
|
+
args: ['-y', '-p', '@vibescope/mcp-server@latest', 'vibescope-mcp'],
|
|
191
|
+
env: { VIBESCOPE_API_KEY: apiKey },
|
|
192
|
+
};
|
|
193
|
+
existing.mcpServers = mcpServers;
|
|
194
|
+
writeJsonFile(globalConfig, existing);
|
|
195
|
+
console.log(` ${icon.check} Wrote ${c.cyan}~/.claude/settings.json${c.reset} (global config)`);
|
|
196
|
+
}
|
|
194
197
|
}
|
|
195
198
|
async function configureCursor(apiKey) {
|
|
196
199
|
const configPath = join(process.cwd(), '.cursor', 'mcp.json');
|
package/docs/TOOLS.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
> Auto-generated from tool definitions. Do not edit manually.
|
|
4
4
|
>
|
|
5
|
-
> Generated: 2026-02-
|
|
5
|
+
> Generated: 2026-02-12
|
|
6
6
|
>
|
|
7
|
-
> Total tools:
|
|
7
|
+
> Total tools: 156
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
10
10
|
|
|
@@ -2457,3 +2457,27 @@ Use this to check the state of cloud agents before/after cleanup.
|
|
|
2457
2457
|
| `status` | `"starting" | "running" | "stopped" | "failed" | "all"` | No | Filter by status (default: all) |
|
|
2458
2458
|
|
|
2459
2459
|
---
|
|
2460
|
+
|
|
2461
|
+
## Uncategorized
|
|
2462
|
+
|
|
2463
|
+
*Tools not yet assigned to a category*
|
|
2464
|
+
|
|
2465
|
+
### check_mcp_version
|
|
2466
|
+
|
|
2467
|
+
Check if the Vibescope MCP server is up to date. Compares the locally installed version against the latest published version on npm. Call this when starting a session or when the server instructions indicate an update is available.
|
|
2468
|
+
|
|
2469
|
+
**Parameters:** None
|
|
2470
|
+
|
|
2471
|
+
---
|
|
2472
|
+
|
|
2473
|
+
### update_mcp_server
|
|
2474
|
+
|
|
2475
|
+
Update the Vibescope MCP server to the latest version. Runs npm install to fetch the latest version. After updating, the server must be restarted (the agent should ask the user to restart their MCP client/editor). Only call this when the user agrees to update.
|
|
2476
|
+
|
|
2477
|
+
**Parameters:**
|
|
2478
|
+
|
|
2479
|
+
| Parameter | Type | Required | Description |
|
|
2480
|
+
|-----------|------|----------|-------------|
|
|
2481
|
+
| `global` | `boolean` | No | If true, update the global installation (npm install -g). If false, update locally. Default: true. |
|
|
2482
|
+
|
|
2483
|
+
---
|
package/package.json
CHANGED
package/src/cli-init.ts
CHANGED
|
@@ -204,26 +204,29 @@ function detectAgents(): Agent[] {
|
|
|
204
204
|
// ============================================================================
|
|
205
205
|
|
|
206
206
|
async function configureClaudeCode(apiKey: string): Promise<void> {
|
|
207
|
-
//
|
|
208
|
-
try {
|
|
209
|
-
execSync('claude --version', { stdio: 'pipe', timeout: 5000 });
|
|
210
|
-
// Use project scope for claude mcp add
|
|
211
|
-
try {
|
|
212
|
-
execSync(
|
|
213
|
-
`claude mcp add vibescope -e VIBESCOPE_API_KEY=${apiKey} -- npx -y -p @vibescope/mcp-server@latest vibescope-mcp`,
|
|
214
|
-
{ stdio: 'pipe', timeout: 15000 }
|
|
215
|
-
);
|
|
216
|
-
console.log(` ${icon.check} Claude Code configured via ${c.cyan}claude mcp add${c.reset}`);
|
|
217
|
-
return;
|
|
218
|
-
} catch {
|
|
219
|
-
// claude mcp add not available (older version), fall through to manual config
|
|
220
|
-
}
|
|
221
|
-
} catch { /* claude CLI not available */ }
|
|
222
|
-
|
|
223
|
-
// Fallback: write .mcp.json
|
|
207
|
+
// Write project-level .mcp.json (works reliably across all platforms)
|
|
224
208
|
const configPath = join(process.cwd(), '.mcp.json');
|
|
225
209
|
writeMcpJson(configPath, apiKey);
|
|
226
210
|
console.log(` ${icon.check} Wrote ${c.cyan}.mcp.json${c.reset} (Claude Code project config)`);
|
|
211
|
+
|
|
212
|
+
// Also offer to write user-level config for global access
|
|
213
|
+
const globalConfig = platform() === 'win32'
|
|
214
|
+
? join(homedir(), '.claude', 'settings.json')
|
|
215
|
+
: join(homedir(), '.claude', 'settings.json');
|
|
216
|
+
|
|
217
|
+
const addGlobal = await promptConfirm(` Also add Vibescope globally (all projects)?`, true);
|
|
218
|
+
if (addGlobal) {
|
|
219
|
+
const existing = readJsonFile(globalConfig);
|
|
220
|
+
const mcpServers = (existing.mcpServers as Record<string, unknown>) || {};
|
|
221
|
+
mcpServers['vibescope'] = {
|
|
222
|
+
command: 'npx',
|
|
223
|
+
args: ['-y', '-p', '@vibescope/mcp-server@latest', 'vibescope-mcp'],
|
|
224
|
+
env: { VIBESCOPE_API_KEY: apiKey },
|
|
225
|
+
};
|
|
226
|
+
existing.mcpServers = mcpServers;
|
|
227
|
+
writeJsonFile(globalConfig, existing);
|
|
228
|
+
console.log(` ${icon.check} Wrote ${c.cyan}~/.claude/settings.json${c.reset} (global config)`);
|
|
229
|
+
}
|
|
227
230
|
}
|
|
228
231
|
|
|
229
232
|
async function configureCursor(apiKey: string): Promise<void> {
|