Bug Report — Three related issues in scheduled/automated mode
Environment
- Version: v0.1.8
- Running via: Claude Cowork scheduled tasks (automated, unattended)
Bug 1: get_email — message_id type coercion in scheduled mode
When called from a scheduled task, message_id is passed as a string instead
of an integer. The tool rejects it with a type error, making it impossible to
read email bodies in any automated context.
Workaround: None reliable. Triage falls back to metadata only
(subject/sender/date).
Expected: Tool should accept both integer and string message_id, or coerce
internally.
Bug 2: search — returns zero results when scoped to a mailbox
Calling search with an account or mailbox parameter returns zero results
even when matching emails exist. Global (unscoped) search also returns zero
results in scheduled mode.
Workaround: Omit mailbox scope. Results are unreliable either way in
automated mode.
Bug 3: get_emails — limit parameter type coercion in scheduled mode
Same issue as Bug 1 — limit is passed as a string, causing a type error.
Workaround is to omit the limit parameter entirely.
Impact
All three bugs make the MCP effectively read-only for email bodies in scheduled/
automated mode. The FTS5 index (the main value-add of this fork) is unreachable
in automation contexts.
Happy to provide more detail or test fixes.
Bug Report — Three related issues in scheduled/automated mode
Environment
Bug 1:
get_email— message_id type coercion in scheduled modeWhen called from a scheduled task,
message_idis passed as a string insteadof an integer. The tool rejects it with a type error, making it impossible to
read email bodies in any automated context.
Workaround: None reliable. Triage falls back to metadata only
(subject/sender/date).
Expected: Tool should accept both integer and string message_id, or coerce
internally.
Bug 2:
search— returns zero results when scoped to a mailboxCalling
searchwith anaccountormailboxparameter returns zero resultseven when matching emails exist. Global (unscoped) search also returns zero
results in scheduled mode.
Workaround: Omit mailbox scope. Results are unreliable either way in
automated mode.
Bug 3:
get_emails—limitparameter type coercion in scheduled modeSame issue as Bug 1 —
limitis passed as a string, causing a type error.Workaround is to omit the
limitparameter entirely.Impact
All three bugs make the MCP effectively read-only for email bodies in scheduled/
automated mode. The FTS5 index (the main value-add of this fork) is unreachable
in automation contexts.
Happy to provide more detail or test fixes.