Foundry: prepaid AI compute in USDF for LangChain
fi.usdf/gateway
Prepaid AI compute in USDF: models, quotes and chat with a receipt; pay per call (x402) or by key
client:LangChain
transport:streamable-http
tools:10
Install Foundry: prepaid AI compute in USDF in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"gateway": {
"transport": "streamable_http",
"url": "https://api.usdf.fi/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs