
How to Build an MCP Server for Browser Automation: From STDIO to Headless Chromium
A hands-on breakdown of building @amitnarw/web-mcp: protocol lifecycle, managing isolated browser tabs, bidirectional JSON-RPC, and securing agent execution.
Insights on design, development, and technology from my experience building digital products.

A hands-on breakdown of building @amitnarw/web-mcp: protocol lifecycle, managing isolated browser tabs, bidirectional JSON-RPC, and securing agent execution.

Why naive agent prompts yield messy CSS, and how structured token systems, AGENTS.md, visual verification loops, and deterministic component contracts produce production-ready UI.

Stop agent hallucinations on existing projects: context budgeting, AST indexing, architecture maps, and deterministic repository packing.

A factual deep-dive into Turbopack production builds, fine-grained cache life directives, V8 compile cache improvements, and building agent-ready endpoints.

A forensic analysis of the TeamPCP security incident: how a compromised CI/CD dependency bypassed static checks, harvested environment variables, and how to defend AI gateways.

How to structure Next.js App Router applications for traditional search engines and AI answer engines using verified structured data and dynamic sitemaps.

A production engineering guide to Lua-backed atomic state transitions, sandboxed Node.js worker pools, backoff retry policies, and telemetry with BullMQ.

Real-world tuning for high-throughput Postgres: Linux io_uring asynchronous I/O, skip scan query planner mechanics, and eliminating B-tree fragmentation with sequential UUIDv7.