@reproapp/mcp 0.0.2 → 0.0.5

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/README.md CHANGED
@@ -43,8 +43,8 @@ The installed binary is `repro-mcp`.
43
43
 
44
44
  Built-in defaults:
45
45
 
46
- - `REPRO_AI_BASE_URL=http://10.116.0.4`
47
- - `REPRO_API_BASE_URL=http://10.116.0.5/api`
46
+ - `REPRO_AI_BASE_URL=https://repro-ai-u8lhw.ondigitalocean.app`
47
+ - `REPRO_API_BASE_URL=https://repro-api-d7288.ondigitalocean.app/api`
48
48
  - `REPRO_WEB_BASE_URL=https://getrepro.io`
49
49
 
50
50
  Optional:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reproapp/mcp",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
4
  "description": "Repro MCP server for AI-assisted debugging and privacy policy workflows",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
package/src/index.js CHANGED
@@ -11,8 +11,8 @@ const SERVER_NAME = 'repro-mcp';
11
11
  const SERVER_VERSION = '0.0.1';
12
12
  const SUPPORTED_PROTOCOL_VERSION = '2024-11-05';
13
13
  const JSON_RPC_VERSION = '2.0';
14
- const DEFAULT_REPRO_AI_BASE_URL = 'http://10.116.0.4';
15
- const DEFAULT_REPRO_API_BASE_URL = 'http://10.116.0.5/api';
14
+ const DEFAULT_REPRO_AI_BASE_URL = 'https://repro-ai-u8lhw.ondigitalocean.app';
15
+ const DEFAULT_REPRO_API_BASE_URL = 'https://repro-api-d7288.ondigitalocean.app/api';
16
16
  const DEFAULT_REPRO_WEB_BASE_URL = 'https://getrepro.io';
17
17
  loadEnvironmentFiles(process.env);
18
18
  const DEBUG_LOG_PATH = process.env.REPRO_MCP_DEBUG_LOG;
@@ -810,7 +810,7 @@ function shouldRetryWithInteractiveAuth(error, config) {
810
810
  return false;
811
811
  }
812
812
  const statusCode = error && typeof error === 'object' ? error.statusCode : null;
813
- return statusCode === 401;
813
+ return statusCode === 401 && !isRemoteAuthConfigurationError(error);
814
814
  }
815
815
 
816
816
  function shouldRetryApiWithInteractiveAuth(error, config) {
@@ -821,6 +821,18 @@ function shouldRetryApiWithInteractiveAuth(error, config) {
821
821
  return statusCode === 401 || statusCode === 403;
822
822
  }
823
823
 
824
+ function isRemoteAuthConfigurationError(error) {
825
+ if (!error || typeof error !== 'object') {
826
+ return false;
827
+ }
828
+ const messages = [
829
+ typeof error.message === 'string' ? error.message : '',
830
+ typeof error.details?.error === 'string' ? error.details.error : '',
831
+ typeof error.details?.message === 'string' ? error.details.message : '',
832
+ ];
833
+ return messages.some((message) => message.includes('App-user bearer auth is not configured'));
834
+ }
835
+
824
836
  function resolveAuthFilePath(value) {
825
837
  if (typeof value === 'string' && value.trim()) {
826
838
  return path.resolve(value.trim());