Commit Graph

4 Commits

Author SHA1 Message Date
M. L. Giannotta 3c9886fa10 fix(mcp-server): set Authorization header on Send{Message,File,AudioVoiceMessage}
The three Send* helpers in helpers/whatsapp.go construct their HTTP
requests directly instead of going through callAPI, and were missing the
Bearer token that the bridge's JWT middleware requires. Calls reached the
bridge as 401 Unauthorized.

In practice sendMessageHandler in mcp_tool.go bypasses SendMessage and
calls callAPI directly, so the text-send path happens to work; but the
file and audio-message MCP handlers route through SendFile and
SendAudioVoiceMessage respectively, so send_file and send_audio_message
were broken end-to-end.

Same shape as the recent DownloadMedia fix: fetch a JWT via
GetOrRefreshJwtToken and add Authorization: Bearer <token> on the
outgoing request.
2026-05-10 17:20:43 +08:00
iamatulsingh f10176ffa7 feat: added new http streamable option instead of deprecated sse 2026-03-26 09:09:50 +01:00
iamatulsingh b5ac108719 feat: JWT authentication middleware and login endpoint 2026-03-08 21:00:28 +01:00
iamatulsingh dd5e347436 feat: whatsapp-mcp-go 2026-02-21 21:12:14 +01:00