This commit is contained in:
David Cramer 2025-12-23 15:42:48 +08:00 committed by GitHub
commit 4422ecfdcf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -161,7 +161,7 @@ export namespace McpOAuthCallback {
export async function isPortInUse(): Promise<boolean> {
return new Promise((resolve) => {
Bun.connect({
hostname: "127.0.0.1",
hostname: "localhost",
port: OAUTH_CALLBACK_PORT,
socket: {
open(socket) {

View file

@ -32,7 +32,7 @@ export class McpOAuthProvider implements OAuthClientProvider {
) {}
get redirectUrl(): string {
return `http://127.0.0.1:${OAUTH_CALLBACK_PORT}${OAUTH_CALLBACK_PATH}`
return `http://localhost:${OAUTH_CALLBACK_PORT}${OAUTH_CALLBACK_PATH}`
}
get clientMetadata(): OAuthClientMetadata {

View file

@ -24,4 +24,4 @@
"typescript": "catalog:",
"@typescript/native-preview": "catalog:"
}
}
}

View file

@ -29,4 +29,4 @@
"publishConfig": {
"directory": "dist"
}
}
}