I took --bare out of a how-to for creating a Python project with only a pyproject.toml. The docs search still returned the page first.
The command now created five extra files and directories.
I was trying Jon Udell's idea of filing a docs bug when a coding agent gets stuck. I'd keep his test for whether the agent can find the fixed page.
I'd run the example on the page before closing the bug.
Start with the query the agent actually ran
A failed search gives the team a specific technical documentation bug to reproduce.
Udell wanted Claude to replace a select widget with a set of radio buttons in Bram, his XMLUI desktop app. Claude got there using the component's reference page after the docs search failed to find a worked example.
The search server had logged what Claude typed and which pages came back. Udell replayed the query against the old docs and against the version with the new how-to.
The old results topped out around 0.7. The new page came back first at 4.2.
I'd attach that query to the bug report. Whoever fixes it can make the same request and see whether the right page comes back.
A search can find the wrong instructions
For my test I used the server from my MCP server tutorial. It returns lines that contain the query.
With MCP Python SDK 2.3.0 and uv 0.13.8, the same request ran against a folder before the how-to was added, after it was added, and after I changed its command.
npx -y @modelcontextprotocol/inspector@2.12.0 --cli --method tools/call \
--tool-name search_docs --tool-arg 'query=only a pyproject.toml' -- uv run server.py
| State of the how-to page | result the search returned |
|---|---|
| Missing | [] |
Added, telling the reader to run uv init --bare demo |
howto/, line 1 |
Edited to say uv init demo |
howto/, line 1 |
I chose the phrase myself and put it in the heading, so the search test was deliberately simple. It still illustrates what the check measures.
The search can tell me the page is in the results. The last two rows give it no way to tell which page works.
Run the example on the page
Start from the same clean state a reader gets, then follow the how-to as written. That's the first check in my technical tutorial guide.
XMLUI already has a place to do this. At commit 57bc5f2, Playwright tests pulled examples out of 199 of the 219 how-to pages and exercised them in a browser.
The new RadioGroup how-to had no such test.
In a standalone XMLUI 0.14.28 app, the example displayed the choices with Pro selected. Clicking Free changed the text to Selected plan: free.
The reset button moved the selection back. I'd add those assertions to Playwright so the next change to RadioGroup has to pass them too.
For the uv page, the equivalent test runs the command in a temporary directory and checks what it created. Run this against a page you control, since it executes the first Bash block it finds.
import re
import subprocess
import sys
import tempfile
from pathlib import Path
page = Path(sys.argv[1]).read_text(encoding="utf-8")
command = re.search(r"```bash\n(.+?)\n```", page, re.S).group(1)
with tempfile.TemporaryDirectory() as parent:
subprocess.run(command, shell=True, cwd=parent, check=True, capture_output=True)
created = sorted(path.name for path in (Path(parent) / "demo").iterdir())
print(f"{command} created {created}")
sys.exit(0 if created == ["pyproject.toml"] else 1)
With --bare missing, the script exited with status 1 and printed the extra entries. Adding the flag back made it pass.
uv init demo created ['.git', '.gitignore', '.python-version', 'README.md', 'pyproject.toml', 'src']
Check how the reader gets to the page
On November 23, a browser showed the RadioGroup how-to, but curl got a 404 and a JavaScript shell with none of the instructions in it. The same happened for nine other how-to URLs.
The RadioGroup reference returned 200 with its text in the HTML.
Udell’s search worked because the server uses a local copy of the docs. If an agent starts from the public URL, it needs to be able to retrieve the example there too.
XMLUI’s explanation of its MCP server · Vercel’s agent fetch study
If the bug report says the agent couldn't finish the task, I'd go one step further and repeat the original task in a fresh session. The search replay tells me it could find the page.
Running the example tells me it works. A fresh session lets me watch whether the agent actually uses it.
I'd put the replay and the example result in the docs review. If the original task was an on-call fix, I'd check that the agent can use the procedure and verify recovery on a test system.