pi-mcp-adapter 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/mcp-callback-server.ts +1 -1
- package/mcp-oauth-provider.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.5.1] - 2026-04-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Changed OAuth browser callbacks to `http://localhost:<port>/callback` for pre-registered clients such as Slack MCP. Thanks @shenal for PR #53.
|
|
14
|
+
|
|
10
15
|
## [2.5.0] - 2026-04-24
|
|
11
16
|
|
|
12
17
|
### Added
|
package/mcp-callback-server.ts
CHANGED
|
@@ -178,7 +178,7 @@ export async function ensureCallbackServer(options: EnsureCallbackServerOptions
|
|
|
178
178
|
reject(err)
|
|
179
179
|
})
|
|
180
180
|
|
|
181
|
-
candidateServer.listen(candidatePort, "
|
|
181
|
+
candidateServer.listen(candidatePort, "localhost", () => {
|
|
182
182
|
resolve()
|
|
183
183
|
})
|
|
184
184
|
})
|
package/mcp-oauth-provider.ts
CHANGED
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
|
|
30
30
|
// Callback server configuration
|
|
31
31
|
const DEFAULT_OAUTH_CALLBACK_PORT = 19876
|
|
32
|
-
const OAUTH_CALLBACK_PATH = "/
|
|
32
|
+
const OAUTH_CALLBACK_PATH = "/callback"
|
|
33
33
|
|
|
34
34
|
let configuredOAuthCallbackPort = DEFAULT_OAUTH_CALLBACK_PORT
|
|
35
35
|
|
|
@@ -89,7 +89,7 @@ export class McpOAuthProvider implements OAuthClientProvider {
|
|
|
89
89
|
*/
|
|
90
90
|
get redirectUrl(): string | undefined {
|
|
91
91
|
if (this.usesClientCredentials) return undefined
|
|
92
|
-
return `http://
|
|
92
|
+
return `http://localhost:${getOAuthCallbackPort()}${OAUTH_CALLBACK_PATH}`
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/**
|