Repository navigation
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (1)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (7)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughThe ChangesParallel Search MCP example
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant Program
participant ParallelSearchExample
participant ParallelSearchMCP
participant ToolExecutor
Program->>ParallelSearchExample: ExecuteAsync with tool name and arguments
ParallelSearchExample->>ParallelSearchMCP: Initialize connection and discover tool schema
ParallelSearchExample->>ToolExecutor: Register and execute the remote tool with permissions
ToolExecutor->>ParallelSearchMCP: Call the selected remote tool
ParallelSearchMCP-->>ToolExecutor: Return tool response
ToolExecutor-->>Program: Return execution result
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The opt-in search and fetch commands appear ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 3 files. (4 skipped: 4 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
9b649bf to
15a8162
Compare
Summary
Adds an opt-in Parallel Search MCP command to
McpToolAgentfor web search and page extraction without a Parallel API key or model provider key. For example:dotnet run --project examples/McpToolAgent --configuration Release -- --parallel-search search "C# CancellationToken documentation" dotnet run --project examples/McpToolAgent --configuration Release -- --parallel-search fetch https://learn.microsoft.com/en-us/dotnet/standard/threading/cancellation-in-managed-threadsThe example discovers the tool schema through the official SDK's Streamable HTTP transport and executes the selected tool through SharpClaw's registry and permission layer. It runs tools directly; it does not add agent-loop MCP dispatch. The anonymous endpoint is free for light use and subject to rate limits.
Validation
dotnet build SharpClawCode.sln --configuration Release --warnaserrordotnet test SharpClawCode.sln --configuration ReleaseLive search returned Microsoft documentation with source URLs and excerpts, and fetch returned the cancellation guide. The documented installation and both commands also worked with an isolated user profile and no provider credentials. Four fixture tests check the endpoint and project User-Agent on discovery and tool calls, anonymous headers, allowlist denial before remote execution, and remote error propagation. The four example hosts build, and the package smoke script passes on Linux. Windows and macOS checks remain for CI.
Risk and compatibility
The echo example remains the default. Built-in web tools, model provider selection, and workspace MCP registrations are unchanged. Calls accept cancellation and have a 60-second command timeout.
Btw - I'm a devrel engineer at Parallel
Summary by CodeRabbit