Docs exports: JSON llms.txt llms-full.txt Agent Files

class Shards::MCPManager

Defined in:

mcp_manager.cr

Constant Summary

BIN_DIR = "bin"
Log = ::Log.for("shards.mcp")
MCP_SHARDS_CONFIG = ".mcp-shards.json"
RUNTIME_DIR = ".shards/mcp"
STATE_FILE = "servers.json"

Constructors

Instance Method Summary

Constructor Detail

def self.new(path : String) #

[View source]

Instance Method Detail

def load_configs : Array(ServerConfig) #

[View source]
def logs(name : String, follow : Bool = true, lines : Int32 = 20) #

[View source]
def path : String #

[View source]
def restart(name : String | Nil = nil) #

[View source]
def sanitize_name(name : String) : String #

[View source]
def start(name : String | Nil = nil) #

[View source]
def status : Array(ServerStatusInfo) #

[View source]
def stop(name : String | Nil = nil) #

[View source]