Commit d5a2c42
committed
Warn when V2 server falls back to shared BEARER_TOKEN in dev mode
In dev, createDevTokenAcquirer previously ignored the resolved scope and
silently fell back to BEARER_TOKEN for all servers. V2 servers (distinct
audience) would receive a token scoped to the shared ATG audience and get
a 401 from the MCP server with no indication of why.
Now emits a console.warn identifying the server, the required scope, and
the exact env var to set (BEARER_TOKEN_<SERVERNAME_UPPER>) so the
misconfiguration is visible before hitting the 401.1 parent 91ce104 commit d5a2c42
1 file changed
Lines changed: 15 additions & 2 deletions
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
191 | 193 | | |
192 | 194 | | |
193 | | - | |
194 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
195 | 208 | | |
196 | 209 | | |
197 | 210 | | |
| |||
0 commit comments