Commit 31a8f8e
committed
fix(tools): stop MCP pinned params from stating the server's identity
The MCP discovery path stripped only `toolName` from a tool entry's stored
params, so `serverId` and `serverName` stayed in the values treated as pinned
and were stated to the model — an internal server id reaching a provider, and
two of the three field slots consumed before any real param. The cached path
already stripped all three; the split now lives in one helper so the two cannot
drift again.
Pi withheld literal values for every tool whenever ANY input in the whole run
resolved a secret, which is true of almost any real workflow — the feature was
effectively off there. It now asks the registry the same per-input-path question
the Agent block asks, so only the tool that actually carries a secret is
withheld.
A canonical group blocked by one half no longer leaks through the other: a
`file-upload` basic half skipped without claiming its param, letting a
`short-input` twin state a raw file reference. 78 groups have that shape.
Widens the secret-name backstop for params named by a remote MCP schema rather
than by Sim — `authorization`, `cookie`, `signature`, `connectionString`, `otp`
and friends are not in the Sim-tuned `isPasswordParameter` list.1 parent 53f4dde commit 31a8f8e
4 files changed
Lines changed: 113 additions & 18 deletions
File tree
- apps/sim
- executor/handlers
- agent
- pi/local
- providers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
214 | 227 | | |
215 | 228 | | |
216 | 229 | | |
| |||
1130 | 1143 | | |
1131 | 1144 | | |
1132 | 1145 | | |
1133 | | - | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
1134 | 1149 | | |
1135 | 1150 | | |
1136 | 1151 | | |
| |||
1355 | 1370 | | |
1356 | 1371 | | |
1357 | 1372 | | |
1358 | | - | |
| 1373 | + | |
1359 | 1374 | | |
1360 | 1375 | | |
1361 | 1376 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
244 | 252 | | |
245 | | - | |
| 253 | + | |
246 | 254 | | |
247 | 255 | | |
248 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
259 | 304 | | |
260 | 305 | | |
261 | 306 | | |
| |||
275 | 320 | | |
276 | 321 | | |
277 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
278 | 339 | | |
279 | 340 | | |
280 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | | - | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
186 | 189 | | |
187 | 190 | | |
188 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
189 | 196 | | |
| 197 | + | |
190 | 198 | | |
| 199 | + | |
191 | 200 | | |
192 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
193 | 205 | | |
194 | 206 | | |
195 | 207 | | |
| |||
200 | 212 | | |
201 | 213 | | |
202 | 214 | | |
203 | | - | |
204 | | - | |
| 215 | + | |
205 | 216 | | |
206 | 217 | | |
207 | 218 | | |
| |||
0 commit comments