Discrete Structures for LangChain
io.github.zohaibcodez/discrete-structures
Comprehensive tools for discrete mathematics: logic, algorithms, number theory, cryptography
client:LangChain
transport:stdio
runtime:pypi
Install Discrete Structures in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"discrete-structures": {
"transport": "stdio",
"command": "uvx",
"args": ["discrete-structures-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs