[all-commits] [llvm/llvm-project] a068ed: [lldb][mcp] Fix unix domain socket protocol server...

Alexandre Perez via All-commits all-commits at lists.llvm.org
Wed Jul 2 17:03:27 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a068ed288af16df0d6189fd830216bbfa6257016
      https://github.com/llvm/llvm-project/commit/a068ed288af16df0d6189fd830216bbfa6257016
  Author: Alexandre Perez <alexandreperez at meta.com>
  Date:   2025-07-02 (Wed, 02 Jul 2025)

  Changed paths:
    M lldb/source/Commands/CommandObjectProtocolServer.cpp
    A lldb/test/API/commands/protocol/TestMCPUnixSocket.py

  Log Message:
  -----------
  [lldb][mcp] Fix unix domain socket protocol server addresses (#146603)

When starting an MCP protocol server that uses unix sockets as the
transport, a local `'[0.0.0.0]:0'` file is used instead of the supplied
socket path, e.g:
```
(lldb) protocol-server start MCP accept:///tmp/some/path.sock
MCP server started with connection listeners: unix-connect://[0.0.0.0]:0
(lldb) shell ls '[*'
[0.0.0.0]:0
```

This change makes it so that the URI path is used if the socket protocol
is `ProtocolUnixDomain`:
```
(lldb) protocol-server start MCP accept:///tmp/some/path.sock
MCP server started with connection listeners: unix-connect:///tmp/some/path.sock
```



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