Lines 1-21javascript
1import{Server as ke}from"@modelcontextprotocol/sdk/server/index.js";import{CallToolRequestSchema as Ce,ListToolsRequestSchema as Re}from"@modelcontextprotocol/sdk/types.js";import{scan as Z,detectFramework as Le,getContrastRatio as ee,extractSiteTheme as Te}from"@webability/core";import{execFile as Ee}from"child_process";import{promisify as Ie}from"util";import{readFileSync as Ue}from"fs";import{homedir as je}from"os";import{join as T}from"path";import Oe from"dns/promises";import{isIP as Pe}from"net";import{appendFileSync as ce,existsSync as G,mkdirSync as le,readFileSync as H,readdirSync as ...
2`),he(r)}catch{}}function V(o=20,n){try{let r=C(L(),"index.jsonl");if(!G(r))return[];let s=H(r,"utf8").trim().split(`
HighChild Process
Package source references child process execution.
dist/chunk-GELK2BL6.jsView on unpkg · L1 3`),e=[];for(let t=s.length-1;t>=0&&e.length<o;t--)try{let a=JSON.parse(s[t]);if(n&&!`${a.target} ${a.tool}`.toLowerCase().includes(n.toLowerCase()))continue;e.push(a)}catch{}return e}catch{return[]}}function K(o){try{if(!/^[\w.-]+$/.test(o))return null;let n=C(L(),`${o}.json`);return G(n)?JSON.parse(H(n,"utf8")):null}catch{return null}}function he(o){try{let n=ue(o).filter(r=>r.endsWith(".json")).sort();for(let r=0;r<n.length-ge;r++)try{de(C(o,n[r]))}catch{}}catch{}}function z(o,n){if(!n)return o;if(typeof n.url=="string")return n.url;if(typeof n.startUrl=="string"){let r=Array.isArray(n.autoN ...
4
HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/chunk-GELK2BL6.jsView on unpkg · L1 HighSandbox Evasion Gated Capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/chunk-GELK2BL6.jsView on unpkg · L1 5This MCP exposes the same scanning engine that powers the WebAbility widget and dashboard, so you can audit and fix accessibility issues from your IDE while you build.
7## Engines used by scan_page
8- WebAbility detectors (60+ rules \u2014 gradient-aware contrast, weak names, decorative-icon detection, etc.)
10- HTML_CodeSniffer (200+ rules)
11Results from all three are deduplicated into one issue list.
13## Three-tier output (since v1.2.1, mirrors axe-core)
15- **issues**: high-confidence violations \u2014 safe to act on
16- **incomplete**: needs human review \u2014 DO NOT auto-fix these. Common causes: contrast against gradient/image backgrounds, marketing-image alt text, framer-motion pre-animation states.
17- **summary**: counts by severity + an \`incomplete\` count
18When proposing fixes to the user, treat \`incomplete\` items as questions, not bugs.
21- "Scan this page / URL / localhost" \u2192 \`scan_page\`
Long lines were clipped for display.