- Notifications
You must be signed in to change notification settings - Fork953
Open
Description
add tools to fetch and dismiss dependabot alerts for a repo
Proposed solution
example tool for fetching alerts
@mcp.tool()defget_dependabot_alerts(repo_owner:str,repo_name:str)->list[dict]:"""Get Github Dependabot alerts"""url=f"https://api.github.com/repos/{repo_owner}/{repo_name}/dependabot/alerts"headers= {"Authorization":f"Bearer{GITHUB_TOKEN}","Accept":"application/vnd.github+json" }response=requests.get(url,headers=headers)ifresponse.status_code==200:returnresponse.json()else:print(response.status_code,response.text)return []