Skip to content

LangChain peerbox leave

How to: LangChain peerbox leave

client:LangChain transport:streamable-http tool:leave

Add peerbox to LangChain

  1. 01

    Open pip install langchain-mcp-adapters and merge this in. Keep any servers already there.

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "peerbox": {
            "transport": "streamable_http",
            "url": "https://app.peerbox.net/mcp",
        }
})

tools = await client.get_tools()
  1. 02

    Save the file and restart LangChain.

  2. 03

    Ask for something leave does. LangChain lists the server's tools on connect and calls leave itself — you do not invoke it by name.

  3. 04

    If nothing happens, check the server is running and that peerbox's identifier in your config matches the one above exactly.

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

Set these first

peerbox will not start until these are set, so leave never becomes available.

  • BASE_URL
  • DATABASE_URL
  • GITHUB_ORG
  • GITHUB_CLIENT_ID
  • GITHUB_CLIENT_SECRET
  • S3_ENDPOINT
  • S3_BUCKET
  • S3_ACCESS_KEY_ID
  • S3_SECRET_ACCESS_KEY
  • S3_REGION
  • PORT

Same tool, other clients

This list was read from the server itself, by connecting to it and calling tools/list on 24 November 2026. It is what the server actually exposes, not what its listing claims.

Mutating and Read-only are read off each tool's name, not its schema — a hint, not a guarantee. The registry stores tool names only; connect the server for its live schemas.