Skip to content

Commit f39abd9

Browse files
waleedlatif1claude
andcommitted
fix(mcp): pass workspaceId on auto-start OAuth after server create
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 2224f93 commit f39abd9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/settings/components/mcp

apps/sim/app/workspace/[workspaceId]/settings/components/mcp/mcp.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,10 @@ export function MCP({ initialServerId }: MCPProps) {
746746
})
747747
if (result.authType === 'oauth') {
748748
try {
749-
await startOauthMutation.mutateAsync({ serverId: result.serverId })
749+
await startOauthMutation.mutateAsync({
750+
serverId: result.serverId,
751+
workspaceId,
752+
})
750753
} catch (e) {
751754
logger.error('Failed to start MCP OAuth', e)
752755
toast.error(e instanceof Error ? e.message : 'Failed to start authorization')

0 commit comments

Comments
 (0)