|
Entropic 2.14.3
Local-first agentic inference engine
|
BashServer implementation — shell command execution under an enforced timeout, one process group per command. More...
#include <entropic/mcp/servers/bash.h>#include <entropic/types/run_scope.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 <cerrno>#include <chrono>#include <csignal>#include <cstdio>#include <cstring>#include <filesystem>#include <stdexcept>#include <string>#include <thread>#include <fcntl.h>#include <poll.h>#include <spawn.h>#include <sys/types.h>#include <sys/wait.h>#include <unistd.h>
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. | |
Variables | |
| char ** | environ |
| static auto | logger = entropic::log::get("mcp.bash") |
BashServer implementation — shell command execution under an enforced timeout, one process group per command.
Definition in file bash.cpp.
| bool cancelled = false |
| int exit_code = -1 |
|
static |
| std::string output |