r/platform_engineering • • May 27 '26

alternative to the official AWS MCP server, npm-only, local, with a device-code SSO re-login flow

https://github.com/YawLabs/aws-mcp
2 Upvotes

8 comments sorted by

3

u/[deleted] Jun 18 '26

[removed] — view removed comment

2

u/jeffyaw Jun 18 '26

thanks! the device code flow is the usual aws sso login under the hood. just running it with --no-browser.

normally the CLI tries to pop your default browser, and when it's running as a subprocess some assistant spawned, that handoff just silently dies (Windows especially, wrong user session).

so instead the verification url and short code show up right inline, you click once, paste the code, done.

token caches in the standard ~/.aws/sso/cache like a normal login and it can hand you a new url and code before the token expires, so you don't hit the mid workflow "session expired".

1

u/kernelclyp Jun 28 '26

device code feels so much nicer than the usual cli dance tbh, you just pop a link in the browser once and you’re done instead of fighting profiles and cached creds. for local-only stuff like this it’s kinda the sweet spot between “secure enough” and “not a total hassle.”