[BUG]Sampling does not work in Vally or other MCP servers

オープン
#4,232 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
28/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp, wasm
領域
api

調査の方向性

The error text 'Sampling request must end with a user message' comes from the MCP sampling flow when a server asks its host for a completion, so start by finding where this repository builds sampling requests and checks their message order. The reproduction is the external mcp-loading-eval.yaml in Azure/azure-sdk-pr, which is not in this repo, so first confirm which side produces the invalid message list. Done means a sampling request from the azure server completes without that error.

索引モデルが issue の本文から書いたものです。

説明

bug needs-author-feedback needs-team-triage needs-triage server-Azure.Mcp tools-BestPractices tools-Core
Describe the bug

When invoking the azure-best-practices tool from inside the Vally tool, requests fail with:

ERROR  azure-best-practices
  MCP sampling request 'd1f4bb7f-3f68-4a2f-bec0-0e77877f2f69' from server 'azure' failed: Sampling
  request must end with a user message

This essentially renders the MCP server useless from inside Vally evaluations or any MCP host that supports sampling because it appears that the rejection is blocking.

Expected behavior

Sampling works in Vally.

Actual behavior

Sampling fails :(

Reproduction Steps

https://github.com/Azure/azure-sdk-pr/blob/main/sdk-agentic-evaluations/Evaluations/scripts/mcp-loading-eval.yaml

Environment

No response

主要言語
C#
スター
3.9k
フォーク
689
平均マージ
2日 11時間
マージ済み PR(30日)
143

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/mcp のほかの issue

microsoft/mcp の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。