@bitefoundry/outlook 0.1.8 → 0.2.0
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 +4 -3
- package/docs/MCP.md +12 -11
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -74,8 +74,9 @@ For a company registration, use `outlook login --client-id YOUR_CLIENT_ID --tena
|
|
|
74
74
|
|
|
75
75
|
```bash
|
|
76
76
|
# Mail: inspect inbox, read, reply, and send Markdown with attachments
|
|
77
|
-
outlook mail --folder inbox --unread --limit 20 --json
|
|
78
|
-
outlook read AAMkAGI2... --json
|
|
77
|
+
outlook mail --folder inbox --unread --limit 20 --json
|
|
78
|
+
outlook read AAMkAGI2... --json
|
|
79
|
+
outlook read AAMkAGI2... --json --full
|
|
79
80
|
outlook read AAMkAGI2... --mark-read
|
|
80
81
|
outlook send --to elena.park@acme.dev --subject "v2.4 Release" \
|
|
81
82
|
--body "**All canary checks passed.** See attached benchmarks." \
|
|
@@ -90,7 +91,7 @@ outlook add-task "Promote canary to 100%" --due 2026-11-20 --importance high
|
|
|
90
91
|
outlook daemon start
|
|
91
92
|
```
|
|
92
93
|
|
|
93
|
-
|
|
94
|
+
JSON output for `mail`, `read`, and `event` is compact by default. Pass `--full` with `--json` for full cached fields, HTML bodies, and attachment metadata (`content_bytes_b64` is never embedded in CLI/MCP JSON; fetch attachment bytes with `outlook download`, or `outlook download --offline` for cached bytes). `--compact` remains a compatibility alias and conflicts with `--full`. Paginated JSON listings (`mail`, `search --remote`, `folders`, `task-lists`) include `returned`, `has_more`, and `next_cursor`; continue with `--cursor <CURSOR>`. Cursors are bound to the originating command, folder, query, and filter, while `--limit` and `--full` may change between pages. In `mail --json`, `folder` is the canonical folder ID string, and the first online listing of an uncached folder syncs the full folder delta once.
|
|
94
95
|
|
|
95
96
|
Use `outlook mark` for read and flag changes, and `outlook move` to change folders. MCP `update_message` supports both. In the TUI, `Ctrl+S` saves the current composition. Reopening and saving reuses the draft ID. Reply, reply-all, and forward drafts retain their source message relationship and quoted HTML.
|
|
96
97
|
|
package/docs/MCP.md
CHANGED
|
@@ -92,25 +92,25 @@ Mail `folder` arguments accept a canonical folder ID, display name/prefix, or we
|
|
|
92
92
|
| # | Tool | Domain | Arguments | Returns |
|
|
93
93
|
| --- | --- | --- | --- | --- |
|
|
94
94
|
| 1 | `whoami` | Auth | *(none)* | `{ "authenticated": bool, "user_id": ..., "email": ..., "auth_mode": ..., "auth_source": ..., "scopes": [...] }` |
|
|
95
|
-
| 2 | `list_mail_folders` | Mail | `refresh?` (bool), `offline?` (bool) | `{ "folders": [...] }` |
|
|
96
|
-
| 3 | `list_messages` | Mail | `folder?` (default `'inbox'`), `limit?` (1..200), `unread?`, `flagged?`, `focused?`, `offline?`, `compact?` | `{ "folder": {...}, "messages": [...] }` |
|
|
97
|
-
| 4 | `get_message` | Mail | `message_id` (req), `mark_read?`, `offline?`, `compact?` | `{ "message": {...} }` |
|
|
95
|
+
| 2 | `list_mail_folders` | Mail | `limit?` (1..200, default 50), `cursor?`, `refresh?` (bool), `offline?` (bool) | `{ "folders": [...], "returned": n, "has_more": bool, "next_cursor": string\|null }` |
|
|
96
|
+
| 3 | `list_messages` | Mail | `folder?` (default `'inbox'`), `limit?` (1..200), `cursor?`, `unread?`, `flagged?`, `focused?`, `offline?`, `compact?` (default `true`) | `{ "folder": {...}, "messages": [...], "returned": n, "has_more": bool\|null, "next_cursor": string\|null }` |
|
|
97
|
+
| 4 | `get_message` | Mail | `message_id` (req), `mark_read?`, `offline?`, `compact?` (default `true`) | `{ "message": {...} }` (compact includes `omitted`, `hint`) |
|
|
98
98
|
| 5 | `send_mail` | Mail | `to` (`string[]`, req), `subject` (req), `body` (Markdown, req), `cc?`, `bcc?`, `importance?` (`low\|normal\|high`), `attachments?`, `save_to_sent_items?` | `{ "ok": true, "to": [...], "subject": "..." }` |
|
|
99
99
|
| 6 | `reply_mail` | Mail | `message_id` (req), `body` (req), `reply_all?` | `{ "ok": true, "message_id": "...", "reply_all": bool }` |
|
|
100
100
|
| 7 | `forward_mail` | Mail | `message_id` (req), `to` (`string[]`, req), `comment?` | `{ "ok": true, "message_id": "...", "to": [...] }` |
|
|
101
101
|
| 8 | `update_message` | Mail | `message_id` (req), `is_read?`, `flagged?`, `destination_folder?` | `{ "ok": true, "message_id": "...", "is_read": ..., "flagged": ..., "moved": ... }` |
|
|
102
102
|
| 9 | `delete_message` | Mail | `message_id` (req), `confirm` (must be literal `true`) | `{ "ok": true, "message_id": "..." }` |
|
|
103
|
-
| 10 | `download_attachment` | Mail | `message_id` (req), `attachment_index?` (>=0), `attachment?` (ID/name/index), `output_dir?` | `{ "ok": true, "
|
|
104
|
-
| 11 | `search_mail` | Mail | `query` (req), `folder?`, `limit?` (1..200), `offline?` | `{ "query": "...", "hits": [...] }` (offline) or `{ "query": "...", "messages": [...] }` (online) |
|
|
105
|
-
| 12 | `list_events` | Calendar | `from?` (`ISO-8601\|YYYY-MM-DD`), `to?`, `days?` (1..365), `limit?` (1..200), `offline?` | `{ "start": "...", "end": "...", "events": [...] }` |
|
|
103
|
+
| 10 | `download_attachment` | Mail | `message_id` (req), `attachment_index?` (>=0), `attachment?` (ID/name/index), `output_dir?`, `offline?` | `{ "ok": true, "message_id": "...", "attachment_id": "...", "path": "...", "file_name": "...", "mime_type": "...", "size_bytes": n, "is_image": bool }` |
|
|
104
|
+
| 11 | `search_mail` | Mail | `query` (req), `folder?`, `limit?` (1..200), `cursor?`, `offline?` | `{ "query": "...", "hits": [...] }` (offline) or `{ "query": "...", "messages": [...], "returned": n, "has_more": bool, "next_cursor": string\|null }` (online, no 100-item cap) |
|
|
105
|
+
| 12 | `list_events` | Calendar | `from?` (`ISO-8601\|YYYY-MM-DD`), `to?`, `days?` (1..365), `limit?` (1..200), `offline?` | `{ "start": "...", "end": "...", "events": [...], "returned": n, "has_more": bool }` |
|
|
106
106
|
| 13 | `create_event` | Calendar | `subject` (req), `start` (req), `end` (req), `time_zone?`, `is_all_day?`, `location?`, `body?`, `attendees?`, `is_online_meeting?` | `{ "ok": true, "event": {...} }` |
|
|
107
107
|
| 14 | `respond_event` | Calendar | `event_id` (req), `response` (`accept\|tentative\|decline`, req), `comment?` | `{ "ok": true, "event_id": "...", "response": "..." }` |
|
|
108
108
|
| 15 | `delete_event` | Calendar | `event_id` (req), `confirm` (must be literal `true`) | `{ "ok": true, "event_id": "..." }` |
|
|
109
|
-
| 16 | `list_todo_lists` | To Do | `refresh?`, `offline?` | `{ "lists": [...] }` |
|
|
110
|
-
| 17 | `list_tasks` | To Do | `list?`, `include_completed?`, `limit?` (1..200), `offline?` | `{ "list": {...}, "list_id": "...", "tasks": [...] }` |
|
|
109
|
+
| 16 | `list_todo_lists` | To Do | `limit?` (1..200, default 50), `cursor?`, `refresh?`, `offline?` | `{ "lists": [...], "returned": n, "has_more": bool, "next_cursor": string\|null }` |
|
|
110
|
+
| 17 | `list_tasks` | To Do | `list?`, `include_completed?`, `limit?` (1..200), `offline?` | `{ "list": {...}, "list_id": "...", "tasks": [...], "returned": n, "has_more": bool }` |
|
|
111
111
|
| 18 | `create_task` | To Do | `title` (req), `list?`, `notes?`, `due?` (`YYYY-MM-DD\|ISO-8601`), `importance?` (`low\|normal\|high`) | `{ "ok": true, "task": {...} }` |
|
|
112
112
|
| 19 | `complete_task` | To Do | `task_id` (req), `list?`, `completed?` (default `true`) | `{ "ok": true, "task": {...} }` |
|
|
113
|
-
| 20 | `search_contacts` | Contacts | `query?`, `limit?` (1..200), `offline?` | `{ "contacts": [...] }` |
|
|
113
|
+
| 20 | `search_contacts` | Contacts | `query?`, `limit?` (1..200), `offline?` | `{ "contacts": [...], "directory": { "status": "ok\|forbidden\|error\|not_queried", "error": string\|null } }` |
|
|
114
114
|
| 21 | `update_draft` | Mail | `message_id` (req), `subject?`, `body?` (Markdown), `body_html?` (HTML) | `{ "ok": true, "message_id": "..." }` |
|
|
115
115
|
| 22 | `update_event` | Calendar | `event_id` (req), `subject?`, `start?`, `end?` | `{ "ok": true, "event": {...} }` |
|
|
116
116
|
| 23 | `update_task` | To Do | `task_id` (req), `list?` (default `'tasks'`), `title?`, `due?` | `{ "ok": true, "task": {...} }` |
|
|
@@ -125,7 +125,7 @@ Mail `folder` arguments accept a canonical folder ID, display name/prefix, or we
|
|
|
125
125
|
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"agent","version":"1.0"}}}
|
|
126
126
|
{"jsonrpc":"2.0","method":"notifications/initialized"}
|
|
127
127
|
{"jsonrpc":"2.0","id":2,"method":"tools/list"}
|
|
128
|
-
{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"list_messages","arguments":{"folder":"inbox","unread":true,"limit":20
|
|
128
|
+
{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"list_messages","arguments":{"folder":"inbox","unread":true,"limit":20}}}
|
|
129
129
|
{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"send_mail","arguments":{"to":["alice@contoso.com"],"subject":"Release v0.1.0","body":"Build **passed**!"}}}
|
|
130
130
|
{"jsonrpc":"2.0","id":5,"method":"tools/call","params":{"name":"create_event","arguments":{"subject":"Design Sync","start":"2026-11-20T09:00:00Z","end":"2026-11-20T10:00:00Z","is_online_meeting":true}}}
|
|
131
131
|
{"jsonrpc":"2.0","id":6,"method":"tools/call","params":{"name":"delete_message","arguments":{"message_id":"AAMkAGI2...","confirm":true}}}
|
|
@@ -135,7 +135,8 @@ Mail `folder` arguments accept a canonical folder ID, display name/prefix, or we
|
|
|
135
135
|
|
|
136
136
|
- `send_mail` `attachments` paths and `download_attachment` `output_dir` paths are resolved on the host running `outlook mcp`, not on a remote MCP client.
|
|
137
137
|
- Pass `"offline": true` on read/search tools (`list_mail_folders`, `list_messages`, `get_message`, `search_mail`, `list_events`, `list_todo_lists`, `list_tasks`, `search_contacts`) to query the local SQLite cache (`cache.db`) without network calls.
|
|
138
|
-
-
|
|
138
|
+
- `list_messages` and `get_message` default to `"compact": true`. Pass `"compact": false` to return full cached fields, HTML bodies, and attachment metadata (`content_bytes_b64` is never included; use `download_attachment` to retrieve attachment bytes). Compact `get_message` responses include `omitted` (`attachments` is the known count, `0` when the message has no attachments, or `null` when attachment metadata has not been fetched yet; `fields` lists omitted scalar fields) and a follow-up `hint`.
|
|
139
|
+
- `next_cursor` is an opaque pagination token valid only for the same tool, `folder`, `query`, and filter combination (`limit` and `compact` may change between pages). Reusing a cursor with a different tool, folder, query, or filter fails before any network call with `invalid cursor: issued for a different command, folder, query or filter`.
|
|
139
140
|
- `update_message` accepts read and flag changes or a destination folder. An unsupported argument such as `subject` fails validation before any write. Use `update_draft` for a draft's subject or body.
|
|
140
141
|
|
|
141
142
|
## Partial edits
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitefoundry/outlook",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Microsoft Outlook terminal client & AI agent toolkit — Mail, Calendar, Tasks & Contacts (CLI, TUI, HTTP API, MCP)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"build:npm": "node scripts/build-npm.mjs"
|
|
40
40
|
},
|
|
41
41
|
"optionalDependencies": {
|
|
42
|
-
"@bitefoundry/outlook-win32-x64": "0.
|
|
43
|
-
"@bitefoundry/outlook-win32-arm64": "0.
|
|
44
|
-
"@bitefoundry/outlook-darwin-x64": "0.
|
|
45
|
-
"@bitefoundry/outlook-darwin-arm64": "0.
|
|
46
|
-
"@bitefoundry/outlook-linux-x64": "0.
|
|
47
|
-
"@bitefoundry/outlook-linux-arm64": "0.
|
|
42
|
+
"@bitefoundry/outlook-win32-x64": "0.2.0",
|
|
43
|
+
"@bitefoundry/outlook-win32-arm64": "0.2.0",
|
|
44
|
+
"@bitefoundry/outlook-darwin-x64": "0.2.0",
|
|
45
|
+
"@bitefoundry/outlook-darwin-arm64": "0.2.0",
|
|
46
|
+
"@bitefoundry/outlook-linux-x64": "0.2.0",
|
|
47
|
+
"@bitefoundry/outlook-linux-arm64": "0.2.0"
|
|
48
48
|
}
|
|
49
49
|
}
|