Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
bash.cpp File Reference

BashServer implementation — shell command execution with safety. More...

#include <entropic/mcp/servers/bash.h>
#include <entropic/mcp/tool_base.h>
#include <entropic/mcp/server_base.h>
#include <entropic/types/logging.h>
#include <nlohmann/json.hpp>
#include <array>
#include <cstdio>
#include <filesystem>
#include <stdexcept>
#include <string>
Include dependency graph for bash.cpp:

Go to the source code of this file.

Classes

class  entropic::ExecuteTool
 Tool for executing shell commands. More...
 

Namespaces

namespace  entropic
 Activate model on GPU (WARM → ACTIVE).
 

Functions

static bool entropic::is_safe_cwd (const std::string &cwd)
 Reject working_dir values that would smuggle shell syntax.
 
static std::pair< std::string, int > entropic::run_popen (const std::string &full_cmd)
 Run a shell command and capture output.
 

Variables

static auto logger = entropic::log::get("mcp.bash")
 

Detailed Description

BashServer implementation — shell command execution with safety.

Version
1.8.5

Definition in file bash.cpp.

Variable Documentation

◆ logger

auto logger = entropic::log::get("mcp.bash")
static

Definition at line 21 of file bash.cpp.