trident for LangChain
io.github.alexeibespalov/trident
Create and edit collaborative architecture diagrams with any AI assistant using the Trident 2D DSL.
client:LangChain
transport:streamable-http
runtime:npm
tools:23
Install trident in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"trident": {
"transport": "streamable_http",
"url": "https://mcp.tridentchart.com/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs
What LangChain can do once it is connected
- get_trident_spec
- get_generator_guide
- get_comprehensive_example
- validate_trident
- get_quick_start
- open_document
- get_document_summary
- get_recent_changes
- add_node
- update_node
- delete_node
- add_container
- update_container
- delete_container
- add_connection
- delete_connection
- get_document_png
- add_annotation
- update_annotation
- delete_annotation
- update_canvas_graphic
- make_suggestion
- explain