imap-mcp 0.1.2 → 0.1.3

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
@@ -1,37 +1,41 @@
1
- # imap-mcp
1
+ <p align="center">
2
+ <a href="https://langmail.me/?ref=imap-mcp">
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/langmail/.github/main/assets/wordmark-dark.svg">
5
+ <img alt="Langmail" src="https://raw.githubusercontent.com/langmail/.github/main/assets/wordmark-light.svg" width="120">
6
+ </picture>
7
+ </a>
8
+ </p>
9
+
10
+ <h1 align="center">imap-mcp</h1>
11
+
12
+ <p align="center">
13
+ <b>An MCP server that lets your AI agent save email drafts to any IMAP mailbox.</b><br>
14
+ It gives your agent one tool, <code>create-draft</code>, which saves a message to your Drafts folder for you to review and send. It works with any IMAP server that accepts a password login and with any MCP client that starts local servers, such as Claude Desktop, Claude Code or Cursor.
15
+ </p>
16
+
17
+ <p align="center">
18
+ <a href="https://www.npmjs.com/package/imap-mcp"><img alt="npm" src="https://img.shields.io/npm/v/imap-mcp?style=flat-square"></a>
19
+ <a href="https://github.com/langmail/imap-mcp/actions/workflows/release.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/langmail/imap-mcp/release.yml?branch=main&style=flat-square&label=CI"></a>
20
+ <a href="https://github.com/langmail/imap-mcp#license"><img alt="License" src="https://img.shields.io/npm/l/imap-mcp?style=flat-square"></a>
21
+ </p>
22
+
23
+ <p align="center">
24
+ <a href="https://discord.gg/CabhN3xuyk"><img alt="Join us on Discord" src="https://img.shields.io/badge/Join%20us%20on%20Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white" height="40"></a>
25
+ </p>
26
+
27
+ <p align="center">
28
+ <a href="#available-tools">Tools</a> ·
29
+ <a href="https://github.com/langmail/imap-mcp/blob/main/CHANGELOG.md">Changelog</a> ·
30
+ <a href="https://langmail.me/?ref=imap-mcp">Hosted version</a>
31
+ </p>
2
32
 
3
- <div align="center">
4
-
5
- 📧 An IMAP Model Context Protocol (MCP) server to expose IMAP operations as tools for AI assistants.
6
-
7
- [![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)
8
- [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
9
- [![MCP Compatible](https://img.shields.io/badge/MCP-Compatible-purple.svg)](https://modelcontextprotocol.io)
10
- [![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
11
-
12
- Maintained by the team behind Langmail. Want mail, calendar and contacts for your agent over one hosted MCP, with OAuth and nothing to run? → [langmail.me](https://langmail.me/?ref=imap-mcp)
13
-
14
- </div>
15
-
16
- ## ✨ Features
17
-
18
- - **Email Draft Creation**: Create draft emails that are saved to your IMAP server's drafts folder
19
- - **IMAP Integration**: Connect to any IMAP-compatible email server (Gmail, Outlook, etc.)
20
- - **Secure Authentication**: Uses environment variables for secure credential management
21
- - **MCP Compatible**: Works with Claude and other AI assistants that support the Model Context Protocol
22
- - **TypeScript**: Full TypeScript support with proper type definitions
23
-
24
- ## Setup
25
-
26
- ```
33
+ ```json
27
34
  {
28
35
  "mcpServers": {
29
- ...,
30
36
  "imap": {
31
37
  "command": "npx",
32
- "args": [
33
- "imap-mcp"
34
- ],
38
+ "args": ["imap-mcp"],
35
39
  "env": {
36
40
  "IMAP_HOST": "<IMAP host>",
37
41
  "IMAP_PORT": "<IMAP port>",
@@ -44,6 +48,14 @@ Maintained by the team behind Langmail. Want mail, calendar and contacts for you
44
48
  }
45
49
  ```
46
50
 
51
+ ## ✨ Features
52
+
53
+ - **Email Draft Creation**: Create draft emails that are saved to your IMAP server's drafts folder
54
+ - **IMAP Integration**: Connect to any IMAP-compatible email server (Gmail, Outlook, etc.)
55
+ - **Secure Authentication**: Uses environment variables for secure credential management
56
+ - **MCP Compatible**: Works with Claude and other AI assistants that support the Model Context Protocol
57
+ - **TypeScript**: Full TypeScript support with proper type definitions
58
+
47
59
  ## Usage
48
60
 
49
61
  1. Compile TypeScript to JavaScript:
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
  export function registerCreateDraft(client, server) {
3
3
  server.tool("create-draft", "Creates a draft email message", {
4
4
  to: z.string(),
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "imap-mcp",
3
3
  "mcpName": "io.github.langmail/imap-mcp",
4
- "description": "📧 An IMAP Model Context Protocol (MCP) server to expose IMAP operations as tools for AI assistants.",
5
- "version": "0.1.2",
4
+ "description": "An MCP server that lets your AI agent save email drafts to any IMAP mailbox.",
5
+ "version": "0.1.3",
6
6
  "main": "dist/index.js",
7
7
  "type": "module",
8
8
  "bin": {
@@ -34,7 +34,7 @@
34
34
  "author": "Dominik Grusemann",
35
35
  "license": "MIT",
36
36
  "dependencies": {
37
- "@modelcontextprotocol/sdk": "^1.13.1",
37
+ "@modelcontextprotocol/sdk": "^1.32.2",
38
38
  "dotenv": "^16.5.0",
39
39
  "imap": "^0.8.19",
40
40
  "zod": "^3.25.67"
@@ -51,7 +51,7 @@
51
51
  "eslint-config-prettier": "^10.1.5",
52
52
  "husky": "^9.1.7",
53
53
  "lint-staged": "^16.1.2",
54
- "prettier": "3.6.1",
54
+ "prettier": "3.10.1",
55
55
  "semantic-release": "^25.0.9",
56
56
  "shx": "^0.4.0",
57
57
  "typescript": "^5.8.3",