Skip to content

feat: in-memory transport support#340

Open
Won-Kyu Park (wkpark) wants to merge 1 commit intolangchain-ai:mainfrom
wkpark:in_memory_transport
Open

feat: in-memory transport support#340
Won-Kyu Park (wkpark) wants to merge 1 commit intolangchain-ai:mainfrom
wkpark:in_memory_transport

Conversation

@wkpark
Copy link

@wkpark Won-Kyu Park (wkpark) commented Oct 13, 2025

In-memory transport is officially supported by FastMCP v2. However, FastMCP v1 already supports in-memory transport.

This is my attempt to support "In-memory" transport in the langchain-mcp-adapters.

config example

    client = MultiServerMCPClient(
        {
            "math": {
                "command": "python3",
                "args": [math_server_path],
                "transport": "stdio",
            },
            "weather": {
                "server": weather_server_module.mcp, # mcp instance
                "transport": "in_memory",
            },
        },
    )
    # Check that we have tools from both servers
    all_tools = await client.get_tools()

See also:

In-memory transport is officially supported by FastMCP v2. However,
FastMCP v1 already supports in-memory transport (but undocumented)

See also:
 PrefectHQ/fastmcp#758
@eyurtsev Eugene Yurtsev (eyurtsev) added the enhancement New feature or request label Nov 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants