db620d33df
dotnet-build-and-test / dotnet-test-functions (push) Has been cancelled
dotnet-build-and-test / paths-filter (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Debug, windows-latest, net9.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net8.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-foundry-hosted-it (push) Has been cancelled
dotnet-build-and-test / dotnet-build-and-test-check (push) Has been cancelled
dotnet-build-and-test / Integration Test Report (push) Has been cancelled
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
#
|
|
# This workflow tests invoking MCP tools with approval requirement.
|
|
# Uses the Microsoft Learn MCP server: search tool with requireApproval: true
|
|
#
|
|
kind: Workflow
|
|
trigger:
|
|
|
|
kind: OnConversationStart
|
|
id: workflow_invoke_mcp_tool_approval_test
|
|
actions:
|
|
|
|
# Set the search query we want to use
|
|
- kind: SetVariable
|
|
id: set_search_query
|
|
variable: Local.ContentUrl
|
|
value: https://learn.microsoft.com/azure/ai-foundry/openai/concepts/use-your-data
|
|
|
|
# Invoke MCP search tool with approval requirement
|
|
- kind: InvokeMcpTool
|
|
id: invoke_mcp_search
|
|
serverUrl: https://learn.microsoft.com/api/mcp
|
|
serverLabel: MicrosoftLearn
|
|
toolName: microsoft_docs_fetch
|
|
requireApproval: true
|
|
arguments:
|
|
url: =Local.ContentUrl
|
|
output:
|
|
autoSend: false
|
|
result: Local.FetchResult
|
|
messages: Local.FetchMessages
|
|
|
|
# Send the result as an activity
|
|
- kind: SendMessage
|
|
id: show_search_result
|
|
message: "Content for {Local.ContentUrl}: {Local.FetchResult}"
|