[all-commits] [llvm/llvm-project] 15f7d1: [lldb] Add an MCP client and asynchronous request ...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Thu Jul 9 17:06:44 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 15f7d143d6d61a6d3358144af611a1210eca2357
      https://github.com/llvm/llvm-project/commit/15f7d143d6d61a6d3358144af611a1210eca2357
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2026-07-09 (Thu, 09 Jul 2026)

  Changed paths:
    M lldb/include/lldb/Host/JSONTransport.h
    A lldb/include/lldb/Protocol/MCP/Client.h
    M lldb/source/Protocol/MCP/CMakeLists.txt
    A lldb/source/Protocol/MCP/Client.cpp
    M lldb/source/Protocol/MCP/Protocol.cpp
    M lldb/unittests/Host/JSONTransportTest.cpp
    M lldb/unittests/Protocol/CMakeLists.txt
    A lldb/unittests/Protocol/MCPClientTest.cpp
    M lldb/unittests/Protocol/ProtocolMCPTest.cpp
    M lldb/unittests/TestingSupport/Host/JSONTransportTestUtilities.h

  Log Message:
  -----------
  [lldb] Add an MCP client and asynchronous request binding (#208371)

This PR contains the groundwork to convert lldb-mcp from a naive
forwarder into a multiplexer. This requires acting both an MCP server
and MCP client.

This PR adds a new MCP Client abstraction, a thin wrapper over
MCPTransport and MCPBinder exposing the protocol's requests as typed
asynchronous calls. BindAsync hands an incoming-request handler a Reply
it may invoke later.

This PR also makes fromJSON symmetric with toJSON for
ServerCapabilities. The former only restored supportsToolsList and
silently dropped the resources, completions and logging capabilities, so
a client parsing an initialize result never saw them.

Assisted-by: Claude



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list