langmail-mcp 0.2.1 → 0.2.2
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.
|
@@ -1848,6 +1848,103 @@ function initErrorTracking(serviceName) {
|
|
|
1848
1848
|
|
|
1849
1849
|
// src/mcp/handler.ts
|
|
1850
1850
|
import { McpServer, WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/server";
|
|
1851
|
+
// package.json
|
|
1852
|
+
var package_default = {
|
|
1853
|
+
name: "langmail-mcp",
|
|
1854
|
+
version: "0.2.2",
|
|
1855
|
+
description: "Langmail's MCP server for your own Stalwart mailbox: mail, calendar and contacts for an AI agent, over stdio or Streamable HTTP",
|
|
1856
|
+
keywords: [
|
|
1857
|
+
"mcp",
|
|
1858
|
+
"model-context-protocol",
|
|
1859
|
+
"stalwart",
|
|
1860
|
+
"jmap",
|
|
1861
|
+
"caldav",
|
|
1862
|
+
"carddav",
|
|
1863
|
+
"email",
|
|
1864
|
+
"calendar",
|
|
1865
|
+
"contacts",
|
|
1866
|
+
"agent"
|
|
1867
|
+
],
|
|
1868
|
+
homepage: "https://github.com/langmail/langmail-mcp#readme",
|
|
1869
|
+
bugs: {
|
|
1870
|
+
url: "https://github.com/langmail/langmail-mcp/issues"
|
|
1871
|
+
},
|
|
1872
|
+
repository: {
|
|
1873
|
+
type: "git",
|
|
1874
|
+
url: "git+https://github.com/langmail/langmail-mcp.git"
|
|
1875
|
+
},
|
|
1876
|
+
license: "MIT",
|
|
1877
|
+
author: "Dominik Grusemann",
|
|
1878
|
+
type: "module",
|
|
1879
|
+
bin: {
|
|
1880
|
+
"langmail-mcp": "dist/langmail-mcp.js"
|
|
1881
|
+
},
|
|
1882
|
+
files: [
|
|
1883
|
+
"dist"
|
|
1884
|
+
],
|
|
1885
|
+
scripts: {
|
|
1886
|
+
build: "tsc --noEmit && tsc --noEmit -p src/email-render/viewer",
|
|
1887
|
+
"build:package": "bun run scripts/build-package.ts",
|
|
1888
|
+
check: "biome check .",
|
|
1889
|
+
"check:fix": "biome check --write .",
|
|
1890
|
+
"check:package": "bun run scripts/check-package.ts",
|
|
1891
|
+
dev: "bun run src/index.ts",
|
|
1892
|
+
"measure:tool-size": "bun run scripts/measure-indexed-size.ts",
|
|
1893
|
+
prepack: "bun run build:package",
|
|
1894
|
+
"smoke:agent-apple-mail-draft": "bun run scripts/smoke-agent-apple-mail-draft.ts",
|
|
1895
|
+
"smoke:agent-contact-from-mail": "bun run scripts/smoke-agent-contact-from-mail.ts",
|
|
1896
|
+
"smoke:agent-contact-role": "bun run scripts/smoke-agent-contact-role.ts",
|
|
1897
|
+
"smoke:agent-contact-role-record": "bun run scripts/smoke-agent-contact-role-record.ts",
|
|
1898
|
+
"smoke:agent-forward": "bun run scripts/smoke-agent-forward.ts",
|
|
1899
|
+
"smoke:agent-preview": "bun run scripts/smoke-agent-preview.ts",
|
|
1900
|
+
"smoke:agent-self-hosted": "bun run scripts/smoke-agent-self-hosted.ts",
|
|
1901
|
+
"smoke:agent-triage-junk": "bun run scripts/smoke-agent-triage-junk.ts",
|
|
1902
|
+
"smoke:agent-windows-zone": "bun run scripts/smoke-agent-windows-zone.ts",
|
|
1903
|
+
"spec:check": "./spec/check.sh",
|
|
1904
|
+
"stalwart:setup": "bun run infra/dev/stalwart/setup.ts",
|
|
1905
|
+
start: "NODE_ENV=production bun src/index.ts",
|
|
1906
|
+
"start:self-hosted": "bun --no-env-file src/self-hosted.ts",
|
|
1907
|
+
test: "bun test",
|
|
1908
|
+
"test:integration": "bun test caldav-integration",
|
|
1909
|
+
"test:node": "bun run scripts/test-node.ts",
|
|
1910
|
+
"test:stalwart": "bun test calendar-feed-stalwart stalwart-all-day-event stalwart-update-organizer stalwart-update-calendar stalwart-cancel-occurrence stalwart-move-occurrence stalwart-move-event stalwart-duplicate-uid-itip stalwart-reply-unmodified-instance stalwart-attendee-delta stalwart-series-edit-keeps-partstat stalwart-update-keeps-properties attachments-stalwart mail-rules-stalwart search-contacts-stalwart contacts-write-stalwart search-emails-stalwart drafts-stalwart draft-attachments-stalwart file-emails-stalwart unsubscribe-stalwart",
|
|
1911
|
+
typecheck: "tsc --noEmit && tsc --noEmit -p src/email-render/viewer"
|
|
1912
|
+
},
|
|
1913
|
+
dependencies: {
|
|
1914
|
+
"@date-fns/tz": "^1.5.0",
|
|
1915
|
+
"@logtail/node": "^0.6.1",
|
|
1916
|
+
"@logtail/types": "^0.6.0",
|
|
1917
|
+
"@modelcontextprotocol/ext-apps": "~2.0.4",
|
|
1918
|
+
"@modelcontextprotocol/server": "^2.4.0",
|
|
1919
|
+
"@sentry/node": "^11.12.0",
|
|
1920
|
+
"ical-generator": "^11.1.3",
|
|
1921
|
+
langmail: "^0.11.2",
|
|
1922
|
+
pino: "^10.4.0",
|
|
1923
|
+
rrule: "^2.8.1",
|
|
1924
|
+
"sanitize-html": "^2.18.2",
|
|
1925
|
+
"timezones-ical-library": "^3.0.0",
|
|
1926
|
+
tsdav: "^2.5.0",
|
|
1927
|
+
zod: "^4.6.7"
|
|
1928
|
+
},
|
|
1929
|
+
devDependencies: {
|
|
1930
|
+
"@biomejs/biome": "2.5.15",
|
|
1931
|
+
"@commitlint/cli": "^21.2.4",
|
|
1932
|
+
"@commitlint/config-conventional": "^21.2.4",
|
|
1933
|
+
"@happy-dom/global-registrator": "^21.0.4",
|
|
1934
|
+
"@modelcontextprotocol/client": "^2.4.0",
|
|
1935
|
+
"@semantic-release/changelog": "^7.0.0",
|
|
1936
|
+
"@semantic-release/git": "^11.0.1",
|
|
1937
|
+
"@types/bun": "^1.3.3",
|
|
1938
|
+
"@types/sanitize-html": "^2.16.2",
|
|
1939
|
+
lefthook: "^2.2.2",
|
|
1940
|
+
"semantic-release": "^25.0.3",
|
|
1941
|
+
typescript: "^7.0.2",
|
|
1942
|
+
ultracite: "7.12.4"
|
|
1943
|
+
},
|
|
1944
|
+
engines: {
|
|
1945
|
+
node: "^22.12.0 || >=24"
|
|
1946
|
+
}
|
|
1947
|
+
};
|
|
1851
1948
|
|
|
1852
1949
|
// src/caldav/timezone.ts
|
|
1853
1950
|
import { TZDate as TZDate2 } from "@date-fns/tz";
|
|
@@ -12083,7 +12180,7 @@ var createMcpServerFactory = (cfg) => {
|
|
|
12083
12180
|
return (ctx) => {
|
|
12084
12181
|
const server = new McpServer({
|
|
12085
12182
|
name: "langmail-mcp",
|
|
12086
|
-
version:
|
|
12183
|
+
version: package_default.version
|
|
12087
12184
|
}, { instructions });
|
|
12088
12185
|
instrumentToolLogging(server, () => recordAgentActivity(ctx.userId));
|
|
12089
12186
|
registerSearchEmails(server, searchEmailsDeps, () => ctx.token, mode);
|
package/dist/langmail-mcp.js
CHANGED
package/package.json
CHANGED