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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "todoai-mcp",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "TodoAI MCP Server — let any AI agent manage your todos natively through the Model Context Protocol",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/client.js CHANGED
@@ -1,4 +1,4 @@
1
- const TODOAI_API_URL = process.env.TODOAI_API_URL || 'http://127.0.0.1:3000';
1
+ const TODOAI_API_URL = process.env.TODOAI_API_URL || 'https://todoai-be.ashishchanchal.in/';
2
2
 
3
3
  const BASE_HEADERS = {
4
4
  'Content-Type': 'application/json',
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 envPath = join(process.cwd(), '.env');
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}`,