#6

Add an opt-in Parallel MCP web-search example

Opengeorgeatparallelwants to merge intofrom

Adds a runnable web-search example that loads anonymous Parallel MCP tools into RalphLoopAgent.tools. This fits the framework's existing AI SDK tool interface and examples directory, without changing the core or CLI defaults. Parallel search is free and keyless at lower rate limits; Gateway inference still needs credentials and can incur charges.

Run pnpm --filter ralph-loop-agent build, set AI_GATEWAY_API_KEY, then run pnpm --filter ralph-loop-agent-search-example search "Your question". The example uses HTTP transport, includes source URLs in the answer, bounds the outer loop, and closes the MCP client after use. The MCP dependency matches the locked AI SDK utilities; existing dependency resolutions stay unchanged.

For context, Parallel Fast has 80.2 average answer-item F1 on a 0–100 scale in DeepSearchQA, with about 18 seconds time per task in the same evaluated variant. That supports trying this optional search path for sourced answers. These are API benchmark results, not measurements of this example; task time includes search and derived model time. There's no maintained search provider here to compare against.

Validation: all 16 core tests, core build, core and example type checks, and three example tests passed. The live test loaded the real MCP tools and executed a keyless search through RalphLoopAgent.loop, producing source evidence without an Authorization header. It uses a deterministic model; Gateway inference is untested. Fixture tests cover success and discovery-error cleanup.

Btw - I'm a devrel engineer at Parallel

Activity

2
socket-security[bot]1mo ago

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
@​ai-sdk/​mcp@​1.0.2

View full report