Commit 9542541
perf(mcp): thread test-connection authType through to create, drop duplicate probe
test-connection already probes the URL and returns `authType` as part
of its structured signal. Pass it through to the create call so
performCreateMcpServer skips its own probe — one network round-trip
per add instead of two.
server-lifecycle already short-circuits when params.authType is set,
so no route changes needed; this is purely UI plumbing. Falls back to
the existing probe if authType is omitted (e.g. server-to-server
callers or older clients), so behavior is unchanged for those paths.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent a295d84 commit 9542541
2 files changed
Lines changed: 11 additions & 0 deletions
File tree
- apps/sim
- app/workspace/[workspaceId]/settings/components/mcp/components/mcp-server-form-modal
- hooks/queries
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| |||
531 | 538 | | |
532 | 539 | | |
533 | 540 | | |
| 541 | + | |
534 | 542 | | |
535 | 543 | | |
536 | 544 | | |
| |||
593 | 601 | | |
594 | 602 | | |
595 | 603 | | |
| 604 | + | |
596 | 605 | | |
597 | 606 | | |
598 | 607 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
0 commit comments