mcp

MCP

Model Context Protocol


Motivation

@tool
def multiply(a: int, b: int) -> int:
   """Multiply two numbers."""
   return a * b
   
llm = ChatOpenAI(model="gpt-4o", temperature=0)
llm_with_tools = llm.bind_tools([multiply])
  • Tool muss zusammen mit verwendetem Code deployed werden
  • Trennung Tool | Verwendung

Tools -> APIs


APIs -> MCP



Sequence


n8n