MCP.so
Sign In

Layout Debug MCP Server

@AntonChuraev99

Basic information

Category

Other

Last updated

License

MIT

Author

AntonChuraev99

About Layout Debug MCP Server

Point at a layer in a live UI (web DOM, Android Compose), drag it on the real screen, hand it to your AI agent via MCP

Layout Debug MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "Layout-debug-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "layout-debug-mcp"
      ],
      "env": {
        "LD_TARGET": "android",
        "LD_DEVICE": "emulator-5554"
      }
    }
  }
}

Layout Debug MCP Server tools

6

Starts the local server if it isn't running, opens the window, and tells the agent to start listening

Waits for the next message or edit from the window and returns it with the element's artifacts. Returns "no message yet" after the timeout, and the agent calls it again

Writes to the window's chat: what changed, which files, what's left. With `requestId` it closes exactly that request

Tree of the latest snapshot: nodes, sizes, anchors for finding them in code. Depth-limited

What the user has selected in the window right now: box, anchors, parent chain, live tweaks

All requests sent from the window, for agents that don't listen

Overview

What is Layout Debug?

Point at a layer in a live UI (web DOM, Android Compose), drag it on the real screen, hand it to your AI agent via MCP

How to use Layout Debug?

The README includes setup instructions such as { "command": "npx", "args": ["-y", "layout-debug-mcp"] }.

Key features of Layout Debug

  • Light install. npx -y layout-debug-mcp downloads only this package: no agent runtime, no model SDK
  • English and Russian UI, switchable in the header
  • Node.js 22.12+ (20.19+ also works)
  • Chrome, Edge, Firefox or another current browser for the window
  • For Android: adb in PATH and an app built in debug with the on-device agent (see Android)

Use cases of Layout Debug

  • Connect an MCP-compatible client to this repository's service.
  • Review the README-backed setup before enabling it in production.

Frequently asked questions

1

Where is the source code for Layout Debug?

The source code is linked from the repository URL on this page.

2

Does Layout Debug include a standard MCP config?

If the README contains a parseable MCP configuration block, it is shown in the Config tab.

Comments

More Other MCP servers