Install SnapCode in GitHub Copilot

Install SnapCode as a GitHub Copilot plugin in VS Code on macOS.

SnapCode runs as a GitHub Copilot plugin in VS Code: the SnapCode skills, plus the snaplogic and slpy CLIs, set up for you. It runs in chats that use the Copilot agent, which VS Code uses for new chats by default.

How SnapCode works in Copilot

  • You add the SnapLogic Model Context Protocol (MCP) server yourself. Copilot can't fill your control plane into the address of a plugin's MCP server, so the plugin doesn't ship one. To add it, refer to Add the SnapLogic MCP server.
  • The setup checklist appears in Copilot's first reply. VS Code doesn't show plugin messages, so Copilot repeats the checklist when you send your first message.
  • snaplogic and slpy aren't on your PATH. Copilot runs them by their full path, which the plugin gives it at the start of each chat.

Prerequisites

Install these tools on your machine before you install SnapCode:

Tool Why How to check
VS Code with GitHub Copilot, agent mode Runs the plugin Help > About
Python 3.8+ Runs the plugin's setup python3 --version
uv Installs the slpy CLI. If not already installed, refer to Install uv. uv --version

Add your SnapLogic control plane URL to your shell profile (~/.zshrc), written as https://host with no trailing /:

export SNAPLOGIC_BASE_URL='https://elastic.snaplogic.com'

To sign the CLIs in with a username and password instead of the browser, also add:

export SNAPLOGIC_API_USER='[email protected]'
export SNAPLOGIC_API_PASS='your-password'
export SNAPLOGIC_ORG_NAME='your-org-name'

VS Code reads these variables when it starts, so restart VS Code after you change them.

Install the plugin

Install SnapCode with /plugin commands in a Copilot chat, not from the Customizations view. The commands that update SnapCode (refer to Update SnapCode) only find a plugin installed with /plugin.

If snapcode is already installed in VS Code, remove it first, so only one copy loads:

  • Installed with /plugin: Send /plugin uninstall snapcode@snapcode in a Copilot chat.
  • Installed from the Customizations view: Uninstall it under Plugins > User.

Then:

  1. Open the Copilot Chat view in Agent mode and start a new chat. The chat title starts with Copilot ·, which shows the chat uses the Copilot agent.
  2. Send this command:
    /plugin marketplace add Snap-Developers/SnapCode-CC-Plugin
  3. Then send:
    /plugin install snapcode@snapcode
    It replies with the version it installed and Installed 5 skills.

Under Plugins > User in the Customizations view, snapcode shows 5 skills · 1 hook.

Add the SnapLogic MCP server

  1. Press Cmd+Shift+P, type MCP: Open User Configuration, and press Enter. It opens ~/.copilot/mcp-config.json.
  2. Add the snaplogic server below. Replace <your-control-plane> with the host from your SNAPLOGIC_BASE_URL, for example elastic.snaplogic.com:
    {
      "mcpServers": {
        "snaplogic": {
          "type": "http",
          "url": "https://<your-control-plane>/api/1/rest/public/platform_mcp/mcp",
          "headers": {
            "X-MCP-Tool-Profile": "snapcode"
          }
        }
      }
    }

If the file already has an mcpServers block, add snaplogic inside it.

Start a chat

  1. Start a new chat in Agent mode and send any message.
  2. The first time, the plugin downloads the snaplogic CLI. Copilot then starts its reply with the SnapCode checklist.
    • If you set SNAPLOGIC_API_USER and SNAPLOGIC_API_PASS (refer to Prerequisites), the plugin also installs slpy, and every item shows [ok].
    • If you sign in through the browser, Sign-in and SLPy show [x] in this first chat, because slpy is installed only after you sign in. Run the auth login command that the checklist shows in a terminal, then start a new chat. Every item then shows [ok].

    Paste the auth login command as one line. If it breaks across lines, the terminal reports No such file or directory.

  3. When VS Code shows Authenticate for the snaplogic MCP server, select it and sign in to SnapLogic in your browser. If VS Code already has a SnapLogic sign-in saved, it connects without asking. To check the connection, ask Copilot to list the Snaplexes in your Org. The answer comes from the SnapLogic MCP server.

If Copilot says SnapCode is still finishing its setup, the first install is taking longer than Copilot allows when a chat starts, usually on a slow network. The install carries on in the background, and the first slpy command waits for it. Its log is the setup.log file that the message names.

Update SnapCode

VS Code doesn't update SnapCode by itself. To update it, send these two commands in a Copilot chat, one at a time:

/plugin marketplace update snapcode
/plugin update snapcode@snapcode

The second command replies with the version it installed. Start a new chat to use it.

Known limitations

  • macOS only. Windows isn't supported yet.
  • The checklist depends on the model. Copilot shows you nothing from the plugin's setup, so the checklist appears only when the model repeats it, and its layout can differ between models.
  • Sign-in for the MCP server is through the browser only. The CLIs use a username and password in the environment, but the MCP server doesn't.
  • Small models can lose SnapCode's tools in a long chat. After Copilot compacts a chat, a small model can lose the SnapLogic MCP tools and report results it never got. Refer to Choose a model.

Troubleshooting

Refer to the GitHub Copilot section of Troubleshoot SnapCode.