feat: add review_pending_changes tool and enforce absolute path security
- Add new review_pending_changes tool for comprehensive pre-commit reviews - Implement filesystem sandboxing with MCP_PROJECT_ROOT - Enforce absolute paths for all file/directory operations - Add comprehensive git utilities for repository management - Update all tools to use centralized path validation - Add extensive test coverage for new features and security model - Update documentation with new tool and path requirements - Remove obsolete demo and guide files 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
10
server.py
10
server.py
@@ -22,7 +22,14 @@ from config import (
|
||||
__updated__,
|
||||
__version__,
|
||||
)
|
||||
from tools import AnalyzeTool, ChatTool, DebugIssueTool, ReviewCodeTool, ThinkDeeperTool
|
||||
from tools import (
|
||||
AnalyzeTool,
|
||||
ChatTool,
|
||||
DebugIssueTool,
|
||||
ReviewCodeTool,
|
||||
ReviewPendingChanges,
|
||||
ThinkDeeperTool,
|
||||
)
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
@@ -38,6 +45,7 @@ TOOLS = {
|
||||
"debug_issue": DebugIssueTool(),
|
||||
"analyze": AnalyzeTool(),
|
||||
"chat": ChatTool(),
|
||||
"review_pending_changes": ReviewPendingChanges(),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user