Praetorium for LangChain
io.github.richardsolomou/praetorium
Public Warhammer 40K rules, datasheets, points and missions; sign in to manage rosters and battles.
client:LangChain
transport:streamable-http
tools:43
Install Praetorium in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"praetorium": {
"transport": "streamable_http",
"url": "https://praetorium.gg/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
- list_my_rosters
- get_my_roster
- list_my_battles
- get_my_stats
- save_roster
- set_roster_visibility
- list_my_opponents
- create_battle
- get_my_battle
- submit_battle_action
- get_my_battle_report
- delete_battle
- search_reference
- get_reference
- get_reference_record
- list_factions
- list_reference
- list_units
- get_mission_matchup
- simulate_combat
- optimize_loadout
- list_data_updates
- check_roster
- grade_roster