**feat(git-ops): enhance MCP server with Git provider updates and SSRF protection**
- Added `mcp-git-ops` service to `docker-compose.dev.yml` with health checks and configurations. - Integrated SSRF protection in repository URL validation for enhanced security. - Expanded `pyproject.toml` mypy settings and adjusted code to meet stricter type checking. - Improved workspace management and GitWrapper operations with error handling refinements. - Updated input validation, branching, and repository operations to align with new error structure. - Shut down thread pool executor gracefully during server cleanup.
This commit is contained in:
@@ -116,9 +116,7 @@ class GitHubProvider(BaseProvider):
|
||||
if response.status_code == 403:
|
||||
# Check for rate limiting
|
||||
if "rate limit" in response.text.lower():
|
||||
raise APIError(
|
||||
"github", 403, "GitHub API rate limit exceeded"
|
||||
)
|
||||
raise APIError("github", 403, "GitHub API rate limit exceeded")
|
||||
raise AuthenticationError(
|
||||
"github", "Insufficient permissions for this operation"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user