Commit 08fe845
fix(mcp): strip secret from create mutation result, dedupe oauth row mapping
- useCreateMcpServer was returning the raw serverData (including plaintext
oauthClientSecret) as mutation.data; strip the secret to match the equivalent
fix applied to useUpdateMcpServer.
- Extract the McpOauthRow mapping/decryption from loadOauthRow and
loadOauthRowByState into a shared mapOauthRow helper.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 8310051 commit 08fe845
2 files changed
Lines changed: 15 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
159 | 160 | | |
160 | | - | |
| 161 | + | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 104 | + | |
111 | 105 | | |
| 106 | + | |
112 | 107 | | |
113 | 108 | | |
114 | 109 | | |
| |||
133 | 128 | | |
134 | 129 | | |
135 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
136 | 141 | | |
137 | 142 | | |
138 | 143 | | |
| |||
152 | 157 | | |
153 | 158 | | |
154 | 159 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 160 | + | |
177 | 161 | | |
178 | 162 | | |
179 | 163 | | |
| |||
0 commit comments