todoai-mcp 0.1.4 → 0.1.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/package.json +1 -1
- package/src/client.js +1 -1
- package/src/index.js +3 -2
package/package.json
CHANGED
package/src/client.js
CHANGED
package/src/index.js
CHANGED
|
@@ -72,10 +72,11 @@ async function runSetup() {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
const backendUrl = process.env.TODOAI_API_URL || (await ask(` Backend URL [https://todoai-be.ashishchanchal.in/]: `)) || 'https://todoai-be.ashishchanchal.in/';
|
|
75
|
-
const port = process.env.PORT || (await ask(` HTTP port (empty for stdio): `));
|
|
75
|
+
const port = process.env.PORT || (await ask(` HTTP port (empty for stdio, set to 3001 for HTTP mode): `));
|
|
76
76
|
|
|
77
77
|
// Write .env
|
|
78
|
-
const
|
|
78
|
+
const envDir = join(__dirname, '..');
|
|
79
|
+
const envPath = join(envDir, '.env');
|
|
79
80
|
const envContent = [
|
|
80
81
|
`TODOAI_API_KEY=${key}`,
|
|
81
82
|
`TODOAI_API_URL=${backendUrl}`,
|