Commit 138cee9
committed
fix: correct managed OAuth credential name lookup for gateway MCP clients
The managed OAuth credential is created with the suffix '-oauth' (e.g.
'my-gateway-oauth') but was being looked up with '-agent-oauth' in
schema-mapper.ts and displayed with '-agent-oauth' in AddGatewayScreen.
This mismatch caused the credential lookup to fail silently, resulting
in an empty provider_name in the generated @requires_access_token
decorator. The agent runtime then crashed with:
ParamValidationError: Invalid length for parameter
resourceCredentialProviderName, value: 0, valid min length: 11 parent 73156a4 commit 138cee9
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
0 commit comments