imap-mcp 0.1.0 → 0.1.1

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
@@ -9,6 +9,8 @@
9
9
  [![MCP Compatible](https://img.shields.io/badge/MCP-Compatible-purple.svg)](https://modelcontextprotocol.io)
10
10
  [![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
11
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
+
12
14
  </div>
13
15
 
14
16
  ## ✨ Features
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "imap-mcp",
3
+ "mcpName": "io.github.langmail/imap-mcp",
3
4
  "description": "📧 An IMAP Model Context Protocol (MCP) server to expose IMAP operations as tools for AI assistants.",
4
- "version": "0.1.0",
5
+ "version": "0.1.1",
5
6
  "main": "dist/index.js",
6
7
  "type": "module",
7
8
  "bin": {
@@ -24,12 +25,12 @@
24
25
  },
25
26
  "repository": {
26
27
  "type": "git",
27
- "url": "https://github.com/dominik1001/imap-mcp.git"
28
+ "url": "https://github.com/langmail/imap-mcp.git"
28
29
  },
29
30
  "bugs": {
30
- "url": "https://github.com/dominik1001/imap-mcp/issues"
31
+ "url": "https://github.com/langmail/imap-mcp/issues"
31
32
  },
32
- "homepage": "https://github.com/dominik1001/imap-mcp#readme",
33
+ "homepage": "https://github.com/langmail/imap-mcp#readme",
33
34
  "author": "Dominik Grusemann",
34
35
  "license": "MIT",
35
36
  "dependencies": {
@@ -39,18 +40,19 @@
39
40
  "zod": "^3.25.67"
40
41
  },
41
42
  "devDependencies": {
42
- "@types/imap": "^0.8.42",
43
43
  "@eslint/js": "^9.29.0",
44
44
  "@semantic-release/changelog": "^6.0.3",
45
45
  "@semantic-release/git": "^10.0.1",
46
- "@semantic-release/github": "^11.0.3",
46
+ "@semantic-release/github": "^12.0.11",
47
+ "@semantic-release/npm": "^13.2.0",
48
+ "@types/imap": "^0.8.42",
47
49
  "@types/node": "^24.0.4",
48
50
  "eslint": "^9.29.0",
49
51
  "eslint-config-prettier": "^10.1.5",
50
52
  "husky": "^9.1.7",
51
53
  "lint-staged": "^16.1.2",
52
54
  "prettier": "3.6.1",
53
- "semantic-release": "^24.2.5",
55
+ "semantic-release": "^25.0.9",
54
56
  "shx": "^0.4.0",
55
57
  "typescript": "^5.8.3",
56
58
  "typescript-eslint": "^8.35.0",
@@ -1,29 +0,0 @@
1
- import { z } from "zod";
2
- const recurrenceRuleSchema = z.object({
3
- freq: z.enum(["DAILY", "WEEKLY", "MONTHLY", "YEARLY"]).optional(),
4
- interval: z.number().optional(),
5
- count: z.number().optional(),
6
- until: z.string().datetime().optional(), // ISO 8601 string
7
- byday: z.array(z.string()).optional(), // e.g. ["MO", "TU"]
8
- bymonthday: z.array(z.number()).optional(),
9
- bymonth: z.array(z.number()).optional(),
10
- });
11
- export function registerCreateEvent(client, server) {
12
- server.tool("create-event", "Creates an event in the calendar specified by its URL", {
13
- summary: z.string(),
14
- start: z.string().datetime(),
15
- end: z.string().datetime(),
16
- calendarUrl: z.string(),
17
- recurrenceRule: recurrenceRuleSchema.optional(),
18
- }, async ({ calendarUrl, summary, start, end, recurrenceRule }) => {
19
- const event = await client.createEvent(calendarUrl, {
20
- summary: summary,
21
- start: new Date(start),
22
- end: new Date(end),
23
- recurrenceRule: recurrenceRule,
24
- });
25
- return {
26
- content: [{ type: "text", text: event.uid }],
27
- };
28
- });
29
- }
@@ -1,4 +0,0 @@
1
- import { describe, test } from "vitest";
2
- describe("registerCreateEvent", () => {
3
- test("to be implemented", () => { });
4
- });
@@ -1,9 +0,0 @@
1
- import { z } from "zod";
2
- export function registerDeleteEvent(client, server) {
3
- server.tool("delete-event", "Deletes an event in the calendar specified by its URL", { uid: z.string(), calendarUrl: z.string() }, async ({ uid, calendarUrl }) => {
4
- await client.deleteEvent(calendarUrl, uid);
5
- return {
6
- content: [{ type: "text", text: "Event deleted" }],
7
- };
8
- });
9
- }
@@ -1 +0,0 @@
1
- export * from "./create-draft.js";
@@ -1,7 +0,0 @@
1
- export async function registerListCalendars(client, server) {
2
- const calendars = await client.getCalendars();
3
- server.tool("list-calendars", "List all calendars returning both name and URL", {}, async () => {
4
- const data = calendars.map((c) => ({ name: c.displayName, url: c.url }));
5
- return { content: [{ type: "text", text: JSON.stringify(data) }] };
6
- });
7
- }
@@ -1,21 +0,0 @@
1
- import { z } from "zod";
2
- const dateString = z.string().refine((val) => !isNaN(Date.parse(val)), {
3
- message: "Invalid date string",
4
- });
5
- export function registerListEvents(client, server) {
6
- server.tool("list-events", "List all events between start and end date in the calendar specified by its URL", { start: dateString, end: dateString, calendarUrl: z.string() }, async ({ calendarUrl, start, end }) => {
7
- const options = {
8
- start: new Date(start),
9
- end: new Date(end),
10
- };
11
- const allEvents = await client.getEvents(calendarUrl, options);
12
- const data = allEvents.map((e) => ({
13
- summary: e.summary,
14
- start: e.start,
15
- end: e.end,
16
- }));
17
- return {
18
- content: [{ type: "text", text: JSON.stringify(data) }],
19
- };
20
- });
21
- }