GitHub Copilot: get UI context into the editor
Copilot reads every file in the repo and none of the page you are looking at. Bring the element's source and line in over MCP, or paste it.
Copilot lives in the editor. That is both its advantage and its blind spot: it can read every file in the repository, and none of the page you are actually looking at.
What Copilot cannot see
The rendered DOM. Which component produced a given node. Whether the gap you circled is margin on the card or padding inside the row. None of it exists in the file tree, so the prompt turns into a description and the agent turns the description back into a guess.
Two ways to bring the context in
Paste it
The shortest route. Select the element in Curxor, copy the context, paste it into Copilot Chat. No setup, and it works in every surface where you can type a prompt.
Over MCP
VS Code can run MCP servers, and Curxor ships one — curxor-mcp — that exposes the same element contexts over a loopback service. Connected once, Copilot can ask for the current selection instead of you describing it.
you: change the spacing on the element I just selected
copilot → curxor-mcp (current selection)
← { tag, class, source: "src/components/PricingCard.tsx:41", text }- Open the project you are running in Curxor's built-in browser and select the element.
- Register the bundled
curxor-mcpserver in your MCP configuration. - Ask Copilot for the current selection — it gets the same context the clipboard would have carried.
When pasting is enough
Most days, it is. MCP earns its setup when you are making many small UI edits on the same page: the difference is not capability, it is whether you want to switch windows between selecting and asking.
Copilot Edits is where it matters most
Cross-file editing is exactly where a wrong starting file becomes expensive — one edit in a shared component and three screens move. Element context narrows the starting point before the first edit, which is the only moment it is cheap to narrow.
The reasoning behind the split — screenshots for appearance, element context for location — is in visual context for AI agents. For the two agents Curxor drives directly, see Claude Code and Cursor.
Download Curxor for macOS — the MCP server is included, not a separate install.
Questions this raises
Do I need a Curxor extension for VS Code?
No. The context is plain text, so pasting works in any Copilot surface. The bundled MCP server is optional and connects from outside the editor.
Does the MCP server send my code anywhere?
No. It listens on loopback and source parsing runs on your machine; nothing is uploaded to Curxor.
Does this work outside VS Code?
The MCP server is client-agnostic, so any MCP client can connect. Agents are a separate axis: Claude Code and Cursor are built into Curxor, and any ACP-compatible agent can be added.