Example proposal: opt-in Parallel Search MCP with btw_client()

Open
#239 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
r
Domain
ai

Research direction

The proposal adds an opt-in example that loads remote MCP tools with mcptools::mcp_tools() over Streamable HTTP and passes them to btw_client(tools = ...) alongside btw_tools(). Start by reading how btw_client() accepts extra tools and where existing examples live. Done means a runnable example, documented package versions, and a tested anonymous search and fetch through the chat tool-calling path. Maintainers should first confirm they accept a vendor-sourced example, and the codemode proposal (#237) is out of scope.

Written by the indexing model from the issue text.

Description

Would a small, opt-in example of using Parallel Search MCP with btw_client() fit here? It would let an R assistant search the web and fetch pages without a Parallel API key. The anonymous endpoint is free for light use and has rate limits.

I propose a runnable example that loads the remote tools with mcptools::mcp_tools() over Streamable HTTP, then combines them with btw_tools() through the existing btw_client(tools = ...) argument. It would leave default tools, client selection, and saved configuration unchanged. I would document the required package versions and test anonymous search and fetch through that configuration and the chat tool-calling path.

This complements the R-as-server setup proposed in #232; it would show R as the MCP client. It does not depend on the codemode proposal in #237. No particular LLM provider or model would be required by the example.

I work at Parallel.

Dominant language
R
Stars
150
Forks
13
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from posit-dev/btw

All issues in posit-dev/btw

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.