Preflight for LangChain
io.github.dainidude/preflight
Pay-per-call smart-contract security: scans, tx simulation, and token risk via x402 (USDC on Base).
client:LangChain
transport:streamable-http
tools:4
Install Preflight in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"preflight": {
"transport": "streamable_http",
"url": "https://preflight--preflight-api-mcp.modal.run/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs