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 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
@@ -178,7 +178,7 @@ export async function ensureCallbackServer(options: EnsureCallbackServerOptions
178
178
  reject(err)
179
179
  })
180
180
 
181
- candidateServer.listen(candidatePort, "127.0.0.1", () => {
181
+ candidateServer.listen(candidatePort, "localhost", () => {
182
182
  resolve()
183
183
  })
184
184
  })
@@ -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 = "/mcp/oauth/callback"
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://127.0.0.1:${getOAuthCallbackPort()}${OAUTH_CALLBACK_PATH}`
92
+ return `http://localhost:${getOAuthCallbackPort()}${OAUTH_CALLBACK_PATH}`
93
93
  }
94
94
 
95
95
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-mcp-adapter",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "MCP (Model Context Protocol) adapter extension for Pi coding agent",
5
5
  "type": "module",
6
6
  "license": "MIT",