todoai-mcp 0.1.1 → 0.1.3

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/.env.example CHANGED
@@ -4,9 +4,9 @@
4
4
  # Required: API key generated from TodoAI Settings -> API Keys
5
5
  TODOAI_API_KEY=tai_xxxxx
6
6
 
7
- # Backend API URL (default: http://localhost:3000)
7
+ # Backend API URL (default: https://todoai-be.ashishchanchal.in/)
8
8
  # Change to your deployed backend URL for remote/cloud usage
9
- # TODOAI_API_URL=https://your-backend.vercel.app
9
+ # TODOAI_API_URL=https://todoai-be.ashishchanchal.in/
10
10
 
11
11
  # Set PORT for HTTP mode (Streamable HTTP transport)
12
12
  # Leave unset for stdio mode (local AI agents)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "todoai-mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
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/index.js CHANGED
@@ -16,10 +16,9 @@ function ask(query) {
16
16
  }
17
17
 
18
18
  function printConfig(key, backendUrl, port) {
19
- const todoaiBackend = backendUrl || 'http://localhost:3000';
19
+ const todoaiBackend = backendUrl || 'https://todoai-be.ashishchanchal.in/';
20
20
  const isHttp = !!port;
21
21
  const transport = isHttp ? 'http' : 'stdio';
22
- const serverRef = isHttp ? `http://localhost:${port}/mcp` : 'node /path/to/todo-mcp/src/index.js';
23
22
 
24
23
  console.error('');
25
24
  console.error('═'.repeat(50));
@@ -35,18 +34,19 @@ function printConfig(key, backendUrl, port) {
35
34
  mcpServers: {
36
35
  todoai: isHttp
37
36
  ? { url: `http://localhost:${port}/mcp`, headers: { 'x-api-key': key } }
38
- : { command: 'node', args: ['/path/to/todo-mcp/src/index.js'], env: { TODOAI_API_KEY: key, TODOAI_API_URL: todoaiBackend } }
37
+ : { command: 'npx', args: ['-y', 'todoai-mcp'], env: { TODOAI_API_KEY: key, TODOAI_API_URL: todoaiBackend } }
39
38
  }
40
39
  },
41
40
  'Claude Code (.claude/settings.json)': isHttp
42
41
  ? { mcpServers: { todoai: { url: `http://localhost:${port}/mcp`, headers: { 'x-api-key': key } } } }
43
- : { mcpServers: { todoai: { command: 'node', args: ['/path/to/todo-mcp/src/index.js'], env: { TODOAI_API_KEY: key } } } },
44
- 'MCP CLI': isHttp
45
- ? `npx @anthropic-ai/mcp-cli connect --url http://localhost:${port}/mcp --headers '{"x-api-key":"${key}"}'`
46
- : `TODOAI_API_KEY=${key} npx @anthropic-ai/mcp-cli --server "node /path/to/todo-mcp/src/index.js"`,
47
- 'Any MCP tool (stdio)': `TODOAI_API_KEY=${key} node /path/to/todo-mcp/src/index.js`,
42
+ : { mcpServers: { todoai: { command: 'npx', args: ['-y', 'todoai-mcp'], env: { TODOAI_API_KEY: key } } } },
43
+ 'Any MCP tool (stdio)': `TODOAI_API_KEY=${key} TODOAI_API_URL=${todoaiBackend} npx todoai-mcp`,
48
44
  };
49
45
 
46
+ if (isHttp) {
47
+ configs['MCP CLI'] = `npx @anthropic-ai/mcp-cli connect --url http://localhost:${port}/mcp --headers '{"x-api-key":"${key}"}'`;
48
+ }
49
+
50
50
  for (const [label, cfg] of Object.entries(configs)) {
51
51
  console.error(`── ${label}`);
52
52
  console.error(JSON.stringify(cfg, null, 2));
@@ -71,7 +71,7 @@ async function runSetup() {
71
71
  }
72
72
  }
73
73
 
74
- const backendUrl = process.env.TODOAI_API_URL || (await ask(` Backend URL [http://localhost:3000]: `)) || 'http://localhost:3000';
74
+ const backendUrl = process.env.TODOAI_API_URL || (await ask(` Backend URL [https://todoai-be.ashishchanchal.in/]: `)) || 'https://todoai-be.ashishchanchal.in/';
75
75
  const port = process.env.PORT || (await ask(` HTTP port (empty for stdio): `));
76
76
 
77
77
  // Write .env
@@ -86,7 +86,7 @@ async function runSetup() {
86
86
  console.error(`\n .env written to ${envPath}`);
87
87
 
88
88
  printConfig(key, backendUrl, port);
89
- console.error(' Run: node src/index.js (or just: npx todoai-mcp)');
89
+ console.error(' Run: npx todoai-mcp');
90
90
  console.error('');
91
91
  }
92
92