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

Abierto
#4,232 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
28/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp, wasm
Área
api

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
C#
Estrellas
3.9k
Forks
689
Merge medio
2 d 11 h
PR fusionados (30 d)
143

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoft/mcp

Todos los issues de microsoft/mcp

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.