New:Socket for Asana Is Now Available.Learn more
Get Started

snapmcp

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snapmcp - npm Package Compare versions

Comparing version
2.2.0
to
2.2.1
+1
-0
dist/index.js

@@ -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');
#!/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() {