Commit ddae8eb
fix(mcp): use canonical serverId from contract; drop dual-semantics state field
- tool-input now passes result.serverId (the contract-defined property) to
startOauthForServer instead of the duplicated result.id alias.
- Drop the unused state field from McpOauthRow. The DB column stores a hash;
the in-memory copy was only ever assigned (never read for logic), and
provider.state() was setting it to plaintext, creating an inconsistent
hash-vs-plaintext type. Removing it eliminates the foot-gun.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 4f3b32a commit ddae8eb
3 files changed
Lines changed: 1 addition & 7 deletions
File tree
- apps/sim
- app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input
- lib/mcp/oauth
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2142 | 2142 | | |
2143 | 2143 | | |
2144 | 2144 | | |
2145 | | - | |
| 2145 | + | |
2146 | 2146 | | |
2147 | 2147 | | |
2148 | 2148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| |||
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
142 | | - | |
143 | 141 | | |
144 | 142 | | |
145 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | | - | |
78 | 76 | | |
79 | 77 | | |
80 | 78 | | |
| |||
104 | 102 | | |
105 | 103 | | |
106 | 104 | | |
107 | | - | |
108 | 105 | | |
109 | 106 | | |
110 | 107 | | |
| |||
125 | 122 | | |
126 | 123 | | |
127 | 124 | | |
128 | | - | |
129 | 125 | | |
130 | 126 | | |
131 | 127 | | |
| |||
0 commit comments