+1
-0
@@ -0,1 +1,2 @@ | ||
| #!/usr/bin/env node | ||
| /** | ||
@@ -2,0 +3,0 @@ * snapmcp v2 — All-in-one MCP server for visual captures. |
+4
-1
| { | ||
| "name": "snapmcp", | ||
| "version": "2.2.0", | ||
| "version": "2.2.1", | ||
| "description": "All-in-one MCP server for visual captures: terminal, code, browser, markdown, diffs, HTML, and PDF — via Playwright", | ||
@@ -28,2 +28,5 @@ "keywords": [ | ||
| "type": "module", | ||
| "bin": { | ||
| "snapmcp": "dist/index.js" | ||
| }, | ||
| "main": "dist/index.js", | ||
@@ -30,0 +33,0 @@ "directories": { |
| #!/usr/bin/env bun | ||
| import { detectChrome } from '../src/browser.js'; | ||
| try { | ||
| const chrome = detectChrome(); | ||
| if (chrome.found) console.log('snapmcp: ✓ Chrome found at', chrome.executablePath); | ||
| else console.log('snapmcp: ⚠ Run "snapmcp init" to install Chromium'); | ||
| } catch { console.log('snapmcp: Run "snapmcp init" to set up'); } | ||
| // Inline — no imports from dist/ (dist doesn't exist at install time) | ||
| const chromePaths = [ | ||
| '/usr/bin/google-chrome-stable', '/usr/bin/chromium-browser', '/usr/bin/chromium', | ||
| '/usr/bin/google-chrome', | ||
| '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', | ||
| '/Program Files/Google/Chrome/Application/chrome.exe', | ||
| '/Program Files (x86)/Google/Chrome/Application/chrome.exe', | ||
| `${process.env.LOCALAPPDATA}\\Google\\Chrome\\Application\\chrome.exe`, | ||
| `${process.env.LOCALAPPDATA}\\Chromium\\Application\\chrome.exe`, | ||
| ]; | ||
| const found = chromePaths.find((p) => { | ||
| try { return require('fs').existsSync(p); } catch { return false; } | ||
| }); | ||
| if (found) console.log('snapmcp: ✓ chrome found at', found); | ||
| else console.log('snapmcp: ⚠ run "snapmcp init" to install Chromium'); |
+2
-2
| #!/usr/bin/env bun | ||
| import { detectSystemState, bootstrapSetup, printSummary, ask, STEP, CHECK, BLUE } from "../src/setup-shared.js"; | ||
| import { detectMcpClients, registerSnapmcp, printRegistrationResults, printDetectedClients } from "../src/register.js"; | ||
| import { detectSystemState, bootstrapSetup, printSummary, ask, STEP, CHECK, BLUE } from "../dist/setup-shared.js"; | ||
| import { detectMcpClients, registerSnapmcp, printRegistrationResults, printDetectedClients } from "../dist/register.js"; | ||
@@ -5,0 +5,0 @@ async function main() { |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
186068
0.29%3989
0.25%50
6.38%