[BUG]Sampling does not work in Vally or other MCP servers
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
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 内容生成。
描述
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
Environment
No response
- 主要语言
- C#
- 星标
- 3.9k
- 派生
- 689
- 平均合并
- 2 天 11 小时
- 30 天内合并 PR
- 143
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/mcp 的其他 Issue
-
[BUG] speech tts synthesize rejects valid locales such as fil-PH, yue-CN and sr-Latn-RS in --language可能已有人在做 @Shizoqua 今天认领。 未关闭Azure.Mcp.Server needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
[BUG] deploy architecture diagram generate never shows Docker settings for container apps可能已有人在做 @Shizoqua 今天认领。 未关闭Azure.Mcp.Server needs-triage
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 2 天内回复
-
[BUG] Single mode: an unknown tool name fails with "An error occurred invoking 'azure'" instead of listing the available tools可能已有人在做 @Ahmed-Manai 于 10 天前认领。 未关闭server-Azure.Mcp
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
[BUG] pricing get drops tierMinimumUnits, so tiered meters return same-meter prices with no threshold可能已有人在做 @msalaman 于 29 天前认领。 未关闭customer-reported needs-team-triage question server-Azure.Mcp tools-Price tools-Pricing
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/mcp#4087 · 1 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
[Doc Gap] README.md still shows removed "Basic" resilience usage plan tier after GA SDK update可能重新可做 @anishsinghhh3-bit 于 32 天前认领,目前没有进行中的 PR。 未关闭copilot documentation server-Azure.Mcp tools-ResilienceManagement
难度 1/5 1 小时以内 新手友好度 86/100
维护者通常 2 天内回复
相似的 Issue
-
bug documentation queries
难度 2/5 1-3 小时 新手友好度 82/100
ClickHouse/clickhouse-cs#815 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
-
XML grammar: only the closing --> of a comment gets the scope comment.block.xml可能已有人在做 @alexeyfala 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
danipen/TextMateSharp#145 · 2 条评论 ·
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 85/100
Klyroo/klyroo-dashboard#12 ·
维护者通常 1 天内回复
-
CONTRIBUTING rules Node out in step 0, then tells client-side contributors to run node --test, which is what CI gates on可能已有人在做 @yadavraj2001 今天认领。 未关闭documentation good first issue
难度 1/5 1-3 小时 新手友好度 82/100
juandresrodca/AdminForge#73 · 1 条评论 ·
维护者通常 1 天内回复