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:
@@ -23,7 +23,8 @@ class DebugIssueRequest(ToolRequest):
|
||||
None, description="Stack trace, logs, or additional error context"
|
||||
)
|
||||
files: Optional[List[str]] = Field(
|
||||
None, description="Files or directories that might be related to the issue"
|
||||
None,
|
||||
description="Files or directories that might be related to the issue (must be absolute paths)",
|
||||
)
|
||||
runtime_info: Optional[str] = Field(
|
||||
None, description="Environment, versions, or runtime information"
|
||||
@@ -63,7 +64,7 @@ class DebugIssueTool(BaseTool):
|
||||
"files": {
|
||||
"type": "array",
|
||||
"items": {"type": "string"},
|
||||
"description": "Files or directories that might be related to the issue",
|
||||
"description": "Files or directories that might be related to the issue (must be absolute paths)",
|
||||
},
|
||||
"runtime_info": {
|
||||
"type": "string",
|
||||
|
||||
Reference in New Issue
Block a user