Walkthrough of the fetch server example: datasets, golden paths, and assertions.
examples/mcp_server_fetch/
fetch
tool to retrieve web content. The tests illustrate three styles (decorators, pytest, and legacy assertions) and demonstrate how to combine structural assertions, path constraints, and LLM judges.
fetch
tool when appropriatedatasets/
– YAML and Python datasetstests/
– pytest style, decorators, assertions stylegolden_paths/
– expected sequencesmcpeval.yaml
– config for provider, reportsfetch
tool was called:
Expect.tools.count("fetch", 1)
to detect duplicate calls.
fetch
and minimal steps:
response
Placeholder: add screenshots of the HTML report for a passing run and for a failure showing a mismatched tool output.