UNPKG

@essentialai/cogent-bridge

Version:

Cogent Bridge — cross-agent comms for Claude Code, OpenAI Codex and Slack. Codex users: install with `curl -fsSL https://cogent.tools/install.sh | sh`, then start with `cogent-codex` for real-time peer wake.

16 lines • 1.01 kB
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { type PersistedMailCredentials } from "../cloud/mail-credential-store.js"; import { type MailFetcher } from "../mail/mail-fetcher.js"; /** Injection seam for tests: how a {@link MailFetcher} is built from the loaded creds. */ export interface FetchMailDeps { fetcherFactory?: (creds: PersistedMailCredentials) => MailFetcher; } /** * cogent_fetch_mail — read this agent's own mailbox (Cogent Mail M2.3). Two actions: * - "list" (default): lightweight envelope summaries (uid/from/subject/date/unread), no bodies. * - "fetch": download one message by uid — text body + attachments saved to a local dir. * On-demand only (no background polling — Hybrid C). imapflow loads lazily off the cold path. * `deps.fetcherFactory` lets tests drive a fake IMAP inbox instead of a real server. */ export declare function registerFetchMailTool(server: McpServer, deps?: FetchMailDeps): void; //# sourceMappingURL=fetch-mail.d.ts.map