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 connectSave 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": ["*"]
}
}
}- No account to publish
- No API key
- Keep links 30 days with a free account
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": ["*"]
}
}
}No Node.js needed. Use the same entry in .mcp.json or ~/.copilot/mcp-config.json.
{
"mcpServers": {
"anyshare": {
"type": "http",
"url": "https://anyshare.ai/mcp",
"tools": ["*"]
}
}
}Put the same entry in ~/.copilot/mcp-config.json (or $COPILOT_HOME/mcp-config.json) to use it in all workspaces.
{
"mcpServers": {
"anyshare": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@anyshare/cli", "mcp"],
"tools": ["*"]
}
}
}Share a file or a whole folder (dist/, build/, out/). Prints the link; run login once to keep links in your account.
npx @anyshare/cli ./distWhat 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
- Step 1:
Add the server
Save the entry as
.mcp.jsonin your workspace root, or run “MCP: Add Server” from the Command Palette and choose a global destination. - 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.
- 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
npxwhen Copilot needs it.Team-friendly config
Commit
.mcp.jsonand 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
.envfiles, keys and.npmrcwhen 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?
Which file does VS Code read the server from?
.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?
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?
ANYSHARE_API_KEY secret so previews last 30 days instead of 1 hour. See the recipe.Do teammates need anything installed?
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.



