View as Markdown

Polygrid Maps for VS Code and GitHub Copilot

Add the MCP server, then use Copilot in agent mode. Maps show inline in the chat.

Install

Paste this into your agent

Add the Polygrid Maps MCP server to VS Code by running: code --add-mcp '{"name":"polygrid-maps","type":"http","url":"https://maps.polygrid.dev/mcp"}' If the code command is not available, add the server https://maps.polygrid.dev/mcp (type http) to .vscode/mcp.json instead. Details: https://maps.polygrid.dev/docs/agents/vscode. Then make a test map of three well-known places in my city and send me the link. Don't wait for a restart: the skill is already on disk, so read its skills/create-map/SKILL.md and run its scripts/publish.py directly. If this environment can't reach maps.polygrid.dev (sandbox, proxy or network allowlist), still make the map: publish.py then prints a publish link that opens the map in my own browser, ready to publish with one click. Send me that link. If you have no skill script, build that link yourself: https://maps.polygrid.dev/new#c= followed by the map request as JSON, base64url-encoded (details in https://maps.polygrid.dev/llms.txt). Then report back in two or three plain lines: that it is ready, the link, and one example of what I can ask next. Don't send me to add connectors, change network settings or ask an admin: a blocked network is handled by the publish link. Mention a restart only if it is really needed, as a short side note.

1. MCP server (recommended)

Run this in a terminal (per the client's docs), or use MCP: Add Server from the Command Palette and choose HTTP:

code --add-mcp '{"name":"polygrid-maps","type":"http","url":"https://maps.polygrid.dev/mcp"}'

2. Manual

Add this to .vscode/mcp.json in your workspace, or to your user mcp.json (MCP: Open User Configuration):

{
  "servers": {
    "polygrid-maps": { "type": "http", "url": "https://maps.polygrid.dev/mcp" }
  }
}

3. Skill

For the create-map skill as well, install it from the repository (see Skill only).

What it adds

  • The tools create_map, get_map and update_map, available to Copilot in agent mode.
  • The map renders inline in the chat (MCP Apps), with the link below it.

Verify it works

Open the Chat view, switch to Agent mode and click the tools icon: polygrid-maps should be listed with three tools. Or run MCP: List Servers and check that it is running. Then ask for a map (see Next steps) and approve the tool call.

Next steps