[all-commits] [llvm/llvm-project] 6ed18d: [lldb][mcp] Get the running MCP server connection ...
Alexandre Perez via All-commits
all-commits at lists.llvm.org
Fri Oct 10 09:55:30 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6ed18d85258b90a40cb3bc832195c38860c0c3e8
https://github.com/llvm/llvm-project/commit/6ed18d85258b90a40cb3bc832195c38860c0c3e8
Author: Alexandre Perez <alexandreperez at meta.com>
Date: 2025-10-10 (Fri, 10 Oct 2025)
Changed paths:
M lldb/source/Commands/CommandObjectProtocolServer.cpp
M lldb/source/Plugins/Protocol/MCP/ProtocolServerMCP.cpp
M lldb/test/API/commands/protocol/TestMCPUnixSocket.py
Log Message:
-----------
[lldb][mcp] Get the running MCP server connection information (#162752)
Currently AFAICT we don't have a way to get the MCP server socket after
it started. So this change introduces a new `protocol-server` subcommand
that allows us to query the location of a running server:
```
(lldb) protocol-server start MCP listen://localhost:0
MCP server started with connection listeners: connection://[::1]:36051, connection://[127.0.0.1]:36051
(lldb) protocol-server get MCP
MCP server connection listeners: connection://[::1]:36051, connection://[127.0.0.1]:36051
(lldb) protocol-server stop MCP
(lldb) protocol-server get MCP
error: MCP server is not running
```
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