Commit af23cec
committed
fix: extract session ID from Mcp-Session-Id response header
Session ID is returned in the Mcp-Session-Id HTTP response header,
not in SSE comments. Updated to:
- Extract from response.headers['Mcp-Session-Id'] after first request
- Send as 'Mcp-Session-Id' header in subsequent requests
- Matches rmcp StreamableHttpService session protocol
This fixes 401 Unauthorized error by properly managing session state.1 parent 8bb3f8d commit af23cec
1 file changed
+8
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
197 | 202 | | |
198 | 203 | | |
199 | 204 | | |
200 | 205 | | |
201 | 206 | | |
202 | 207 | | |
203 | | - | |
| 208 | + | |
204 | 209 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | 210 | | |
212 | 211 | | |
213 | 212 | | |
| |||
0 commit comments