Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
bash.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
8#pragma once
9
11
12#include <filesystem>
13#include <memory>
14#include <string>
15
16namespace entropic {
17
18class ExecuteTool;
19
28class BashServer : public MCPServerBase {
29public:
37 BashServer(const std::filesystem::path& working_dir,
38 const std::string& data_dir,
39 int timeout = 30);
40
41 ~BashServer() override;
42
50 std::string get_permission_pattern(
51 const std::string& tool_name,
52 const std::string& args_json) const override;
53
60 bool set_working_dir(const std::string& path) override;
61
67 const std::filesystem::path& working_dir() const;
68
74 int timeout() const;
75
76private:
77 std::filesystem::path working_dir_;
78 int timeout_;
79 std::unique_ptr<ExecuteTool> execute_tool_;
80};
81
82} // namespace entropic
Bash MCP server for shell command execution.
Definition bash.h:28
int timeout() const
Get command timeout.
Definition bash.cpp:245
const std::filesystem::path & working_dir() const
Get the working directory.
Definition bash.cpp:235
bool set_working_dir(const std::string &path) override
Set working directory.
Definition bash.cpp:223
~BashServer() override
Destructor.
std::string get_permission_pattern(const std::string &tool_name, const std::string &args_json) const override
Permission pattern: "execute:{base_cmd} *".
Definition bash.cpp:200
Concrete base class for MCP servers (80% logic).
Definition server_base.h:66
Activate model on GPU (WARM → ACTIVE).
MCPServerBase concrete base class + ServerResponse.