-
Notifications
You must be signed in to change notification settings - Fork 8
initial commit of mcs sample #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new Microsoft Copilot Studio (MCS) relay agent sample that demonstrates how to call Copilot Studio Agents from an Agent instance. The sample includes comprehensive setup scripts, configuration files, and a complete C# implementation.
Key changes:
- PowerShell automation scripts for Agent Blueprint and Agent User creation
- Complete C# relay agent implementation with authentication and notification handling
- Extensive documentation covering setup, deployment, and troubleshooting
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 22 comments.
Show a summary per file
| File | Description |
|---|---|
scripts/createAgenticUser.ps1 |
Script to create Agent Identity and Agent User with configuration support |
scripts/createAgentBlueprint.ps1 |
Script to create Agent Blueprint and configure permissions with MCP scope support |
scripts/Add-AgentBlueprintPermissions.ps1 |
Script to manage inheritable delegated scopes for Agent Blueprints |
scripts/DelegatedAgentApplicationCreateConsent.ps1 |
Script to grant AgentApplication.Create permissions |
scripts/README.md |
Setup documentation for Agent Blueprint creation and configuration |
scripts/README_AgentUserCreation.md |
Documentation for Agent Identity and Agent User creation |
README.md |
Comprehensive setup guide covering the entire deployment process |
appsettings.json |
Configuration template for token validation, authentication, and Copilot Studio connection |
AgenticRelay/Program.cs |
Main entry point configuring the agent application and middleware |
AgenticRelay/AgenticRelay.cs |
Core agent logic handling notifications and relaying to MCS |
AgenticRelay/AspNetExtensions.cs |
Token validation extensions for ABS/SMBA authentication |
AgenticRelay/AgenticRelay.csproj |
Project file with required package dependencies |
AgenticRelayExample.sln |
Solution file for the sample project |
.gitignore |
Git ignore rules for development files |
|
|
||
| This sample demonstrates how to call Copilot Studio Agents from an Agent instance. | ||
|
|
||
| ## Run the setup scripts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please have the developer set up the Azure resources via the devtools CLI instead of these individual scripts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this come in a subsequent PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refer to the other README.md files in the repo to see what they are expected to look like.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use the CLI for this and all other scripts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack. I can commit to moving to the CLI this evening. Could it come after this initial PR?
No description provided.