Skip to content

draft prototype#15506

Draft
m-redding wants to merge 1 commit intoAzure:mainfrom
m-redding:prototype/mcp-sampling-agent-runner
Draft

draft prototype#15506
m-redding wants to merge 1 commit intoAzure:mainfrom
m-redding:prototype/mcp-sampling-agent-runner

Conversation

@m-redding
Copy link
Copy Markdown
Member

Add SamplingAgentRunner that uses MCP SDK sampling (server.AsSamplingChatClient()) to delegate LLM inference back to the MCP client, removing the dependency on the GitHub Copilot CLI for LLM calls when running as an MCP server.

  • Upgrade ModelContextProtocol from 0.5.0-preview.1 to 1.2.0
  • Add SamplingAgentRunner implementing ICopilotAgentRunner via MCP sampling
  • Add CompositeAgentRunner for runtime selection: sampling when MCP context available, Copilot SDK fallback for CLI mode
  • Wire CompositeAgentRunner as the ICopilotAgentRunner in DI

Add SamplingAgentRunner that uses MCP SDK sampling (server.AsSamplingChatClient())
to delegate LLM inference back to the MCP client, removing the dependency on the
GitHub Copilot CLI for LLM calls when running as an MCP server.

- Upgrade ModelContextProtocol from 0.5.0-preview.1 to 1.2.0
- Add SamplingAgentRunner implementing ICopilotAgentRunner via MCP sampling
- Add CompositeAgentRunner for runtime selection: sampling when MCP context
  available, Copilot SDK fallback for CLI mode
- Wire CompositeAgentRunner as the ICopilotAgentRunner in DI

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added the azsdk-cli Issues related to Azure/azure-sdk-tools::tools/azsdk-cli label May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

azsdk-cli Issues related to Azure/azure-sdk-tools::tools/azsdk-cli

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant