diff options
author | Alexandre Perez <alexandreperez@meta.com> | 2025-10-10 09:55:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-10 09:55:09 -0700 |
commit | 6ed18d85258b90a40cb3bc832195c38860c0c3e8 (patch) | |
tree | 5503e57aaf834c8bf6a3341e746874a74c43b3b9 /lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h | |
parent | 10021c737a3565183d13eabbd29fc3254e4b30c4 (diff) | |
download | llvm-6ed18d85258b90a40cb3bc832195c38860c0c3e8.zip llvm-6ed18d85258b90a40cb3bc832195c38860c0c3e8.tar.gz llvm-6ed18d85258b90a40cb3bc832195c38860c0c3e8.tar.bz2 |
[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
```
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h')
0 files changed, 0 insertions, 0 deletions