|
Entropic 2.14.3
Local-first agentic inference engine
|
Git MCP server for version control operations. More...
#include <entropic/mcp/servers/git.h>


Public Member Functions | |
| GitServer (const std::filesystem::path &repo_dir, const std::string &data_dir) | |
| Construct with repo directory and data dir. | |
| ~GitServer () override | |
| Destructor. | |
| bool | set_working_dir (const std::string &path) override |
| Set working directory (repo root). | |
| const std::filesystem::path & | repo_dir () const |
| Get repo directory. | |
Public Member Functions inherited from entropic::MCPServerBase | |
| 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 &raw_args_json) |
| Execute a tool and wrap result in ServerResponse JSON. | |
| virtual std::string | get_permission_pattern (const std::string &tool_name, const std::string &args_json) const |
| Generate permission pattern for 'Always Allow/Deny'. | |
| 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). | |
Additional Inherited Members | |
Protected Attributes inherited from entropic::MCPServerBase | |
| std::string | name_ |
| Server name. | |
| ToolRegistry | registry_ |
| Tool registry. | |
| entropic::GitServer::GitServer | ( | const std::filesystem::path & | repo_dir, |
| const std::string & | data_dir | ||
| ) |
Construct with repo directory and data dir.
| repo_dir | Repository root directory. |
| data_dir | Path to bundled data directory. |
A thin MCPServerBase subclass: build the eight tools, register them, and override only set_working_dir. Every tool runs against repo_dir_.
| repo_dir | Repository root directory. |
| data_dir | Path to bundled data directory. @req REQ-MCP-001 @req REQ-MCP-023 |
|
overridedefault |
Destructor.
@dg_internal
| const std::filesystem::path & entropic::GitServer::repo_dir | ( | ) | const |
Set working directory (repo root).
| path | New repo directory. |
Re-targets every git tool at once so a sandbox swap does not require reconstructing the server.
| path | New repo directory. |
Reimplemented from entropic::MCPServerBase.