Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
git.cpp File Reference

GitServer implementation — version control operations. More...

#include <entropic/mcp/servers/git.h>
#include <entropic/mcp/tool_base.h>
#include <entropic/mcp/server_base.h>
#include <entropic/types/logging.h>
#include <nlohmann/json.hpp>
#include <array>
#include <cstdio>
#include <string>
Include dependency graph for git.cpp:

Go to the source code of this file.

Classes

class  entropic::GitStatusTool
 Tool: git status –short. More...
 
class  entropic::GitDiffTool
 Tool: git diff [–staged] [file]. More...
 
class  entropic::GitLogTool
 Tool: git log -N [–oneline]. More...
 
class  entropic::GitCommitTool
 Tool: git commit -m "message", optionally git add -A first. More...
 
class  entropic::GitBranchTool
 Tool: git branch -a, or git checkout -b name. More...
 
class  entropic::GitCheckoutTool
 Tool: git checkout target. More...
 
class  entropic::GitAddTool
 Tool: git add files (space-separated). More...
 
class  entropic::GitResetTool
 Tool: git reset HEAD [files]. More...
 

Namespaces

namespace  entropic
 Activate model on GPU (WARM → ACTIVE).
 

Functions

static std::pair< std::string, int > entropic::run_git (const std::string &repo_dir, const std::string &git_args)
 Run a git command in a given directory via popen.
 
static ServerResponse entropic::make_git_response (const std::string &output, int exit_code)
 Format a git result as JSON ServerResponse.
 

Variables

static auto logger = entropic::log::get("mcp.git")
 

Detailed Description

GitServer implementation — version control operations.

Version
1.8.5

Definition in file git.cpp.

Variable Documentation

◆ logger

auto logger = entropic::log::get("mcp.git")
static

Definition at line 19 of file git.cpp.