#1419·voltagent

feat: public web research example with Baizhi MCP tools

Author: ct-jarynCreated Sep 20, 2026Updated Sep 20, 2026

Is your feature request related to a problem? Please describe.

A research agent often needs to find public sources, read the relevant pages, and extract comparable fields before it can produce a cited answer. A focused example could show this workflow together with practical controls for a hosted, paid MCP service.

I am proposing this integration as part of the Baizhi Agent Toolkit outreach effort. Baizhi is a commercial remote tool service, not an LLM provider; users supply their own account, API key and credits. The service backend is not included in the proposed open-source example. This proposal and implementation were prepared with AI assistance.

Describe the thing to improve

Would a private examples/with-baizhi-research example be within scope?

The prepared implementation uses VoltAgent's Agent and createTool with the official MCP SDK's Streamable HTTP transport and static Bearer authentication. It handles one research question and exposes only websearch_search, web_scrape and web_extract after discovery. It demonstrates domain-filter arrays, typed extraction fields, a shared six-attempt tool budget, cancellation, timeout/cleanup and generic error handling without printing raw remote errors.

The README explains the data sent to each service, separate tool/model charges, prompt-injection limitations and the limits of cancellation. The implementation is now in PR #1420. At commit f7683714c52b36fcf34f0f6f30b0b44302171fc7, 26 offline tests pass on Node 20.6.0, 20.20.2 and 22.22.2, including a real VoltAgent agent dispatching all three tools with a fake model. TypeScript checks and the example build pass. The review fixes clarify the Node minimum, distinguish cancellation and timeouts, and stop discovery once the required tools are found. Tool names and input schemas were checked against live discovery; that check did not invoke paid tools or establish end-to-end model quality.

Describe alternatives you've considered

An external example repository or a shorter recipe may be preferable if provider-specific examples are outside the current scope. The SDK wrapper keeps the budget and cancellation local to the example without changing framework APIs. I can adapt the scope based on maintainer feedback.

Additional context

Service · Contribution guidance

The change is limited to a private example and its lockfile importer. This scope discussion was opened before PR #1420; maintainer feedback is still welcome on the existing proposal.