This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Important
Some information in this article relates to a prereleased product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
In this Quickstart, you learn how to use MCP tools to build Security Copilot agents in VS Code.
You'll complete the following tasks:
Run the prompt
Deploy the agent
Test the agent
Run the prompt to deploy the agent to autogenerate an agent YAML.
Enter the prompt as follows:
Create an agent that generates a comprehensive post incident report from your Defender, Purview and Sentinel incidents. It aggregates incident summaries, detailed insights, entities, alerts, and provides actionable remediation steps.The MCP toolstart_agent_creation is invoked. SelectAllow.
A second tool is invoked to get the evaluation result. SelectAllow again, but it might take up to a minute for the evaluation to finish.
You can prompt GitHub Copilot with, "Show me the agent YAML" to check for and retrieve the generated YAML.
Once GitHub Copilot returns the generated YAML, you can instruct to "Save it to a new .yaml file" so that you can view the created YAML in a file in your VS Code workspace. GitHub Copilot suggests edits to the file as you continue to prompt and iterate on your agent.
You can ask GitHub Copilot to refine the definition further, such as to add more tools or to tweak the agent instructions.
Prompt GitHub Copilot to deploy your agent. Specify eitherUser orWorkspace scope. If you made manual edits to the agent definition, add that yaml file to the chat context first before prompting the deployment.
If you deploy to User scope, you can see your agent in custom plugins. If you deploy to Workspace scope, the agent is displayed in the Active agents view. The agent is deployed to Security Copilot standalone.
Navigate to menuBuild in Security Copilot.
Select the cardCreate an agent.
Go to the top navigation bar and select the dropdown.
Search for your agent to edit.
The agent details are populated in the agent overview page.
Navigate to theTest tab and proceed with testing. SeeTest agent.