ailist-mcp-server 0.1.0 → 0.1.6

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 CHANGED
@@ -20,8 +20,9 @@ wrapper over the AIList REST API v1: every tool call is one REST call to
20
20
  | `check_item` | `POST /lists/{id}/items/{itemId}/check` |
21
21
  | `uncheck_item` | `POST /lists/{id}/items/{itemId}/uncheck` |
22
22
 
23
- Items support `quantity`, `unit`, `barcode` (exact product preference) and
24
- `icon` (one emoji as a manual icon choice). Moving an item also teaches the
23
+ Items support `quantity`, `unit`, `barcode` (exact product preference),
24
+ `icon` (one emoji as a manual icon choice) and `note` (a short note shown
25
+ under the item, e.g. a preferred brand). Moving an item also teaches the
25
26
  household dictionary, like the REST API.
26
27
 
27
28
  ## Connect (Claude Code)
@@ -52,8 +53,7 @@ The key is shown once when created, and it works only for the household it
52
53
  was created in. To point at a local dev server instead of production, set
53
54
  `AILIST_BASE_URL` (default `https://ai-list.web.app`).
54
55
 
55
- > The `npx` one-command install above needs the package published to npm.
56
- > Until then, run it from a local checkout instead (see below).
56
+ > You can also run it from a local checkout instead (see below).
57
57
 
58
58
  ## Run from a local checkout
59
59
 
package/dist/index.js CHANGED
@@ -61,14 +61,14 @@ async function run(fn) {
61
61
  };
62
62
  }
63
63
  }
64
- const server = new McpServer({ name: "ailist", version: "0.1.0" }, {
64
+ const server = new McpServer({ name: "ailist", version: "0.1.6" }, {
65
65
  instructions: "AIList household lists. The API key belongs to one household, so every " +
66
66
  "tool works on that household's lists only. Before a shopping trip, call " +
67
67
  "list_lists and then get_list to see what is still unchecked. Never invent " +
68
68
  "a barcode; only set one when the user gave it.",
69
69
  });
70
70
  server.tool("list_lists", "List the household's lists, with item counts.", {}, () => run(() => api("/lists")));
71
- server.tool("get_list", "Get one list in full: categories and items, with checked state, quantity, unit, barcode and icon.", { listId: z.string().describe("List id, from list_lists.") }, ({ listId }) => run(() => api(`/lists/${encodeURIComponent(listId)}`)));
71
+ server.tool("get_list", "Get one list in full: categories and items, with checked state, quantity, unit, barcode, icon and note.", { listId: z.string().describe("List id, from list_lists.") }, ({ listId }) => run(() => api(`/lists/${encodeURIComponent(listId)}`)));
72
72
  server.tool("get_item", "Get one item by id.", {
73
73
  listId: z.string().describe("List id, from list_lists."),
74
74
  itemId: z.string().describe("Item id, from get_list."),
@@ -81,8 +81,9 @@ server.tool("add_item", "Add an item to a list. It is auto-categorized (househol
81
81
  unit: z.string().optional().describe("Unit, e.g. '1l', '250g', 'pack'."),
82
82
  barcode: z.string().optional().describe("Barcode of a specific preferred product, only when the user gave it."),
83
83
  icon: z.string().optional().describe("One emoji as a manual icon choice for the item."),
84
+ note: z.string().optional().describe("Short note shown under the item, e.g. a preferred brand."),
84
85
  }, ({ listId, ...body }) => run(() => api(`/lists/${encodeURIComponent(listId)}/items`, { method: "POST", body: JSON.stringify(body) })));
85
- server.tool("update_item", "Edit an item's fields (only the fields sent change) and/or check/uncheck it. Setting quantity, unit, barcode or icon to null clears it. Moving to another category also teaches the household dictionary, like move_item.", {
86
+ server.tool("update_item", "Edit an item's fields (only the fields sent change) and/or check/uncheck it. Setting quantity, unit, barcode, icon or note to null clears it. Moving to another category also teaches the household dictionary, like move_item.", {
86
87
  listId: z.string().describe("List id, from list_lists."),
87
88
  itemId: z.string().describe("Item id, from get_list."),
88
89
  checked: z.boolean().optional().describe("true = bought, false = still to buy."),
@@ -92,6 +93,7 @@ server.tool("update_item", "Edit an item's fields (only the fields sent change)
92
93
  categoryId: z.string().optional().describe("Id of an existing category in this list."),
93
94
  barcode: z.string().nullable().optional().describe("New barcode, or null to clear the preference."),
94
95
  icon: z.string().nullable().optional().describe("One emoji as a manual icon choice, or null to go back to the automatic icon."),
96
+ note: z.string().nullable().optional().describe("New note, or null to clear it."),
95
97
  }, ({ listId, itemId, ...body }) => run(() => api(`/lists/${encodeURIComponent(listId)}/items/${encodeURIComponent(itemId)}`, {
96
98
  method: "PATCH",
97
99
  body: JSON.stringify(body),
package/package.json CHANGED
@@ -1 +1,35 @@
1
- {"bin":{"ailist-mcp":"dist/index.js"},"dependencies":{"@modelcontextprotocol/sdk":"^1.32.2","zod":"^3.25.0"},"description":"MCP server for AIList household lists: a thin stdio wrapper over the AIList REST API v1","devDependencies":{"typescript":"^5.9.0"},"engines":{"node":">=18"},"files":["dist","README.md"],"license":"MIT","name":"ailist-mcp-server","private":false,"scripts":{"build":"tsc","start":"node dist/index.js"},"type":"module","version":"0.1.0"}
1
+ {
2
+ "bin": {
3
+ "ailist-mcp": "dist/index.js"
4
+ },
5
+ "dependencies": {
6
+ "@modelcontextprotocol/sdk": "^1.32.2",
7
+ "zod": "^3.25.0"
8
+ },
9
+ "description": "MCP server for AIList household lists: a thin stdio wrapper over the AIList REST API v1",
10
+ "devDependencies": {
11
+ "@types/node": "^22.20.5",
12
+ "typescript": "^5.9.0"
13
+ },
14
+ "engines": {
15
+ "node": ">=18"
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "README.md"
20
+ ],
21
+ "license": "MIT",
22
+ "name": "ailist-mcp-server",
23
+ "private": false,
24
+ "scripts": {
25
+ "build": "tsc",
26
+ "start": "node dist/index.js"
27
+ },
28
+ "type": "module",
29
+ "version": "0.1.6",
30
+ "mcpName": "io.github.eagami9/ailist",
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "https://github.com/eagami9/SharedLists"
34
+ }
35
+ }