@mindstone-engineering/mcp-server-email-imap 0.1.0 → 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/LICENSE +97 -0
- package/README.md +108 -0
- package/dist/bridge.d.ts +1 -1
- package/dist/bridge.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, MIT Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-MIT
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 Mindstone Engineering
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
**Licensor**: Mindstone Engineering
|
|
18
|
+
|
|
19
|
+
### The Software
|
|
20
|
+
|
|
21
|
+
The "Software" is each version of the software that we make available under
|
|
22
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
23
|
+
Conditions with the Software.
|
|
24
|
+
|
|
25
|
+
**Software**: Email IMAP MCP Server
|
|
26
|
+
|
|
27
|
+
### License Grant
|
|
28
|
+
|
|
29
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
30
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
31
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
32
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
33
|
+
|
|
34
|
+
### Permitted Purpose
|
|
35
|
+
|
|
36
|
+
A Permitted Purpose is any purpose other than a Competing Use. A "Competing
|
|
37
|
+
Use" means making the Software available to third parties as a commercial
|
|
38
|
+
hosted service that directly competes with any product or service provided by
|
|
39
|
+
the Licensor.
|
|
40
|
+
|
|
41
|
+
### Patents
|
|
42
|
+
|
|
43
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
44
|
+
patents, the license grant above includes a license under our patents. If you
|
|
45
|
+
make a claim against any party that the Software infringes or contributes to
|
|
46
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
47
|
+
immediately.
|
|
48
|
+
|
|
49
|
+
### Redistribution
|
|
50
|
+
|
|
51
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
52
|
+
the Software.
|
|
53
|
+
|
|
54
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
55
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
56
|
+
remove any copyright notices provided in or with the Software.
|
|
57
|
+
|
|
58
|
+
### Disclaimer
|
|
59
|
+
|
|
60
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
61
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
62
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
63
|
+
|
|
64
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
65
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, OF
|
|
66
|
+
ANY CHARACTER INCLUDING DAMAGES FOR LOSS OF GOODWILL, LOST PROFITS, LOST SALES
|
|
67
|
+
OR BUSINESS, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, LOST CONTENT,
|
|
68
|
+
DATA OR DATA USE, BREACH OF DUTY OF GOOD FAITH, OR ANY AND ALL OTHER DAMAGES
|
|
69
|
+
OR LOSSES OF ANY KIND OR NATURE WHATSOEVER (WHETHER DIRECT, INDIRECT, SPECIAL,
|
|
70
|
+
COLLATERAL, INCIDENTAL, CONSEQUENTIAL OR OTHERWISE) ARISING OUT OF OR IN
|
|
71
|
+
CONNECTION WITH THE SOFTWARE OR THIS LICENSE, EVEN IF SUCH PARTY SHALL HAVE
|
|
72
|
+
BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES.
|
|
73
|
+
|
|
74
|
+
### Trademark
|
|
75
|
+
|
|
76
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
77
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
78
|
+
trademarks, trade names, service marks or product names.
|
|
79
|
+
|
|
80
|
+
## Change Date
|
|
81
|
+
|
|
82
|
+
Four years from the date the Software is made available under these Terms and
|
|
83
|
+
Conditions: **2030-04-08**
|
|
84
|
+
|
|
85
|
+
## Change License
|
|
86
|
+
|
|
87
|
+
MIT License
|
|
88
|
+
|
|
89
|
+
## License Details
|
|
90
|
+
|
|
91
|
+
| Parameter | Value |
|
|
92
|
+
|---|---|
|
|
93
|
+
| Licensor | Mindstone Engineering |
|
|
94
|
+
| Software | Email IMAP MCP Server |
|
|
95
|
+
| Use Limitation | Competing Use |
|
|
96
|
+
| Change Date | 2030-04-08 |
|
|
97
|
+
| Change License | MIT |
|
package/README.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# @mindstone-engineering/mcp-server-email-imap
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@mindstone-engineering/mcp-server-email-imap)
|
|
4
|
+
[](./LICENSE)
|
|
5
|
+
|
|
6
|
+
Email IMAP/SMTP MCP server for Model Context Protocol hosts. Read, search, send, and manage emails through IMAP and SMTP — supports iCloud Mail, Yahoo Mail, and custom IMAP providers.
|
|
7
|
+
|
|
8
|
+
## Requirements
|
|
9
|
+
|
|
10
|
+
- Node.js 20+
|
|
11
|
+
- npm
|
|
12
|
+
|
|
13
|
+
## Quick Start
|
|
14
|
+
|
|
15
|
+
### Install & build
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
cd <path-to-repo>/connectors/email-imap
|
|
19
|
+
npm install
|
|
20
|
+
npm run build
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### npx (once published)
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npx -y @mindstone-engineering/mcp-server-email-imap
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Local
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
node dist/index.js
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Configuration
|
|
36
|
+
|
|
37
|
+
### Environment variables
|
|
38
|
+
|
|
39
|
+
- `EMAIL_IMAP_EMAIL` — email address
|
|
40
|
+
- `EMAIL_IMAP_PASSWORD` — app-specific password
|
|
41
|
+
- `EMAIL_IMAP_PROVIDER` — email provider (e.g. `icloud`, `yahoo`, or blank for custom)
|
|
42
|
+
- `EMAIL_IMAP_IMAP_HOST` — custom IMAP host (optional, for custom providers)
|
|
43
|
+
- `EMAIL_IMAP_SMTP_HOST` — custom SMTP host (optional, for custom providers)
|
|
44
|
+
- `EMAIL_IMAP_IMAP_PORT` — custom IMAP port (default: `993`)
|
|
45
|
+
- `EMAIL_IMAP_SMTP_PORT` — custom SMTP port (default: `587`)
|
|
46
|
+
- `MCP_HOST_BRIDGE_STATE` — optional path to a host bridge state file used for credential management
|
|
47
|
+
- `MINDSTONE_REBEL_BRIDGE_STATE` — backwards-compatible alias for `MCP_HOST_BRIDGE_STATE`
|
|
48
|
+
|
|
49
|
+
## Host configuration examples
|
|
50
|
+
|
|
51
|
+
### Claude Desktop / Cursor
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
{
|
|
55
|
+
"mcpServers": {
|
|
56
|
+
"Email": {
|
|
57
|
+
"command": "npx",
|
|
58
|
+
"args": ["-y", "@mindstone-engineering/mcp-server-email-imap"],
|
|
59
|
+
"env": {
|
|
60
|
+
"EMAIL_IMAP_EMAIL": "you@icloud.com",
|
|
61
|
+
"EMAIL_IMAP_PASSWORD": "your-app-specific-password",
|
|
62
|
+
"EMAIL_IMAP_PROVIDER": "icloud"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Local development (no npm publish needed)
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"mcpServers": {
|
|
74
|
+
"Email": {
|
|
75
|
+
"command": "node",
|
|
76
|
+
"args": ["<path-to-repo>/connectors/email-imap/dist/index.js"],
|
|
77
|
+
"env": {
|
|
78
|
+
"EMAIL_IMAP_EMAIL": "you@icloud.com",
|
|
79
|
+
"EMAIL_IMAP_PASSWORD": "your-app-specific-password",
|
|
80
|
+
"EMAIL_IMAP_PROVIDER": "icloud"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Tools (9)
|
|
88
|
+
|
|
89
|
+
### Configuration
|
|
90
|
+
- `configure_email_imap` — Configure email account credentials and provider
|
|
91
|
+
|
|
92
|
+
### Mailbox
|
|
93
|
+
- `email_list_mailboxes` — List all email folders/mailboxes with message counts
|
|
94
|
+
- `email_get_mailbox_status` — Get mailbox status with unread count and latest subjects
|
|
95
|
+
|
|
96
|
+
### Messages
|
|
97
|
+
- `email_search_messages` — Search for emails in a mailbox
|
|
98
|
+
- `email_get_message` — Get full email content by UID
|
|
99
|
+
- `email_move_messages` — Move emails between folders
|
|
100
|
+
- `email_set_flags` — Set or remove flags (read, starred) on messages
|
|
101
|
+
|
|
102
|
+
### Send
|
|
103
|
+
- `email_send` — Send an email or reply
|
|
104
|
+
- `email_save_draft` — Save a draft email
|
|
105
|
+
|
|
106
|
+
## Licence
|
|
107
|
+
|
|
108
|
+
[FSL-1.1-MIT](./LICENSE) — Functional Source License, Version 1.1, with MIT future licence. The software converts to MIT licence on 2030-04-08.
|
package/dist/bridge.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const BRIDGE_STATE_PATH: string;
|
|
|
5
5
|
/**
|
|
6
6
|
* Send a request to the host app bridge.
|
|
7
7
|
*
|
|
8
|
-
* The bridge is an HTTP server running inside the host app (e.g.
|
|
8
|
+
* The bridge is an HTTP server running inside the host app (e.g. the host application)
|
|
9
9
|
* that handles credential management and other cross-process operations.
|
|
10
10
|
*/
|
|
11
11
|
export declare const bridgeRequest: (urlPath: string, body: Record<string, unknown>) => Promise<{
|
package/dist/bridge.js
CHANGED
|
@@ -18,7 +18,7 @@ const loadBridgeState = () => {
|
|
|
18
18
|
/**
|
|
19
19
|
* Send a request to the host app bridge.
|
|
20
20
|
*
|
|
21
|
-
* The bridge is an HTTP server running inside the host app (e.g.
|
|
21
|
+
* The bridge is an HTTP server running inside the host app (e.g. the host application)
|
|
22
22
|
* that handles credential management and other cross-process operations.
|
|
23
23
|
*/
|
|
24
24
|
export const bridgeRequest = async (urlPath, body) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* - EMAIL_IMAP_IMAP_PORT: Custom IMAP server port (default: 993)
|
|
14
14
|
* - EMAIL_IMAP_SMTP_HOST: Custom SMTP server host
|
|
15
15
|
* - EMAIL_IMAP_SMTP_PORT: Custom SMTP server port (default: 587)
|
|
16
|
-
* - MCP_HOST_BRIDGE_STATE: Path to host app bridge state file (optional)
|
|
17
|
-
* - MINDSTONE_REBEL_BRIDGE_STATE: Legacy bridge state path (optional)
|
|
16
|
+
* - MCP_HOST_BRIDGE_STATE: Path to host app bridge state file (primary, optional)
|
|
17
|
+
* - MINDSTONE_REBEL_BRIDGE_STATE: Legacy/deprecated bridge state path (optional)
|
|
18
18
|
*/
|
|
19
19
|
export {};
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* - EMAIL_IMAP_IMAP_PORT: Custom IMAP server port (default: 993)
|
|
14
14
|
* - EMAIL_IMAP_SMTP_HOST: Custom SMTP server host
|
|
15
15
|
* - EMAIL_IMAP_SMTP_PORT: Custom SMTP server port (default: 587)
|
|
16
|
-
* - MCP_HOST_BRIDGE_STATE: Path to host app bridge state file (optional)
|
|
17
|
-
* - MINDSTONE_REBEL_BRIDGE_STATE: Legacy bridge state path (optional)
|
|
16
|
+
* - MCP_HOST_BRIDGE_STATE: Path to host app bridge state file (primary, optional)
|
|
17
|
+
* - MINDSTONE_REBEL_BRIDGE_STATE: Legacy/deprecated bridge state path (optional)
|
|
18
18
|
*/
|
|
19
19
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
20
20
|
import { createServer } from './server.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindstone-engineering/mcp-server-email-imap",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Email IMAP/SMTP MCP server for Model Context Protocol hosts — supports iCloud Mail, Yahoo Mail, and custom IMAP providers",
|
|
5
5
|
"license": "FSL-1.1-MIT",
|
|
6
6
|
"type": "module",
|