Skip to content
Preprint

Secret MCP: Evidence-Bounded and Context-Isolated Design Specification Generation from Web Screenshots

Aug 2026 · 0 citations · 13 references
Computer Science

TL;DR

This work presents Secret MCP, an open-source local system that produces one auditable design specification per public web reference, and establishes orchestration invariants and syntactic contract compliance despite MCP sampling's 2026 deprecation.

Abstract

Screenshot-to-code systems optimize for rendered implementations, but screenshots omit document structure, interaction logic, responsive rules, and provenance needed to distinguish observation from guesswork. Multi-reference prompts also risk contaminating one reference with evidence or inferences from another. We present Secret MCP, an open-source local system that produces one auditable design specification per public web reference. It separates retrieval, evidence preparation, model invocation, storage, and inspection. Long captures are resized and tiled with overlap; evidence records preserve prepared- and source-space coordinates and a measured color palette. A 19-section contract covers page inventories, navigation geometry, responsive matrices, components, accessibility, acceptance criteria, and explicit labels for measured, observed, inferred, and unknown claims. References are processed sequentially through a sampler interface. The evaluated MCP adapter sends one sampling/createMessage request per reference with includeContext set to none; a fresh-process adapter provides a stronger boundary. We evaluate commit c130c9c at two levels. A live retrieval and fixture-model integration run selected two references after excluding a third, prepared nine evidence images, issued two sampling requests, and produced two documents with zero cross-reference identifier occurrences. A static audit of three externally generated design indexes found all 19 required sections in every document, one unique reference identifier per document, eight page specifications, 1,943 pixel-valued measurements, and 319 color literals. These tests establish orchestration invariants and syntactic contract compliance, not semantic or visual reconstruction accuracy. The sampler abstraction preserves these boundaries across direct model APIs and transports despite MCP sampling's 2026 deprecation.

View source

Similar papers

Book Open access Oct 2026

Technē: A Deterministic Craft Layer for Model Context Protocol Servers, Grounded in LLM-Authored X3D

When a language model builds 3D content by calling tools through the Model Context Protocol (MCP), the JSON Schema ensures each call is well-formed—but not that the result will render correctly. A texture placed in the wrong slot vanishes. A humanoid skeleton routed to the wrong parent field is invisible. The schema pa...

Alexander Hoffman · 0 citations
#artificial intelligence Preprint Oct 2026

WebUIProof: Benchmarking WebUI Code Generators with UI-Agent Execution Harness

Evaluating WebUI code generation at scale is difficult: outputs may compile and look plausible yet fail under user interaction, and prior benchmarks largely rely on free-form prompts with static checks (build success, screenshots) that miss functional correctness. We introduce WebUIProof, an execution-oriented benchmar...

Yun-Yun Tsai, Yu-Ning Mao, Shi-Qi Wang et al. · 0 citations
Book Open access Oct 2026

A Stage-Aware Tool for Modelling and Verifying CI/CD Security Evidence

Continuous integration and continuous deployment pipelines produce security-relevant records across source, build, test, package, deployment, and runtime environments. However, these records remain fragmented across logs, scanner findings, policy decisions, identity events, artefact metadata, and runtime alerts, limiti...

Sabbir M. Saleh, N. Madhavji, John Steinbacher · 0 citations
Preprint Sep 2026

IChart2Code: Benchmarking Multimodal Large Language Models for Interactive Chart Code Generation

Interactive chart code generation requires models to reproduce a reference chart's appearance and underlying data and correctly implement the state changes triggered by specified user interactions. Existing chart-to-code benchmarks focus on static outputs and lack task representations or evaluation protocols for intera...

Xu Zhang, Hong-Zhang Zheng, Zhi-Lin Huang et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Probe to Act: Elevating Browser-Use Agent via Active Visual Probing

Investigation to Act (P2A) is introduced, an active probing framework for the browser-agent loop that addresses an asymmetric bridge between symbolic DOM hypotheses and screenshot layout by rendering on-demand symbolic DOM structure back into pixels.

Ke-Liang Li, Heng Wang, Chen Hu et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.