SmartTokenGuard for LangChain
io.github.nwjnjjj/smart-token-guard
Stop burning credits on broken AI video: check every render before you pay for the next one.
client:LangChain
transport:streamable-http
runtime:mcpb
Install SmartTokenGuard in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"smart-token-guard": {
"transport": "streamable_http",
"url": "https://stg-agent-560636228350.asia-east1.run.app/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs