-
Notifications
You must be signed in to change notification settings - Fork 1.1k
make auth token configurable via env var #517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I have now published this change under |
|
This was handled by #513, so feel free to close. But this does document the feature so maybe merge for that? |
|
(Though I'll just add a note that I think it is odd that the env var is called |
@kentcdodds I actually am not seeing that it works to startup using The proxy server seems to allow for overriding However, the start.js script for the client doesn't read either, and instead creates a sessionToken unconditionally.
I think it would be good for this PR to correct all that. Use |
Co-authored-by: Cursor Agent <[email protected]>
|
Let me know if that's what you're looking for! Thanks! |
cliffhall
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.







Motivation and Context
I run MCP workshops. To keep exercises isolated and setup easy, I programmatically run the inspector with a bunch of things prefilled via the URL and use environment variables to control things like ports etc. With the session token changes, I now have to parse out the generated session token from the output so I can kick off the inspector with the auth token in the search params.
This is possible, but I don't like parsing output as it could easily change. I would much rather just be responsible for generating the token.
How Has This Been Tested?
I made this change in
node_moduleslocally and it worked great.Breaking Changes
None
Types of changes
Checklist