[connectors] feat: add GitHub connector for web-security#24
Merged
Conversation
…eb-security # Conflicts: # capabilities/web-security/agents/web-security.md # capabilities/web-security/capability.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tested and working with #26
Summary
Adds a GitHub MCP connector to the
web-securitycapability so validated findings can be exported as GitHub remediation issues.The connector is deliberately focused on issue creation and follow-up comments. It avoids PR/code automation and adds explicit agent guidance to avoid posting sensitive exploit details to public repositories unless the user confirms intended disclosure.
Changes
capabilities/web-security/mcp/github.pyas a self-containeduv runFastMCP server.githubMCP server intocapabilities/web-security/capability.yaml.Connector Surface
github_healthgithub_list_labelsgithub_create_issuegithub_get_issuegithub_add_commentAuth uses
GITHUB_TOKENwith Issues write permission.GITHUB_API_URLcan override the API base for GitHub Enterprise-style deployments.Validation
uv run pytest capabilities/web-security/tests/test_github_mcp.pypassed: 10 tests.mypy capabilities/web-security/mcp/github.py capabilities/web-security/tests/test_github_mcp.py --ignore-missing-importspassed.pre-commit run --files capabilities/web-security/capability.yaml capabilities/web-security/agents/web-security.md capabilities/web-security/mcp/github.py capabilities/web-security/tests/test_github_mcp.pypassed.just validatecompleted with 0 failures.uv run capabilities/web-security/mcp/github.py; process stayed running until timeout as expected for stdio MCP.PYTHONPATH=capabilities/web-security/tools uv run pytest capabilities/web-security/testspassed: 146 passed, 7 existing warnings.git diff --checkpassed.Known
just validatewarnings are pre-existing environment warnings unrelated to this change:bloodhound-enterpriseruntime imports, local web-securitycaido-cli/Burp checks, andwindows-reversingJava 17 check.