+
VS Code + Wayfern
The agent in VS Code knows your workspace. A docs page, a search result or your production site is outside it, and pages that block bots return a challenge page to a plain fetch.
Add Wayfern as an MCP server, and the agent calls scrape_page, search_web and capture_screenshot from the chat. VS Code opens the Wayfern sign-in on the first connection.
Show All Commands⇧⌘P
Go to File⌘P
Open Chat⌃⌘I
1{
2"mcpServers": {
✓ Running | Stop | Restart
3"wayfern": {
4"type": "http",
5"url": "https://api.wayfern.com/mcp"
6}
7}
8}
Ask in agent mode
List the TypeScript 6.0 changes that break this workspace.
Running scrape_page
Ran scrape_page
wayfern (MCP Server) · …/typescript-6-0
Three changes break this workspace:
1. types is [] by default. Add "node" in tsconfig.json.
2. baseUrl is deprecated. 14 imports in src use it.
3. strict is on by default. 6 new errors in src/db.
credits_charged: 1
Ask about your workspace
Agent Auto
>MCP: Add Server
MCP: Add Serverrecently used
MCP: List Servers
MCP: Browse MCP Servers
Choose the type of MCP server to add
Command (stdio)
HTTP (HTTP or Server-Sent Events)
https://api.wayfern.com/mcp
Enter the server URL. Press Enter to confirm.
wayfern
Enter the server ID. Press Enter to confirm.
wayfern.com/oauth/authorize
VS Code wants to use your Wayfern account
It can call the Wayfern tools and spend your credits.
Signed in. Back to VS Code.
Setup
These steps follow VS Code's guided flow. Turn on the AI features in VS Code first.
Open the Command Palette and run MCP: Add Server. Choose HTTP (HTTP or Server-Sent Events).
Paste the server URL. Enter wayfern as the server ID.
URL
https://api.wayfern.com/mcpFor all your workspaces, select Global, then Copilot Global. VS Code writes the server to this file.
~/.copilot/mcp-config.json
{
"mcpServers": {
"wayfern": { "type": "http", "url": "https://api.wayfern.com/mcp" }
}
}Review the trust prompt before you accept it. A browser window opens on wayfern.com on the first connection. Sign in and click Allow.
prompt
Read the TypeScript 6.0 release notes and list the changes that break code in this workspace.To share the server with a repo, use .vscode/mcp.json with the top key servers. VS Code keeps this file for compatibility, and the guided flow marks it as deprecated.
.vscode/mcp.json
{
"servers": {
"wayfern": { "type": "http", "url": "https://api.wayfern.com/mcp" }
}
}code --add-mcp adds the server to your VS Code user profile configuration.
bash
code --add-mcp '{"name":"wayfern","type":"http","url":"https://api.wayfern.com/mcp"}'For a machine where no one signs in. The Copilot Global file reads ${WAYFERN_API_TOKEN} from the environment in header values.
~/.copilot/mcp-config.json
{
"mcpServers": {
"wayfern": {
"type": "http",
"url": "https://api.wayfern.com/mcp",
"headers": { "Authorization": "Bearer ${WAYFERN_API_TOKEN}" }
}
}
}VS Code loads skills from ~/.copilot/skills, ~/.agents/skills and ~/.claude/skills. The skill needs WAYFERN_API_TOKEN in the environment.
bash
mkdir -p ~/.copilot/skills/wayfern
curl -fsSL https://wayfern.com/skills/wayfern/SKILL.md -o ~/.copilot/skills/wayfern/SKILL.mdRoute
VS Code supports OAuth for remote MCP servers. It registers itself with Wayfern, so the sign-in needs no client ID and no token in a file.
headers with ${WAYFERN_API_TOKEN} in ~/.copilot/mcp-config.json.~/.copilot/skills/wayfern. The agent runs curl in the terminal.api.wayfern.com/api/v1 directly.Example tasks
01
“Read the TypeScript 6.0 release notes and list the changes that break code in this workspace.”
scrape_page returns markdown for 1 credit.
02
“Map the URLs under docs.example.com/api, then crawl the 25 reference pages into docs/vendor as markdown.”
map_site bills 2 credits for each 10 URLs. crawl_site bills 1 credit a page.
03
“Capture our production home page at 1440 and 390 pixels wide and compare the hero section.”
capture_screenshot costs 5 credits a capture.
04
“List the fonts that vercel.com serves, with weights and formats, and add matching @font-face rules to our CSS.”
site_fonts costs 5 credits for a site.
Tools
The same tools on every route, at the REST API rates. Every result reports credits_charged.
Sign in once and the tools appear. Tool calls use the credits of your Wayfern plan, at the same rates as the API.