fix(secrets): injector-delivered servers must attach, not exec #120
Reference in New Issue
Block a user
Delete Branch "feat/injector-attach-mode"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With injected delivery the credentials exist only in PID 1 env (a shell sourced /vault/secrets/ and exec-ed the server). mcpd selected
execfor packageName/command servers, which spawns a NEW process with empty credentials — server starts, answers tools/list, fails every authed call.secretDelivery: injector now forces
attach. No bouncer needed: PersistentStdio already holds one long-lived connection, it was pointed at the wrong process.Inverts an earlier assumption: image-entrypoint servers were already on attach and would have worked; package-based ones were broken. Extracts chooseStdioMode() as a pure function with 6 tests.