Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Github copilot not setting bearer token on acces to tools.

Abierto
#1,166 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 9 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
30/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
csharp, github

Línea de trabajo

Comienza con la configuración .mcp.json y reproduce la llamada desde el chat de Visual Studio GitHub Copilot al servidor MCP, comparándola con la solicitud funcional de Postman. Determina si el bearer token que falta lo causa el C# SDK o el cliente de Copilot; se considera terminado cuando la solicitud de la herramienta incluye el token autenticado o se ha acotado el componente responsable.

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

Descripción

area-auth bug help wanted needs confirmation P3

Describe the bug
I have created an MCP server and I am trying to use it in visual studio 2026 with github copilot. I created an .mcp.json for the solution and I managed to authenticate using oauth using the codelens ui for that file. When saving the .mcp.json file Visual Studio supplies the bearer token to the MCP server and it is marked as online.

But when copilot chat tries to access it, the bearer token is not included in the request. But the server still shows connected in the config. I don't know if this is a problem with this library or not. If I execute the tools using the bearer token and postman it all works. But github copilot does not try to supply the token.

Do I need to add anything special in the way of attributes or such to get copilot ai to understand it needs to supply the bearer token when calling tools?

To Reproduce

  1. Authenticate the mcp server
  2. Try to use the tool in the chat. No token gets send.

Expected behavior
copilot chat should send the bearer token to the mcp server

Logs

Additional context

Lenguaje dominante
C#
Estrellas
4.6k
Forks
819
Merge medio
4 d 23 h
PR fusionados (30 d)
2

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 modelcontextprotocol/csharp-sdk

Todos los issues de modelcontextprotocol/csharp-sdk

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.