Commit 70fb321
authored
fix(runtime): propagate organizationName and organizationSlug from JWT metadata (#2580)
* fix(runtime): propagate organizationName and organizationSlug from JWT metadata
The runtime withBindings() was not extracting organizationId,
organizationName, and organizationSlug from the JWT metadata when
tokenOrContext was an object. This caused MCPs to receive null for
these fields even though the Mesh proxy correctly included them in
the JWT. Also enriches the context-factory Mesh JWT flow to include
org name/slug from metadata before falling back to a DB query.
Made-with: Cursor
* fix(runtime): bump version to 1.2.11 for npm publish
Includes the fix for organizationName/organizationSlug propagation
from JWT metadata in withBindings().
Made-with: Cursor1 parent 9348fba commit 70fb321
4 files changed
Lines changed: 44 additions & 7 deletions
File tree
- apps/mesh/src
- api/routes
- core
- packages/runtime
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
132 | 141 | | |
133 | 142 | | |
134 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
548 | 571 | | |
549 | 572 | | |
550 | 573 | | |
| |||
553 | 576 | | |
554 | 577 | | |
555 | 578 | | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
| 579 | + | |
561 | 580 | | |
562 | 581 | | |
563 | 582 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
223 | 226 | | |
224 | 227 | | |
225 | 228 | | |
226 | 229 | | |
227 | 230 | | |
228 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
229 | 238 | | |
230 | 239 | | |
231 | 240 | | |
| |||
0 commit comments