For GitHub Copilot

Hosting for GitHub Copilot

Share what GitHub Copilot builds: add the anyshare MCP server to VS Code, and Copilot’s agent can publish a page, report or build folder and reply with a live link.

Workspace .mcp.json

More ways to connect

Save at the workspace root. Commit it and everyone on the project gets the same tool.

{
  "mcpServers": {
    "anyshare": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@anyshare/cli", "mcp"],
      "tools": ["*"]
    }
  }
}

From agent mode to a URL

Copilot’s agent mode in VS Code can call MCP tools. With anyshare added, “share it” becomes a tool call: Copilot passes a file or folder path, the server uploads it, and the link comes back in the chat.

VS Code reads the portable configuration from .mcp.json at the workspace root, which you can commit for the whole team, or from ~/.copilot/mcp-config.json (or $COPILOT_HOME/mcp-config.json) for every workspace. You can also run “MCP: Add Server” from the Command Palette and let VS Code write the entry.

Setup

Connect VS Code

The local server needs Node.js 20+ and reads files from disk. The remote server needs nothing installed.

Pick one

Save at the workspace root. Commit it and everyone on the project gets the same tool.

{
  "mcpServers": {
    "anyshare": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@anyshare/cli", "mcp"],
      "tools": ["*"]
    }
  }
}

What exists for GitHub Copilot

Copilot connects through the standard anyshare MCP server; there’s no Copilot extension. VS Code reads it from a workspace .mcp.json or your Copilot user config, in the portable mcpServers format.

Then just ask

  • “build the project and share dist/ with anyshare”
  • “share the playwright-report folder so I can paste the link in the PR”
  • “publish docs/architecture.md as a page”
  • “update that anyshare link with the new build”

When it’s shared

What Copilot can hand you a link to

Build folders become websites, test and coverage reports open as pages, and source files get syntax highlighting with line numbers.

  • Builds as working websites
  • HTML test and coverage reports
  • Code with linkable line ranges
  • Docs as clean reading pages

How it works

Set it up in three steps

  1. Step 1:

    Add the server

    Save the entry as .mcp.json in your workspace root, or run “MCP: Add Server” from the Command Palette and choose a global destination.

  2. Step 2:

    Use agent mode

    Open Copilot Chat in agent mode; anyshare’s tools show up in the tool list. Approve the first call if VS Code asks.

  3. Step 3:

    Get the link

    Ask “build the project and share dist/ with anyshare”. Copilot replies with the URL.

The details

Why it fits a Copilot workflow

  • Standard MCP, nothing else to install

    No VS Code extension. The server starts with npx when Copilot needs it.

  • Team-friendly config

    Commit .mcp.json and everyone who opens the workspace gets the same share tool, with nothing secret in the file.

  • Links for pull requests

    Share an HTML test report or coverage page and paste the link into a review. For links on every pull request, see the GitHub Actions recipe.

  • Secrets stay out

    The local server skips .env files, keys and .npmrc when sharing folders, and refuses if one is named directly.

  • Free limits

    50 MB and 1,000 files per upload, no account to publish. Links last 1 hour, or 30 days once kept in a free account.

FAQ

Questions, answered.

Is there a GitHub Copilot extension for anyshare?
No. Copilot uses the standard MCP server, which gives its agent publish, update, delete and list tools without an extension.
Which file does VS Code read the server from?
The portable format lives in .mcp.json at the workspace root or in ~/.copilot/mcp-config.json. VS Code still reads older .vscode/mcp.json files that use a servers key, but new setups should use the mcpServers format shown here.
What does Copilot reply with after it shares?
A link such as https://sunny-otter-4821.anyshare.site. Without an account a link expires after 1 hour unless you keep it (then 30 days); with the local server, Copilot can update the same link later because the token is saved on your machine.
Can I publish previews from CI instead?
Yes. The CLI runs in a GitHub Actions step without a login and prints only the URL, which another step can post as a pull request comment. Set an ANYSHARE_API_KEY secret so previews last 30 days instead of 1 hour. See the recipe.
Do teammates need anything installed?
Node.js 20 or newer for the local server, or nothing at all with the remote one. People who only open the links need just a browser.

Give your agent a URL for any file.

One step to connect, no account or API key. It hands you back a link anyone can open, and a claim link to keep it.