LangGraph Integration

async agentstr.mcp.langgraph.to_langgraph_tools(nostr_mcp_client: NostrMCPClient) list[BaseTool][source]

Convert tools from the MCP client to LangGraph tools.

Parameters:

nostr_mcp_client – An instance of NostrMCPClient to fetch tools from.

Returns:

A list of LangGraph BaseTool objects that wrap the MCP tools.

This module provides integration with LangGraph tools, enabling conversion between MCP tools and LangGraph’s tool format.