diff options
| author | Alexandre Perez <alexandreperez@meta.com> | 2025-07-02 17:03:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-02 17:03:05 -0700 |
| commit | a068ed288af16df0d6189fd830216bbfa6257016 (patch) | |
| tree | 0745a7acd46e390f053ce0b61a753c61981d10e0 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPythonInterface.cpp | |
| parent | f01017ca9711a69c3dd6b848af583a901fd03450 (diff) | |
[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
```
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions
