**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:
2026-01-07 09:17:00 +01:00
parent 1779239c07
commit 76d7de5334
11 changed files with 781 additions and 181 deletions

View File

@@ -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"
)