Connect the geoaeo MCP server to GitHub Copilot in VS Code. Audit a site and generate GEO and AEO artifacts from Copilot Chat and agent mode.
geoaeo and geoaeo-mcpaudit, init, gen, humanize, mcp. No other commands exist.npx geoaeo-mcp over stdioaudit, gen, humanize# one-off
npx geoaeo audit ./ --json
# or add to the project
npm install -D geoaeo
npx geoaeo --help
# verify the MCP binary
npx geoaeo-mcp --helpVS Code starts geoaeo-mcp for you. You do not run it by hand.
VS Code reads MCP servers from .vscode/mcp.json (workspace scope) or from your user settings. Use servers (VS Code format) or mcpServers where supported. Both shapes are shown.
Create .vscode/mcp.json in the repo root:
{
"servers": {
"geoaeo": {
"command": "npx",
"args": ["-y", "geoaeo-mcp"],
"type": "stdio"
}
}
}Some VS Code builds use mcpServers as the top-level key instead of servers. If the block above does not load, use this equivalent:
{
"mcpServers": {
"geoaeo": {
"command": "npx",
"args": ["-y", "geoaeo-mcp"]
}
}
}Steps:
.vscode/mcp.json.geoaeo shows with audit, gen, humanize.Global scope: add the same server entry to your VS Code settings.json under chat.mcp.servers or mcp.servers depending on your VS Code version.
audit, gen, and humanize appear under geoaeo.If no tools appear, see Troubleshooting.
Prompt Copilot:
Use geoaeo audit on ./ and summarize the score and the top 3 fixes. If ./ has no pages, try https://example.com.
What the agent does:
audit with {"target": "./"} or {"target": "https://example.com"}.score, checks[], topFixes[].Equivalent CLI:
npx geoaeo audit ./ --json
npx geoaeo audit https://example.com --jsonUse topFixes to choose the next artifact to generate.
This uses gen, which reads geoaeo.config.ts from the current directory.
npx geoaeo init ./
cat geoaeo.config.tsUse geoaeo gen to create the WebMCP manifest for this site. Show the JSON and write it to public/webmcp.json.
What the agent does:
gen with {"artifact": "webmcp"}.public/webmcp.json on confirmation.Other artifacts:
{"artifact": "llms"}{"artifact": "llms-full"}{"artifact": "sitemap"}{"artifact": "robots"}{"artifact": "jsonld", "type": "software"} — type may be software, product, faq, or breadcrumbEquivalent CLI:
npx geoaeo gen webmcp
npx geoaeo gen webmcp -o ./public/webmcp.json
npx geoaeo gen llms -o ./public/llms.txtThe humanize tool is also available: {"glob": "content/**/*.md", "write": false}.
MCP server not shown in Copilot. Confirm the file is .vscode/mcp.json (not mcp.json at root). Validate JSON with cat .vscode/mcp.json | jq .. Ensure VS Code and Copilot Chat are up to date. Reload the window.
servers vs mcpServers confusion. VS Code has shipped both keys. If one key does not load, try the other. Keep type: "stdio" for the servers shape.
npx ENOENT or Node not found. Check node --version in VS Code's integrated terminal. On macOS, launch VS Code from a shell that has Node on PATH, or set an absolute command path such as "/opt/homebrew/bin/npx".
audit returns low score. Audit the workspace root. Ensure Copilot's cwd is the repo root so {"target": "./"} resolves there.
gen fails with Cannot find config. Run npx geoaeo init ./ in the workspace root, then retry gen.
geoaeo. Bins: geoaeo, geoaeo-mcp.audit takes target (string). gen takes artifact enum and optional type. humanize takes glob and optional write (boolean).