healthy-companion 1.0.3 → 1.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 +36 -0
- package/package.json +2 -1
- package/server.js +3 -1
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Healthy Companion
|
|
2
|
+
|
|
3
|
+
A lightweight MCP server for tracking todos and water intake. Built with the Model Context Protocol SDK.
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
### Kilo Code
|
|
8
|
+
|
|
9
|
+
Add to your Kilo Code MCP settings (`.kilocode/mcp.json`):
|
|
10
|
+
|
|
11
|
+
```json
|
|
12
|
+
{
|
|
13
|
+
"mcpServers": {
|
|
14
|
+
"healthy-companion": {
|
|
15
|
+
"command": "npx",
|
|
16
|
+
"args": ["-y", "healthy-companion"]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Tools
|
|
23
|
+
|
|
24
|
+
| Tool | Description |
|
|
25
|
+
| ------------- | ----------------------- |
|
|
26
|
+
| `todo_add` | Add a todo item |
|
|
27
|
+
| `todo_list` | List all todos |
|
|
28
|
+
| `todo_remove` | Remove a todo by number |
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
Just ask AI:
|
|
33
|
+
|
|
34
|
+
- "Add a todo: buy groceries"
|
|
35
|
+
- "Show my todos"
|
|
36
|
+
- "Remove todo 2"
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "healthy-companion",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A healthy companion MCP server with todo and water tracking",
|
|
6
6
|
"main": "server.js",
|
|
7
|
+
"bin": "./server.js",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"start": "node server.js"
|
|
9
10
|
},
|
package/server.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
1
3
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
4
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
5
|
import { registerTodoTools } from "./tools/todo.js";
|
|
@@ -16,7 +18,7 @@ void async function main ()
|
|
|
16
18
|
{
|
|
17
19
|
const transport = new StdioServerTransport();
|
|
18
20
|
await server.connect( transport );
|
|
19
|
-
console.
|
|
21
|
+
console.error( "MCP server is running..." );
|
|
20
22
|
}
|
|
21
23
|
catch ( error )
|
|
22
24
|
{
|