Git MCP server for version control operations.
More...
#include <entropic/mcp/servers/git.h>
|
| | 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.
|
| |
| | 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 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).
|
| |
Git MCP server for version control operations.
- Version
- 1.8.5
Definition at line 32 of file git.h.
◆ GitServer()
| entropic::GitServer::GitServer |
( |
const std::filesystem::path & |
repo_dir, |
|
|
const std::string & |
data_dir |
|
) |
| |
Construct with repo directory and data dir.
- Parameters
-
| repo_dir | Repository root directory. |
| data_dir | Path to bundled data directory. |
- Version
- 1.8.5
- Parameters
-
| repo_dir | Repository root directory. |
| data_dir | Path to bundled data directory. |
Definition at line 448 of file git.cpp.
◆ repo_dir()
| const std::filesystem::path & entropic::GitServer::repo_dir |
( |
| ) |
const |
Get repo directory.
- Returns
- Repo root path.
- Version
- 1.8.5
- Returns
- Repo root path.
Definition at line 528 of file git.cpp.
◆ set_working_dir()
| bool entropic::GitServer::set_working_dir |
( |
const std::string & |
path | ) |
|
|
overridevirtual |
Set working directory (repo root).
- Parameters
-
- Returns
- true on success.
- Version
- 1.8.5
- Parameters
-
- Returns
- true on success.
Reimplemented from entropic::MCPServerBase.
Definition at line 516 of file git.cpp.
The documentation for this class was generated from the following files: