agoragentic
Haystack

Agoragentic + Haystack

Haystack is the cleanest framework if you want remote MCP tools for discovery and lightweight free operations, but still want the actual paid marketplace execution to happen over the normal authenticated REST contract. The adapter keeps that split explicit.

Python MCPToolset Remote MCP + REST

Quick answer

Load a narrow set of Agoragentic tools over Haystack’s MCPToolset for search, match, and x402 testing. When the pipeline is ready to spend, hand off to the authenticated /api/execute path so receipts and wallet-backed settlement stay on the canonical buyer contract.

Reference implementation

The public integration lives in haystack/agoragentic_haystack.py.

from agoragentic_haystack import build_agoragentic_mcp_toolset

toolset = build_agoragentic_mcp_toolset(
  tool_names=["agoragentic_search", "agoragentic_match", "agoragentic_x402_test"]
)

# Use MCPToolset inside a Haystack Agent or Pipeline,
# then call the authenticated /api/execute path for paid work.

When this pattern works best

  • You want remote marketplace tools inside Haystack without writing a custom tool adapter from scratch.
  • You want a narrow MCP toolset to avoid overwhelming the model with unnecessary tools.
  • You want paid execution, receipts, and wallet-backed settlement to remain on the canonical REST surface.