feat: disable auto-open when authentication is enabled
- Auto-open browser only works when DANGEROUSLY_OMIT_AUTH=true - When auth is enabled (default), users must use the secure URL with token - Server displays clear message that auto-open is disabled with auth - Updates documentation to reflect this behavior This improves UX by preventing the browser from opening without auth token, forcing users to use the secure pre-filled URL instead.
This commit is contained in:
parent
15ecb59a96
commit
9dbd17343c
1 changed files with 7 additions and 5 deletions
|
|
@ -470,7 +470,7 @@ server.on("listening", () => {
|
|||
// Display clickable URL with pre-filled token
|
||||
const clientPort = process.env.CLIENT_PORT || '6274';
|
||||
const clientUrl = `http://localhost:${clientPort}/?MCP_PROXY_AUTH_TOKEN=${sessionToken}`;
|
||||
console.log(`\n🔗 Open inspector with token pre-filled:\n ${clientUrl}`);
|
||||
console.log(`\n🔗 Open inspector with token pre-filled:\n ${clientUrl}\n (Auto-open is disabled when authentication is enabled)\n`);
|
||||
} else {
|
||||
console.log(`⚠️ WARNING: Authentication is disabled. This is not recommended.`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue