惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
博客园 - 【当耐特】
量子位
博客园 - 叶小钗
有赞技术团队
有赞技术团队
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
博客园 - 司徒正美
爱范儿
爱范儿
美团技术团队
小众软件
小众软件
酷 壳 – CoolShell
酷 壳 – CoolShell
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
V2EX
罗磊的独立博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
Hugging Face - Blog
Hugging Face - Blog
I
InfoQ
D
DataBreaches.Net
宝玉的分享
宝玉的分享

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
A rival to my open-source tool shipped. I read all of it ...
אחיה כהן · 2026-06-19 · via DEV Community

A new MCP server showed up in the official Model Context Protocol registry last week, three slots above mine: safari-devtools-mcp. Same platform (macOS), same browser (Safari), same audience (AI coding agents). My first reaction was the honest one — a small jolt of oh no. My second reaction was more useful: I cloned it and read the entire thing.

I maintain Safari MCP — a browser-automation server that drives your real, logged-in Safari through AppleScript and a native extension. No Chromium, no headless, no second browser melting your fan. So a competitor called "Safari DevTools MCP" is squarely in my lane.

Here's what I found, what I deliberately didn't copy, and the four tools I shipped into my own server before dinner.

The architectural fork in the road

The very first line of its package.json told me most of the story:

"dependencies": {
  "selenium-webdriver": "...",
  "@modelcontextprotocol/sdk": "...",
  "zod": "..."
}

It drives Safari through safaridriver — Apple's official WebDriver. That's a legitimate, well-supported choice. But it's the exact choice my project exists to avoid. A WebDriver session launches a clean, isolated automation instance of Safari: no cookies, no logins, no sessions, a "Safari is controlled by automation" banner across the top. It's the headless-browser problem wearing a Safari costume.

Safari MCP does the opposite: it talks to the Safari you already have open, with all your auth intact, and never steals your foreground.

So I wasn't going to rip out my engine. Architecture is a position, not a feature. Copying it would erase the entire reason my tool exists.

But tools are a different question.

Diffing 48 tools against my 91

I dumped both tool lists and diff'd them. ~44 of its 48 tools mapped cleanly onto something I already had — click, fill, screenshot, get_cookies, network capture, the usual surface area.

Then there was a cluster of four that I had nothing equivalent to:

  • inspect_viewport_meta
  • get_safe_area_insets
  • check_ios_web_app_readiness
  • check_webkit_compatibility

This is a genuinely smart niche: iOS-Safari web-dev validation. The stuff every mobile web developer fights with — the notch, the viewport meta tag, "why won't my PWA add to the home screen," and Safari's long tail of CSS quirks. My server could automate Safari all day but couldn't answer any of those questions.

And here's the part that made it a no-brainer: all four are pure JavaScript inspection. No WebDriver capability, no protocol magic — just document.querySelector, getComputedStyle, and CSS.supports() run inside the page. Which means they port directly onto my AppleScript do JavaScript engine. The competitor's architecture wasn't portable. Its best ideas were.

The one I like most: compatibility checking with zero false positives

Most "is this CSS supported in Safari?" tools work off a static database (think caniuse). They go stale, and they can't see your actual Safari version.

check_webkit_compatibility does something better. It walks every stylesheet on the page, pulls each property: value pair via the structured CSSOM (no regex — so custom properties don't create false positives), and then asks the live browser the only question that matters:

CSS.supports(property, value)  // tested in THIS Safari, right now

If it fails unprefixed, it retries with -webkit-. If that works, it tells you to add the prefix. If neither works, it's genuinely unsupported here. Then it layers on a tiny hand-curated list of behavioral quirks CSS.supports() can't catch — like the classic:

position: sticky silently fails inside an overflow: hidden/auto ancestor. Use overflow: clip instead.

I reimplemented it as a synchronous IIFE returning JSON (my engine can't await inside do JavaScript — a [object Promise] lesson I've written about before), wired it into a safari_webkit_compat tool, and tested it against a live page with a deliberately sticky header:

{ "totalProperties": 6, "ok": false,
  "quirks": ["position:sticky silently fails inside an overflow:hidden/auto ancestor…"] }

Caught it. The other three — safari_inspect_viewport, safari_safe_area_insets, safari_check_pwa — went in the same way, each verified against a controlled DOM in real Safari before I trusted it.

What I took, and what competition is actually for

I ported four ideas. I rewrote every line to fit my engine and my conventions, credited the inspiration, and skipped the parts that conflicted with what my project is. That feels like the honest version of "competition makes everything better" — not a press-release platitude, but a real afternoon of reading someone else's careful work and being better for it.

A rival didn't make my tool worse. It handed me a roadmap for a category — iOS web-dev validation — I hadn't even thought to cover.

If you're building on macOS and want an agent that drives your actual Safari (logged in, no headless), it's one line: npx safari-mcp. The four new validators shipped in v2.14.0 (out now). More at achiya-automation.com.

Question for the room: when a competitor ships, do you read their code? I used to skip it out of some weird pride. I don't anymore. Where do you land — study it closely, or deliberately look away to protect your own taste?