You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+53-3Lines changed: 53 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,6 +170,58 @@ StackHawk MCP can be used as a tool provider for AI coding assistants and LLM-po
170
170
- Review the [Available Tools & API](#available-tools--api) section for supported operations.
171
171
- For advanced integration, see the example tool usage in this README or explore the codebase for custom workflows.
172
172
173
+
### GitHub Copilot Agents
174
+
175
+
StackHawk can be added to the GitHub Coding Agent as an MCP server or as its own GitHub Custom Agent.
176
+
177
+
#### Add to GitHub Coding Agent
178
+
179
+
You can add StackHawk MCP to the GitHub Copilot Coding Agent. This gives the agent all the `stackhawk/` tools.
180
+
181
+
**StackHawk MCP installation into the Coding Agent**
182
+
183
+
[General instructions on GitHub](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/extend-coding-agent-with-mcp#adding-an-mcp-configuration-to-your-repository)
184
+
185
+
For StackHawk MCP, the MCP Configuration JSON should look something like this:
#### StackHawk Onboarding Agent as a GitHub Copilot Custom Agent
212
+
213
+
You can the StackHawk Onboarding Agent as a custom agent at the enterprise, organization, or repository level in GitHub. When added, the StackHawk Onboarding Agent becomes a selectable option in the Copilot Agent Chat with context to help with onboarding, plus it installs `stackhawk-mcp` so the agent has access to all of those tools.
214
+
215
+
**StackHawk Onboarding Agent installation**
216
+
217
+
The general approach is to take the [StackHawk Onboarding Agent defintion](https://github.com/github/awesome-copilot/blob/main/agents/stackhawk-security-onboarding.agent.md) and apply it to either the desired repository, enterprise, or organization in GitHub.
218
+
219
+
-[Instructions for installing into a repository on GitHub](https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/coding-agent/create-custom-agents#creating-a-custom-agent-profile-for-a-repository)
220
+
-[Instructions for installing into an enterprise on GitHub](https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/prepare-for-custom-agents)
221
+
-[Instructions for installing into an organization GitHub](https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/prepare-for-custom-agents)
222
+
223
+
Note that the `mcp-servers` block in the StackHawk Onboarding Agent definition references an environment variable called `COPILOT_MCP_STACKHAWK_API_KEY`. Go to the Repository's `Settings->Environments->copilot->Environment Secrets`, add `COPILOT_MCP_STACKHAWK_API_KEY` with your StackHawk API Key.
224
+
173
225
---
174
226
175
227
## Configuration
@@ -348,6 +400,4 @@ Workflows are designed to skip jobs if the latest commit is an automated version
348
400
3. Click "Run workflow" and choose the desired bump type (minor or major).
0 commit comments