[Lldb-commits] [lldb] [lldb-mcp] Replace byte forwarding with a protocol-aware multiplexer (PR #208506)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 9 20:14:19 PDT 2026


================
@@ -0,0 +1,170 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "Multiplexer.h"
+#include "llvm/ADT/StringSwitch.h"
+#include "llvm/Support/Error.h"
+#include "llvm/Support/FormatVariadic.h"
+#include "llvm/Support/JSON.h"
+
+using namespace llvm;
+using namespace lldb_protocol::mcp;
+using namespace lldb_mcp;
+
+namespace {
+
+/// Server identity reported to the client during initialization.
+/// @{
+constexpr llvm::StringLiteral kServerName = "lldb-mcp";
+constexpr llvm::StringLiteral kServerVersion = "0.1.0";
----------------
JDevlieghere wrote:

I've made it report the LLDB version.

https://github.com/llvm/llvm-project/pull/208506


More information about the lldb-commits mailing list