|
Entropic 2.3.8
Local-first agentic inference engine
|
Filesystem MCP server — read/write/edit/glob/grep/list_directory. More...
#include <entropic/mcp/servers/filesystem.h>#include <entropic/mcp/tool_base.h>#include <entropic/mcp/server_base.h>#include <entropic/types/logging.h>#include <nlohmann/json.hpp>#include <filesystem>#include <fstream>#include <functional>#include <optional>#include <regex>#include <sstream>
Go to the source code of this file.
Classes | |
| class | entropic::ReadFileTool |
| Tool for reading file contents with line numbering. More... | |
| class | entropic::WriteFileTool |
| Tool for writing file contents with read-before-write. More... | |
| class | entropic::EditFileTool |
| Tool for in-place file editing (string replace or insert). More... | |
| class | entropic::GlobTool |
| Tool for recursive file pattern matching. More... | |
| class | entropic::GrepTool |
| Tool for regex content search across files. More... | |
| class | entropic::ListDirectoryTool |
| Tool for listing directory contents. More... | |
Namespaces | |
| namespace | entropic |
| Activate model on GPU (WARM → ACTIVE). | |
Typedefs | |
| using | json = nlohmann::json |
Functions | |
| std::string | entropic::check_read_gates (FilesystemServer &server, const fs::path &resolved, const std::string &path_str) |
| Execute read_file: resolve, size-check, read, hash, track. | |
| std::regex | entropic::compile_grep_or_error (const std::string &pattern, std::string &err) |
| Compile a regex or return a structured tool error. | |
| static std::vector< json > | entropic::grep_search (const fs::path &root, const std::vector< std::string > &file_patterns, const std::regex &re, const IgnoreMatcher &ignore) |
| Execute grep: brace-expand the file glob, compile the content regex (error-safe), iterate the tree applying the same classify_glob_entry filter glob uses. | |
| static int | entropic::compute_max_read_bytes (const FilesystemConfig &config, int model_context_bytes) |
| Compute max read bytes from config and model context. | |
Variables | |
| static auto | logger = entropic::log::get("mcp.filesystem") |
Filesystem MCP server — read/write/edit/glob/grep/list_directory.
Implements 6 tools as ToolBase subclasses, a FileAccessTracker for read-before-write enforcement, and the FilesystemServer that owns and registers all tools.
Definition in file filesystem.cpp.
| using json = nlohmann::json |
Definition at line 28 of file filesystem.cpp.
|
static |
Definition at line 30 of file filesystem.cpp.