Commit 898a98a
committed
fix(backend): create instances and assign satellite for OAuth MCP server installations
The OAuth callback flow was missing instance creation and satellite
assignment that the normal installation flow (create.ts) already had.
This caused OAuth-requiring servers (Notion, Neon, Box, Linear) to have
null satellite_id and no entries in mcpServerInstances, so the satellite
never spawned processes for them.
- Add satellite_id column to oauthPendingFlows table to carry it through
the OAuth redirect flow (authorize -> popup -> callback)
- Add satellite_id to OAuth authorize request schema and validate it
using SatelliteValidationService with autoSelect, matching create.ts
- Set satellite_id on the installation record from the pending flow
- Create instance for installing user with status 'connecting' after
successful OAuth token exchange
- Create instances for other team members with status
'awaiting_user_config' so they can complete their own OAuth1 parent 80f0b30 commit 898a98a
File tree
7 files changed
+6677
-0
lines changed- services/backend
- drizzle/migrations
- meta
- src
- db/schema-tables
- routes/mcp/installations
7 files changed
+6677
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments