Github copilot not setting bearer token on acces to tools.
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
- Área
- api, authentication
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
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
- Authenticate the mcp server
- 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
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de modelcontextprotocol/csharp-sdk
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
modelcontextprotocol/csharp-sdk#1913 ·
Los mantenedores suelen responder en 9 días
-
ClaimsPrincipal parameter injection sample requestPosiblemente ocupada @utsavjain2809 la tomó hace 7 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
modelcontextprotocol/csharp-sdk#1899 ·
Los mantenedores suelen responder en 9 días
-
Document ClientOAuthOptions.ScopeSelector usagePosiblemente ocupada @z0rimo la tomó hace 30 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
modelcontextprotocol/csharp-sdk#1867 · 1 comentario ·
Los mantenedores suelen responder en 9 días
-
HTTP+SSE client: POST responses are never disposed, leaking one connection per sent messagePosiblemente ocupada @yalcinfu22 la tomó hace 45 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
modelcontextprotocol/csharp-sdk#1840 · 1 comentario ·
Los mantenedores suelen responder en 9 días
-
stdio client never closes the server's stdin, so every client dispose burns the full ShutdownTimeout (5s by default)Posiblemente ocupada @luisangelrod la tomó hace 45 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
modelcontextprotocol/csharp-sdk#1836 · 1 comentario ·
Los mantenedores suelen responder en 9 días
Todos los issues de modelcontextprotocol/csharp-sdk
Issues similares
-
再現済み 要トリアージ 誤判定
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
yksr-melt/Meltype#421 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Facepunch/sbox-public#12063 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
facioquo/stock-indicators-dotnet#2316 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
eriknihlen/OpenAC#219 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ObsidianMC/Obsidian#548 ·
Los mantenedores suelen responder en 1 día