Disabling the multi-popup-prevention logic for now on windows as it appears not to be reliable
This commit is contained in:
parent
88fa18b1d1
commit
684320a04c
2 changed files with 6 additions and 6 deletions
|
@ -130,7 +130,7 @@ Then restarting your MCP client.
|
|||
|
||||
### Check your Node version
|
||||
|
||||
Make sure that the version of Node you have installed is [16 or
|
||||
Make sure that the version of Node you have installed is [18 or
|
||||
higher](https://modelcontextprotocol.io/quickstart/server). Claude
|
||||
Desktop will use your system version of Node, even if you have a newer
|
||||
version installed elsewhere.
|
||||
|
|
|
@ -76,7 +76,7 @@ export async function waitForAuthentication(port: number): Promise<boolean> {
|
|||
} else if (response.status === 202) {
|
||||
// Continue polling
|
||||
log(`Authentication still in progress`)
|
||||
await new Promise(resolve => setTimeout(resolve, 1000))
|
||||
await new Promise((resolve) => setTimeout(resolve, 1000))
|
||||
} else {
|
||||
log(`Unexpected response status: ${response.status}`)
|
||||
return false
|
||||
|
@ -100,8 +100,8 @@ export async function coordinateAuth(
|
|||
callbackPort: number,
|
||||
events: EventEmitter,
|
||||
): Promise<{ server: Server; waitForAuthCode: () => Promise<string>; skipBrowserAuth: boolean }> {
|
||||
// Check for a lockfile
|
||||
const lockData = await checkLockfile(serverUrlHash)
|
||||
// Check for a lockfile (disabled on Windows for the time being)
|
||||
const lockData = process.platform === 'win32' ? null : await checkLockfile(serverUrlHash)
|
||||
|
||||
// If there's a valid lockfile, try to use the existing auth process
|
||||
if (lockData && (await isLockValid(lockData))) {
|
||||
|
@ -183,6 +183,6 @@ export async function coordinateAuth(
|
|||
return {
|
||||
server,
|
||||
waitForAuthCode,
|
||||
skipBrowserAuth: false
|
||||
skipBrowserAuth: false,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue