LLDB mainline
lldb_protocol::mcp::ServerInfo Struct Reference

Information about this instance of lldb's MCP server for lldb-mcp to use to coordinate connecting an lldb-mcp client. More...

#include <Server.h>

Static Public Member Functions

static llvm::Expected< ServerInfoHandleWrite (const ServerInfo &)
 Writes the server info into a unique file in ~/.lldb.
static llvm::Expected< std::vector< ServerInfo > > Load ()
 Loads any server info saved in ~/.lldb.

Public Attributes

std::string connection_uri

Detailed Description

Information about this instance of lldb's MCP server for lldb-mcp to use to coordinate connecting an lldb-mcp client.

Definition at line 96 of file Server.h.

Member Function Documentation

◆ Load()

Expected< std::vector< ServerInfo > > ServerInfo::Load ( )
static

Loads any server info saved in ~/.lldb.

Definition at line 88 of file Server.cpp.

References lldb_private::FileSystem::CreateDataBuffer(), lldb_private::FileSystem::DirBegin(), and lldb_private::FileSystem::Instance().

◆ Write()

Member Data Documentation

◆ connection_uri

std::string lldb_protocol::mcp::ServerInfo::connection_uri

Definition at line 97 of file Server.h.

Referenced by lldb_protocol::mcp::toJSON().


The documentation for this struct was generated from the following files: