diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2025-06-20 10:48:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-20 10:48:04 -0500 |
commit | 9524bfb27020d31b9474f595b7c0e5d2e1ac65f5 (patch) | |
tree | 17cd2d0f3751fb9cf4a3bf6718715425586f5216 /clang/lib/AST/ByteCode/Compiler.cpp | |
parent | 887222e3526fbe08e748a33f740296ac22bf1ab1 (diff) | |
download | llvm-9524bfb27020d31b9474f595b7c0e5d2e1ac65f5.zip llvm-9524bfb27020d31b9474f595b7c0e5d2e1ac65f5.tar.gz llvm-9524bfb27020d31b9474f595b7c0e5d2e1ac65f5.tar.bz2 |
[lldb] Add Model Context Protocol (MCP) support to LLDB (#143628)
This PR adds an MCP (Model Context Protocol ) server to LLDB. For
motivation and background, please refer to the corresponding RFC:
https://discourse.llvm.org/t/rfc-adding-mcp-support-to-lldb/86798
I implemented this as a new kind of plugin. The idea is that we could
support multiple protocol servers (e.g. if we want to support DAP from
within LLDB). This also introduces a corresponding top-level command
(`protocol-server`) with two subcommands to `start` and `stop` the
server.
```
(lldb) protocol-server start MCP tcp://localhost:1234
MCP server started with connection listeners: connection://[::1]:1234, connection://[127.0.0.1]:1234
```
The MCP sever supports one tool (`lldb_command`) which executes a
command, but can easily be extended with more commands.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
0 files changed, 0 insertions, 0 deletions