|
| | BashServer (const std::filesystem::path &working_dir, const std::string &data_dir, int timeout=30) |
| | Construct with working directory and data dir.
|
| |
|
| ~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} *".
|
| |
| bool | set_working_dir (const std::string &path) override |
| | Set working directory.
|
| |
| const std::filesystem::path & | working_dir () const |
| | Get the working directory.
|
| |
| int | timeout () const |
| | Get command timeout.
|
| |
| | MCPServerBase (std::string name) |
| | Construct with server name.
|
| |
| const std::string & | name () const |
| | Get the server name.
|
| |
| void | register_tool (ToolBase *tool) |
| | Register a tool with this server.
|
| |
| std::string | list_tools () const |
| | List all registered tools as a JSON array string.
|
| |
| std::string | execute (const std::string &tool_name, const std::string &args_json) |
| | Execute a tool and wrap result in ServerResponse JSON.
|
| |
| virtual bool | skip_duplicate_check (const std::string &tool_name) const |
| | Check if a tool should skip duplicate detection.
|
| |
| virtual bool | configure (const std::string &config_json) |
| | Configure the server after creation.
|
| |
| const ToolRegistry & | registry () const |
| | Get the tool registry (const).
|
| |
Bash MCP server for shell command execution.
Single tool: execute. Blocks dangerous commands, captures stdout + stderr, enforces timeout.
- Version
- 1.8.5
Definition at line 28 of file bash.h.