+
Grok Build + Wayfern
Grok Build reads your repo in the terminal. The docs, changelogs and error threads it needs are on the live web, and many of those sites block automated visits.
Add Wayfern with one command, and Grok Build calls scrape_page, search_web and capture_screenshot as tools. Each result comes back as markdown, JSON or an image URL, with its cost in credits.
$ grok mcp add --transport http wayfern \
https://api.wayfern.com/mcp
✓ Added wayfern (http) to ~/.grok/config.toml
grok ~/api ask mode
› /mcps
MCP wayfern http · oauth connected
scrape_pagesearch_webextract_datacapture_screenshotcrawl_site
› What breaks in src/ with acme-sdk 3?
wayfern.scrape_page acme.dev/sdk/changelog 1 credit
Breaking in 3.0
1 get() returns { data, error }
2 timeout is in ms, not seconds
3 Node 18 is no longer supported
src/client.ts
12 let r = await sdk.get(u) 1
13 return r.json()
20 const sdk = new Sdk({
21 timeout: 30, 2
›Ask Grok, or type / for commands
Setup
Grok Build handles the OAuth sign-in for a remote HTTP server.
Skip this when it is installed.
bash
curl -fsSL https://x.ai/cli/install.sh | bashbash
grok mcp add --transport http wayfern https://api.wayfern.com/mcpAdd --scope project to the command, or write .grok/config.toml in the repo, to share it with the team.
~/.grok/config.toml
[mcp_servers.wayfern]
url = "https://api.wayfern.com/mcp"The first call opens the wayfern.com sign-in. Sign in and click Allow. grok mcp doctor wayfern checks the server, and /mcps in the TUI lists its tools.
For CI and shared machines. Grok Build expands ${WAYFERN_API_TOKEN} in headers when it runs.
bash
grok mcp add --transport http wayfern https://api.wayfern.com/mcp \
--header 'Authorization: Bearer ${WAYFERN_API_TOKEN}'Grok Build loads skills from ~/.grok/skills and also reads Claude Code skills. The skill needs WAYFERN_API_TOKEN in the environment.
bash
mkdir -p ~/.grok/skills/wayfern
curl -fsSL https://wayfern.com/skills/wayfern/SKILL.md -o ~/.grok/skills/wayfern/SKILL.mdGrok Build reads Claude Code's MCP servers. A wayfern entry there works with no new step.
Route
Grok Build adds remote HTTP servers and handles the OAuth sign-in. One sign-in covers every Wayfern tool.
grok mcp add --transport http, with OAuth on the first call.--header with ${WAYFERN_API_TOKEN}. Good for CI.~/.grok/skills/wayfern. The bash tool runs curl.api.wayfern.com/api/v1 directly.Example tasks
01
“Read the changelog of the Stripe Node SDK since our pinned version and list the breaking changes for src/billing.”
scrape_page at 1 credit a page.
02
“Capture the five landing pages in marketing/urls.txt and list the layout problems on each.”
capture_screenshot costs 5 credits a capture.
03
“Extract name, price and rating of the first 20 products on this public demo shop into fixtures/products.json.”
extract_data bills 1 credit for each uncached source page.
04
“Search Google and Bing for comparisons of Zod and Valibot from this year and summarise the trade-offs.”
search_web bills 2 credits for each provider page.
Tools
The same tools on every route, at the REST API rates. Every result reports credits_charged.
grok -p "..." --output-format json runs it from CI.Sign in once and the tools appear. Tool calls use the credits of your Wayfern plan, at the same rates as the API.