[Lldb-commits] [lldb] [lldb-mcp] Replace byte forwarding with a protocol-aware multiplexer (PR #208506)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 9 14:50:20 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";
----------------
bulbazord wrote:
How often do we plan on bumping the version? It might be worth putting into CMake (i.e. what we do for LLDB version) if it's at a regular cadence.
https://github.com/llvm/llvm-project/pull/208506
More information about the lldb-commits
mailing list