EAC Partners Super Intelligent Solutions
 

EAC Layout

A local layout preview that runs on your computer.

EAC Layout translates HTML, Blazor (.razor), and XAML (WPF, WinUI 3, and .NET MAUI) into a static HTML preview on this computer. It can also capture a PNG with Microsoft Edge or Google Chrome when one of those browsers is already installed. The server is a local program. Your files are not uploaded, and the server does not call out to the internet.

The preview is an approximation. It is not pixel-accurate. Markup is not compiled and is not executed. This version does not give layout advice, does not score a screen, and does not change the source file. Read the privacy page before you point it at a project folder.

You need Node.js 18 or newer. The package includes a native server for Windows x64, Windows ARM64, and Linux x64 only. The .NET 8 runtime is not required on those machines. It is only a fallback when the native file for your machine is missing.

Install / launch

The launch command is the same everywhere:

bash
npx -y @eacpartners/layout-mcp@0.3.2

The npm package name is @eacpartners/layout-mcp (pinned below as @eacpartners/layout-mcp@0.3.2).

On Windows, if the app says it cannot start npx, set the command to cmd and the arguments to /c, npx, -y, @eacpartners/layout-mcp@0.3.2.

Add it to your AI app

Grok

Add this to ~/.grok/config.toml:

toml
[mcp_servers.layout]
command = "npx"
args = ["-y", "@eacpartners/layout-mcp@0.3.2"]

Or run:

bash
grok mcp add layout -- npx -y @eacpartners/layout-mcp@0.3.2

In the Grok terminal, /mcps lists the server. Start a new session after you add it.

Claude Desktop

  1. Open the Claude menu and choose Settings.
  2. Open Developer and click Edit Config.
  3. Merge this into claude_desktop_config.json (Windows: %APPDATA%\Claude\claude_desktop_config.json, macOS: ~/Library/Application Support/Claude/claude_desktop_config.json).
  4. Quit Claude Desktop and open it again.
json
{
  "mcpServers": {
    "layout": {
      "command": "npx",
      "args": ["-y", "@eacpartners/layout-mcp@0.3.2"]
    }
  }
}

ChatGPT

The ChatGPT website cannot start a program on your computer. Its apps and developer mode expect a remote address, which this server does not have.

Use the ChatGPT desktop app with Codex, or the Codex CLI. Both read ~/.codex/config.toml (Windows: %USERPROFILE%\.codex\config.toml):

toml
[mcp_servers.layout]
command = "npx"
args = ["-y", "@eacpartners/layout-mcp@0.3.2"]

You can also run:

bash
codex mcp add layout -- npx -y @eacpartners/layout-mcp@0.3.2

Stay in a local project so the server starts on your machine. Cloud tasks do not see this program.

Cursor

  1. Open Settings, then MCP.
  2. Add a server, or edit ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project only).
  3. Reload the window. Use Agent mode so the tools are available.
json
{
  "mcpServers": {
    "layout": {
      "command": "npx",
      "args": ["-y", "@eacpartners/layout-mcp@0.3.2"]
    }
  }
}

VS Code

  1. Open the Command Palette and run MCP: Add Server.
  2. Choose Command (stdio).
  3. Command: npx. Arguments: -y and @eacpartners/layout-mcp@0.3.2. Name: layout.

Or save this as .vscode/mcp.json:

json
{
  "servers": {
    "layout": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@eacpartners/layout-mcp@0.3.2"]
    }
  }
}

If the editor asks for mcpServers rather than servers, use that key and keep the same command and arguments.

Other apps

If the app has a "local MCP server" or "stdio command" field, use:

bash
npx -y @eacpartners/layout-mcp@0.3.2

Claude Code:

bash
claude mcp add layout -- npx -y @eacpartners/layout-mcp@0.3.2

Use it

Ask it to preview markup or a file on this computer.

  • "Preview this XAML at 1280 wide and show the PNG."
  • "Preview C:\repos\MyApp\MainPage.xaml with the project folder C:\repos\MyApp."
  • "Preview this Blazor component at 640, 1008, and 1440."
  • "List recent previews, then show me one."

preview_layout translates markup text and writes a preview. preview_layout_file reads one absolute local .html, .htm, .razor, or .xaml file and writes a preview. get_preview reads a preview that is already on this computer. list_previews lists recent previews.

Optional arguments include projectRoot, appXaml, theme (light, the default, dark, or highContrast), widths (a comma-separated list of up to six whole numbers from 320 to 3840, for example 640,1008,1440), includeBounds, and includeContrast. When widths is set, width is ignored, and one call returns one preview for each width. A drive root, a filesystem root, or the home directory itself is rejected as a project folder. A project folder inside the home directory is allowed. The server reads .xaml files under that folder and does not read or run other files. Directories named .git, node_modules, bin, obj, and .vs are skipped.

Limits

  • The preview is a static approximation. It is not a pixel-accurate rendering of the WinUI, WPF, or MAUI layout engine, or of a compiled Blazor app. Named rectangles, when requested, come from the HTML preview in CSS pixels. They are not exact enough, on their own, to prove a 1 px edge or a 2–4 DIP gap. Confirm those on the installed app.
  • A screenshot wait defaults to 30 seconds for one width. On Linux, one capture commonly takes about 30 seconds. Several widths share an overall wait of at most 150 seconds, or 105 seconds for three widths at the default wait. Six widths stay within 150 seconds. Widths that finish are kept. Later widths may be skipped with a warning if that overall wait is used up.
  • The package includes a native server only for Windows x64, Windows ARM64, and Linux x64. There is no native file for macOS in this version.
  • A PNG requires Microsoft Edge or Google Chrome already installed. The server does not download a browser. Setting screenshot to false does not skip the browser while bounds are still requested. Set includeBounds to false as well, or set EAC_LAYOUT_SCREENSHOT=0, to skip the browser.

Privacy

The short version: it runs only on your computer, it does not upload your files, it does not send analytics, and it does not check for updates. Previews stay in a local cache folder. The AI app you connect it to may send tool results to its own cloud service under that app's terms.

The full rules, including where previews are stored, are on the privacy page.

License

Proprietary free-to-use software from Edward Alexander, Inc. (EAC Partners). You may use it free of charge. You may not copy, modify, redistribute, or reverse engineer it. There is no warranty. Read the full license.

Product version 0.3.2.



© 2026 - EAC Partners
Privacy
An unhandled error has occurred. Reload 🗙