@gitstar-ai/mcp 0.2.0 → 0.2.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/dist/auth.js +5 -1
- package/package.json +1 -1
package/dist/auth.js
CHANGED
|
@@ -14,7 +14,11 @@ function ensureDir() {
|
|
|
14
14
|
export function getApiUrl() {
|
|
15
15
|
try {
|
|
16
16
|
const config = JSON.parse(readFileSync(CONFIG_FILE, 'utf-8'));
|
|
17
|
-
|
|
17
|
+
const url = config.api_url || DEFAULT_API_URL;
|
|
18
|
+
if (url.includes('localhost') || url.includes('127.0.0.1')) {
|
|
19
|
+
console.warn(`Warning: Using local dev URL (${url}). Delete ~/.gitstar/config.json to use production.`);
|
|
20
|
+
}
|
|
21
|
+
return url;
|
|
18
22
|
}
|
|
19
23
|
catch {
|
|
20
24
|
return DEFAULT_API_URL;
|