langmail-mcp 0.0.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.
Files changed (138) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +89 -169
  3. package/dist/chunk-0fxfqny0.js +12642 -0
  4. package/dist/langmail-mcp.js +7 -0
  5. package/package.json +93 -98
  6. package/THIRD_PARTY_NOTICES.md +0 -388
  7. package/dist/attachments/download.js +0 -69
  8. package/dist/attachments/routes.js +0 -42
  9. package/dist/attachments/tickets.js +0 -45
  10. package/dist/attachments/upload-tickets.js +0 -43
  11. package/dist/attachments/upload.js +0 -136
  12. package/dist/caldav/account-settings.js +0 -92
  13. package/dist/caldav/agenda.js +0 -277
  14. package/dist/caldav/alarm.js +0 -97
  15. package/dist/caldav/client.js +0 -408
  16. package/dist/caldav/ical.js +0 -248
  17. package/dist/caldav/occurrence.js +0 -534
  18. package/dist/caldav/recurrence.js +0 -313
  19. package/dist/caldav/rsvp.js +0 -107
  20. package/dist/caldav/scheduling-handover.js +0 -22
  21. package/dist/caldav/timezone.js +0 -103
  22. package/dist/caldav/types.js +0 -5
  23. package/dist/config.js +0 -219
  24. package/dist/contacts/address-class.js +0 -79
  25. package/dist/contacts/birthdays.js +0 -81
  26. package/dist/contacts/card.js +0 -58
  27. package/dist/contacts/constants.js +0 -46
  28. package/dist/contacts/fold.js +0 -309
  29. package/dist/contacts/index.js +0 -10
  30. package/dist/contacts/merge.js +0 -388
  31. package/dist/contacts/observations.js +0 -115
  32. package/dist/contacts/profile.js +0 -402
  33. package/dist/contacts/scoring.js +0 -146
  34. package/dist/contacts/types.js +0 -7
  35. package/dist/contacts/upsert.js +0 -131
  36. package/dist/drafts/attachments.js +0 -254
  37. package/dist/drafts/idempotency.js +0 -60
  38. package/dist/drafts/send-guard.js +0 -184
  39. package/dist/email-render/email-viewer.html +0 -143
  40. package/dist/email-render/image-proxy.js +0 -389
  41. package/dist/email-render/meta.js +0 -48
  42. package/dist/email-render/sanitize.js +0 -93
  43. package/dist/email-render/viewer-resource.js +0 -104
  44. package/dist/http/bearer.js +0 -30
  45. package/dist/http/guard.js +0 -57
  46. package/dist/http/hosts.js +0 -10
  47. package/dist/http/listener.js +0 -170
  48. package/dist/http/routes.js +0 -72
  49. package/dist/ical/ical-parse.js +0 -357
  50. package/dist/ical/index.js +0 -4
  51. package/dist/ical/timezone.js +0 -22
  52. package/dist/ical/windows-zones.js +0 -155
  53. package/dist/index.js +0 -79
  54. package/dist/jmap/blob.js +0 -49
  55. package/dist/jmap/contacts.js +0 -226
  56. package/dist/jmap/drafts.js +0 -480
  57. package/dist/jmap/email.js +0 -668
  58. package/dist/jmap/index.js +0 -12
  59. package/dist/jmap/keywords.js +0 -22
  60. package/dist/jmap/live.js +0 -21
  61. package/dist/jmap/origin.js +0 -113
  62. package/dist/jmap/patch.js +0 -29
  63. package/dist/jmap/request.js +0 -37
  64. package/dist/jmap/session.js +0 -89
  65. package/dist/jmap/sieve.js +0 -71
  66. package/dist/jmap/submission.js +0 -107
  67. package/dist/jmap/timeout.js +0 -30
  68. package/dist/jmap/types.js +0 -6
  69. package/dist/logger.js +0 -48
  70. package/dist/mcp/handler.js +0 -255
  71. package/dist/mcp/http.js +0 -29
  72. package/dist/mcp/instructions.js +0 -44
  73. package/dist/mcp/links.js +0 -64
  74. package/dist/mcp/test-client.js +0 -43
  75. package/dist/mcp/tool-logging.js +0 -67
  76. package/dist/observability/errors.js +0 -41
  77. package/dist/rules/apply.js +0 -236
  78. package/dist/rules/rule.js +0 -280
  79. package/dist/rules/store.js +0 -92
  80. package/dist/tools/annotations.js +0 -71
  81. package/dist/tools/archive-emails.js +0 -40
  82. package/dist/tools/calendar-lookup.js +0 -64
  83. package/dist/tools/contact-common.js +0 -146
  84. package/dist/tools/contact-format.js +0 -72
  85. package/dist/tools/contact-write-through.js +0 -37
  86. package/dist/tools/create-calendar-event.js +0 -231
  87. package/dist/tools/create-calendar.js +0 -54
  88. package/dist/tools/create-contact.js +0 -172
  89. package/dist/tools/create-draft.js +0 -369
  90. package/dist/tools/create-mail-rule.js +0 -101
  91. package/dist/tools/delete-calendar-event.js +0 -165
  92. package/dist/tools/delete-contact.js +0 -60
  93. package/dist/tools/delete-draft.js +0 -129
  94. package/dist/tools/delete-mail-rule.js +0 -38
  95. package/dist/tools/download-attachment.js +0 -90
  96. package/dist/tools/download-email.js +0 -112
  97. package/dist/tools/draft-common.js +0 -600
  98. package/dist/tools/email-types.js +0 -58
  99. package/dist/tools/error-detail.js +0 -10
  100. package/dist/tools/file-emails-common.js +0 -75
  101. package/dist/tools/format.js +0 -131
  102. package/dist/tools/forward-message.js +0 -237
  103. package/dist/tools/forward-quote.js +0 -179
  104. package/dist/tools/get-draft.js +0 -61
  105. package/dist/tools/get-email.js +0 -164
  106. package/dist/tools/get-thread.js +0 -67
  107. package/dist/tools/keywords.js +0 -43
  108. package/dist/tools/list-calendar-events.js +0 -180
  109. package/dist/tools/list-calendars.js +0 -44
  110. package/dist/tools/list-drafts.js +0 -134
  111. package/dist/tools/list-mail-rules.js +0 -28
  112. package/dist/tools/list-unsubscribe.js +0 -152
  113. package/dist/tools/list-upcoming-birthdays.js +0 -165
  114. package/dist/tools/mail-rule-common.js +0 -43
  115. package/dist/tools/mail-rule-format.js +0 -79
  116. package/dist/tools/mailbox-lookup.js +0 -13
  117. package/dist/tools/mark-emails.js +0 -78
  118. package/dist/tools/merge-contacts.js +0 -145
  119. package/dist/tools/move-calendar-events.js +0 -340
  120. package/dist/tools/move-emails.js +0 -64
  121. package/dist/tools/one-click-post.js +0 -275
  122. package/dist/tools/preview-email.js +0 -204
  123. package/dist/tools/preview-mail-rule.js +0 -79
  124. package/dist/tools/reply-quote.js +0 -426
  125. package/dist/tools/reply-to-message.js +0 -292
  126. package/dist/tools/respond-to-event.js +0 -110
  127. package/dist/tools/result.js +0 -9
  128. package/dist/tools/search-contacts.js +0 -431
  129. package/dist/tools/search-emails.js +0 -570
  130. package/dist/tools/send-draft.js +0 -308
  131. package/dist/tools/trash-emails.js +0 -36
  132. package/dist/tools/unsubscribe-from-list.js +0 -249
  133. package/dist/tools/update-calendar-event.js +0 -973
  134. package/dist/tools/update-calendar.js +0 -100
  135. package/dist/tools/update-contact.js +0 -382
  136. package/dist/tools/update-draft.js +0 -714
  137. package/dist/tools/update-mail-rule.js +0 -103
  138. package/dist/tools/upload-attachments.js +0 -126
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/self-hosted.ts
4
+ process.env.MCP_LOG_STDERR = "1";
5
+ process.env.SERVICE_NAME ??= "mcp-self-hosted";
6
+ var { run } = await import("./chunk-0fxfqny0.js");
7
+ await run();
package/package.json CHANGED
@@ -1,100 +1,95 @@
1
1
  {
2
- "name": "langmail-mcp",
3
- "version": "0.0.0",
4
- "description": "Langmail MCP for your own Stalwart: email, calendar and contacts — a self-hosted MCP server for Stalwart over JMAP, CalDAV and CardDAV",
5
- "keywords": [
6
- "mcp",
7
- "mcp-server",
8
- "model-context-protocol",
9
- "stalwart",
10
- "stalwart-mail",
11
- "jmap",
12
- "caldav",
13
- "carddav",
14
- "email",
15
- "calendar",
16
- "contacts",
17
- "self-hosted",
18
- "langmail",
19
- "ai-agent"
20
- ],
21
- "homepage": "https://github.com/langmail/langmail-mcp#readme",
22
- "bugs": {
23
- "url": "https://github.com/langmail/langmail-mcp/issues"
24
- },
25
- "repository": {
26
- "type": "git",
27
- "url": "https://github.com/langmail/langmail-mcp.git"
28
- },
29
- "license": "MIT",
30
- "author": "Dominik Grusemann",
31
- "type": "module",
32
- "main": "dist/index.js",
33
- "bin": {
34
- "langmail-mcp": "dist/index.js"
35
- },
36
- "files": [
37
- "dist",
38
- "THIRD_PARTY_NOTICES.md"
39
- ],
40
- "scripts": {
41
- "build": "tsc && tsc --noEmit -p src/email-render/viewer && tsc -p tsconfig.build.json && tsx scripts/build-viewer.ts && shx chmod +x dist/index.js",
42
- "check": "biome check .",
43
- "check:ci": "biome ci .",
44
- "check:fix": "biome check --write .",
45
- "dev": "tsx --watch --env-file=.env src/index.ts",
46
- "fix": "ultracite fix",
47
- "knip": "knip",
48
- "notices": "tsx scripts/third-party-notices.ts",
49
- "prepare": "lefthook install",
50
- "semantic-release": "semantic-release",
51
- "stalwart:down": "scripts/stalwart/down.sh",
52
- "stalwart:up": "scripts/stalwart/up.sh",
53
- "test": "vitest run",
54
- "test:coverage": "vitest run --coverage",
55
- "test:e2e": "npm run build && vitest run --config vitest.e2e.config.ts",
56
- "test:watch": "vitest",
57
- "validate": "npm run check && npm test && npm run knip && npm run build",
58
- "watch": "tsc -p tsconfig.build.json --watch"
59
- },
60
- "dependencies": {
61
- "@date-fns/tz": "1.5.0",
62
- "@modelcontextprotocol/ext-apps": "2.0.4",
63
- "@modelcontextprotocol/server": "2.4.0",
64
- "@touch4it/ical-timezones": "1.9.0",
65
- "ical-generator": "11.1.3",
66
- "langmail": "0.11.2",
67
- "pino": "10.4.0",
68
- "rrule": "2.8.1",
69
- "sanitize-html": "2.18.2",
70
- "tsdav": "2.5.0",
71
- "zod": "4.6.7"
72
- },
73
- "devDependencies": {
74
- "@biomejs/biome": "2.5.15",
75
- "@commitlint/cli": "^21.0.0",
76
- "@commitlint/config-conventional": "^21.0.0",
77
- "@happy-dom/global-registrator": "21.0.4",
78
- "@modelcontextprotocol/client": "2.4.0",
79
- "@semantic-release/changelog": "^7.0.0",
80
- "@semantic-release/git": "^11.0.1",
81
- "@semantic-release/github": "^12.0.5",
82
- "@semantic-release/npm": "^13.1.4",
83
- "@types/node": "^26.0.0",
84
- "@types/sanitize-html": "2.16.2",
85
- "@vitest/coverage-v8": "^5.0.0",
86
- "esbuild": "0.28.2",
87
- "knip": "^6.12.1",
88
- "lefthook": "^2.1.6",
89
- "semantic-release": "^25.0.3",
90
- "shx": "^0.4.0",
91
- "tsx": "^4.21.0",
92
- "typescript": "^7.0.2",
93
- "ultracite": "8.0.1",
94
- "vitest": "^5.0.0"
95
- },
96
- "engines": {
97
- "node": ">=22"
98
- },
99
- "mcpName": "io.github.langmail/langmail-mcp"
2
+ "name": "langmail-mcp",
3
+ "version": "0.2.0",
4
+ "description": "Langmail's MCP server for your own Stalwart mailbox: mail, calendar and contacts for an AI agent, over stdio or Streamable HTTP",
5
+ "keywords": [
6
+ "mcp",
7
+ "model-context-protocol",
8
+ "stalwart",
9
+ "jmap",
10
+ "caldav",
11
+ "carddav",
12
+ "email",
13
+ "calendar",
14
+ "contacts",
15
+ "agent"
16
+ ],
17
+ "homepage": "https://github.com/langmail/langmail-mcp#readme",
18
+ "bugs": {
19
+ "url": "https://github.com/langmail/langmail-mcp/issues"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/langmail/langmail-mcp.git"
24
+ },
25
+ "license": "MIT",
26
+ "author": "Dominik Grusemann",
27
+ "type": "module",
28
+ "bin": {
29
+ "langmail-mcp": "dist/langmail-mcp.js"
30
+ },
31
+ "files": [
32
+ "dist"
33
+ ],
34
+ "scripts": {
35
+ "build": "tsc --noEmit && tsc --noEmit -p src/email-render/viewer",
36
+ "build:package": "bun run scripts/build-package.ts",
37
+ "check": "biome check .",
38
+ "check:fix": "biome check --write .",
39
+ "check:package": "bun run scripts/check-package.ts",
40
+ "dev": "bun run src/index.ts",
41
+ "measure:tool-size": "bun run scripts/measure-indexed-size.ts",
42
+ "prepack": "bun run build:package",
43
+ "smoke:agent-apple-mail-draft": "bun run scripts/smoke-agent-apple-mail-draft.ts",
44
+ "smoke:agent-contact-from-mail": "bun run scripts/smoke-agent-contact-from-mail.ts",
45
+ "smoke:agent-contact-role": "bun run scripts/smoke-agent-contact-role.ts",
46
+ "smoke:agent-contact-role-record": "bun run scripts/smoke-agent-contact-role-record.ts",
47
+ "smoke:agent-forward": "bun run scripts/smoke-agent-forward.ts",
48
+ "smoke:agent-preview": "bun run scripts/smoke-agent-preview.ts",
49
+ "smoke:agent-self-hosted": "bun run scripts/smoke-agent-self-hosted.ts",
50
+ "smoke:agent-windows-zone": "bun run scripts/smoke-agent-windows-zone.ts",
51
+ "spec:check": "./spec/check.sh",
52
+ "stalwart:setup": "bun run infra/dev/stalwart/setup.ts",
53
+ "start": "NODE_ENV=production bun src/index.ts",
54
+ "start:self-hosted": "bun --no-env-file src/self-hosted.ts",
55
+ "test": "bun test",
56
+ "test:integration": "bun test caldav-integration",
57
+ "test:node": "bun run scripts/test-node.ts",
58
+ "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",
59
+ "typecheck": "tsc --noEmit && tsc --noEmit -p src/email-render/viewer"
60
+ },
61
+ "dependencies": {
62
+ "@date-fns/tz": "^1.5.0",
63
+ "@logtail/node": "^0.6.1",
64
+ "@logtail/types": "^0.6.0",
65
+ "@modelcontextprotocol/ext-apps": "~2.0.4",
66
+ "@modelcontextprotocol/server": "^2.4.0",
67
+ "@sentry/node": "^11.12.0",
68
+ "ical-generator": "^11.1.3",
69
+ "langmail": "^0.11.2",
70
+ "pino": "^10.4.0",
71
+ "rrule": "^2.8.1",
72
+ "sanitize-html": "^2.18.2",
73
+ "timezones-ical-library": "^3.0.0",
74
+ "tsdav": "^2.5.0",
75
+ "zod": "^4.6.7"
76
+ },
77
+ "devDependencies": {
78
+ "@biomejs/biome": "2.5.15",
79
+ "@commitlint/cli": "^21.2.4",
80
+ "@commitlint/config-conventional": "^21.2.4",
81
+ "@happy-dom/global-registrator": "^21.0.4",
82
+ "@modelcontextprotocol/client": "^2.4.0",
83
+ "@semantic-release/changelog": "^7.0.0",
84
+ "@semantic-release/git": "^11.0.1",
85
+ "@types/bun": "^1.3.3",
86
+ "@types/sanitize-html": "^2.16.2",
87
+ "lefthook": "^2.2.2",
88
+ "semantic-release": "^25.0.3",
89
+ "typescript": "^7.0.2",
90
+ "ultracite": "7.12.4"
91
+ },
92
+ "engines": {
93
+ "node": "^22.12.0 || >=24"
94
+ }
100
95
  }
@@ -1,388 +0,0 @@
1
- # Third-party notices
2
-
3
- The published package contains `dist/email-render/email-viewer.html`, the view an MCP Apps host shows a previewed email in. That one file has the code of the packages below compiled into it, so their copyright and license notices are reproduced here.
4
-
5
- This file is generated from what the bundler put into the viewer (`npm run notices`, `scripts/third-party.ts`). Do not edit it by hand; `npm test` fails when it no longer matches the bundle.
6
-
7
- The packages this server depends on at run time are not in this list: npm installs them next to it, each with its own license file.
8
-
9
- | Package | Version | License |
10
- | --- | --- | --- |
11
- | @cfworker/json-schema | 4.1.1 | MIT |
12
- | @modelcontextprotocol/client | 2.4.0 | Apache-2.0 |
13
- | @modelcontextprotocol/core | 2.4.0 | Apache-2.0 |
14
- | @modelcontextprotocol/ext-apps | 2.0.4 | MIT |
15
- | content-type | 1.0.5 | MIT |
16
- | pkce-challenge | 5.0.1 | MIT |
17
- | zod | 4.6.7 | MIT |
18
-
19
- ## @cfworker/json-schema 4.1.1
20
-
21
- - License: MIT
22
- - Copyright (c) 2020 Jeremy Danyow
23
- - Source: <https://github.com/cfworker/cfworker>
24
- - Compiled into the published files of @modelcontextprotocol/client@2.4.0, and bundled from there.
25
- - NOTICE file: the package ships none.
26
-
27
- ```text
28
- MIT License
29
-
30
- Copyright (c) 2020 Jeremy Danyow
31
-
32
- Permission is hereby granted, free of charge, to any person obtaining a copy
33
- of this software and associated documentation files (the "Software"), to deal
34
- in the Software without restriction, including without limitation the rights
35
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
36
- copies of the Software, and to permit persons to whom the Software is
37
- furnished to do so, subject to the following conditions:
38
-
39
- The above copyright notice and this permission notice shall be included in all
40
- copies or substantial portions of the Software.
41
-
42
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
43
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
44
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
45
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
46
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
47
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
48
- SOFTWARE.
49
- ```
50
-
51
- ## @modelcontextprotocol/client 2.4.0
52
-
53
- - License: Apache-2.0
54
- - Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
55
- - Source: <https://github.com/modelcontextprotocol/typescript-sdk>
56
- - NOTICE file: the package ships none.
57
-
58
- ```text
59
- The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0.
60
-
61
- Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License.
62
-
63
- No rights beyond those granted by the applicable original license are conveyed for such contributions.
64
-
65
- ---
66
-
67
- Apache License
68
- Version 2.0, January 2004
69
- http://www.apache.org/licenses/
70
-
71
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
72
-
73
- 1. Definitions.
74
-
75
- "License" shall mean the terms and conditions for use, reproduction,
76
- and distribution as defined by Sections 1 through 9 of this document.
77
-
78
- "Licensor" shall mean the copyright owner or entity authorized by
79
- the copyright owner that is granting the License.
80
-
81
- "Legal Entity" shall mean the union of the acting entity and all
82
- other entities that control, are controlled by, or are under common
83
- control with that entity. For the purposes of this definition,
84
- "control" means (i) the power, direct or indirect, to cause the
85
- direction or management of such entity, whether by contract or
86
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
87
- outstanding shares, or (iii) beneficial ownership of such entity.
88
-
89
- "You" (or "Your") shall mean an individual or Legal Entity
90
- exercising permissions granted by this License.
91
-
92
- "Source" form shall mean the preferred form for making modifications,
93
- including but not limited to software source code, documentation
94
- source, and configuration files.
95
-
96
- "Object" form shall mean any form resulting from mechanical
97
- transformation or translation of a Source form, including but
98
- not limited to compiled object code, generated documentation,
99
- and conversions to other media types.
100
-
101
- "Work" shall mean the work of authorship, whether in Source or
102
- Object form, made available under the License, as indicated by a
103
- copyright notice that is included in or attached to the work
104
- (an example is provided in the Appendix below).
105
-
106
- "Derivative Works" shall mean any work, whether in Source or Object
107
- form, that is based on (or derived from) the Work and for which the
108
- editorial revisions, annotations, elaborations, or other modifications
109
- represent, as a whole, an original work of authorship. For the purposes
110
- of this License, Derivative Works shall not include works that remain
111
- separable from, or merely link (or bind by name) to the interfaces of,
112
- the Work and Derivative Works thereof.
113
-
114
- "Contribution" shall mean any work of authorship, including
115
- the original version of the Work and any modifications or additions
116
- to that Work or Derivative Works thereof, that is intentionally
117
- submitted to the Licensor for inclusion in the Work by the copyright
118
- owner or by an individual or Legal Entity authorized to submit on behalf
119
- of the copyright owner. For the purposes of this definition, "submitted"
120
- means any form of electronic, verbal, or written communication sent
121
- to the Licensor or its representatives, including but not limited to
122
- communication on electronic mailing lists, source code control systems,
123
- and issue tracking systems that are managed by, or on behalf of, the
124
- Licensor for the purpose of discussing and improving the Work, but
125
- excluding communication that is conspicuously marked or otherwise
126
- designated in writing by the copyright owner as "Not a Contribution."
127
-
128
- "Contributor" shall mean Licensor and any individual or Legal Entity
129
- on behalf of whom a Contribution has been received by Licensor and
130
- subsequently incorporated within the Work.
131
-
132
- 2. Grant of Copyright License. Subject to the terms and conditions of
133
- this License, each Contributor hereby grants to You a perpetual,
134
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
135
- copyright license to reproduce, prepare Derivative Works of,
136
- publicly display, publicly perform, sublicense, and distribute the
137
- Work and such Derivative Works in Source or Object form.
138
-
139
- 3. Grant of Patent License. Subject to the terms and conditions of
140
- this License, each Contributor hereby grants to You a perpetual,
141
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
142
- (except as stated in this section) patent license to make, have made,
143
- use, offer to sell, sell, import, and otherwise transfer the Work,
144
- where such license applies only to those patent claims licensable
145
- by such Contributor that are necessarily infringed by their
146
- Contribution(s) alone or by combination of their Contribution(s)
147
- with the Work to which such Contribution(s) was submitted. If You
148
- institute patent litigation against any entity (including a
149
- cross-claim or counterclaim in a lawsuit) alleging that the Work
150
- or a Contribution incorporated within the Work constitutes direct
151
- or contributory patent infringement, then any patent licenses
152
- granted to You under this License for that Work shall terminate
153
- as of the date such litigation is filed.
154
-
155
- 4. Redistribution. You may reproduce and distribute copies of the
156
- Work or Derivative Works thereof in any medium, with or without
157
- modifications, and in Source or Object form, provided that You
158
- meet the following conditions:
159
-
160
- (a) You must give any other recipients of the Work or
161
- Derivative Works a copy of this License; and
162
-
163
- (b) You must cause any modified files to carry prominent notices
164
- stating that You changed the files; and
165
-
166
- (c) You must retain, in the Source form of any Derivative Works
167
- that You distribute, all copyright, patent, trademark, and
168
- attribution notices from the Source form of the Work,
169
- excluding those notices that do not pertain to any part of
170
- the Derivative Works; and
171
-
172
- (d) If the Work includes a "NOTICE" text file as part of its
173
- distribution, then any Derivative Works that You distribute must
174
- include a readable copy of the attribution notices contained
175
- within such NOTICE file, excluding those notices that do not
176
- pertain to any part of the Derivative Works, in at least one
177
- of the following places: within a NOTICE text file distributed
178
- as part of the Derivative Works; within the Source form or
179
- documentation, if provided along with the Derivative Works; or,
180
- within a display generated by the Derivative Works, if and
181
- wherever such third-party notices normally appear. The contents
182
- of the NOTICE file are for informational purposes only and
183
- do not modify the License. You may add Your own attribution
184
- notices within Derivative Works that You distribute, alongside
185
- or as an addendum to the NOTICE text from the Work, provided
186
- that such additional attribution notices cannot be construed
187
- as modifying the License.
188
-
189
- You may add Your own copyright statement to Your modifications and
190
- may provide additional or different license terms and conditions
191
- for use, reproduction, or distribution of Your modifications, or
192
- for any such Derivative Works as a whole, provided Your use,
193
- reproduction, and distribution of the Work otherwise complies with
194
- the conditions stated in this License.
195
-
196
- 5. Submission of Contributions. Unless You explicitly state otherwise,
197
- any Contribution intentionally submitted for inclusion in the Work
198
- by You to the Licensor shall be under the terms and conditions of
199
- this License, without any additional terms or conditions.
200
- Notwithstanding the above, nothing herein shall supersede or modify
201
- the terms of any separate license agreement you may have executed
202
- with Licensor regarding such Contributions.
203
-
204
- 6. Trademarks. This License does not grant permission to use the trade
205
- names, trademarks, service marks, or product names of the Licensor,
206
- except as required for reasonable and customary use in describing the
207
- origin of the Work and reproducing the content of the NOTICE file.
208
-
209
- 7. Disclaimer of Warranty. Unless required by applicable law or
210
- agreed to in writing, Licensor provides the Work (and each
211
- Contributor provides its Contributions) on an "AS IS" BASIS,
212
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
213
- implied, including, without limitation, any warranties or conditions
214
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
215
- PARTICULAR PURPOSE. You are solely responsible for determining the
216
- appropriateness of using or redistributing the Work and assume any
217
- risks associated with Your exercise of permissions under this License.
218
-
219
- 8. Limitation of Liability. In no event and under no legal theory,
220
- whether in tort (including negligence), contract, or otherwise,
221
- unless required by applicable law (such as deliberate and grossly
222
- negligent acts) or agreed to in writing, shall any Contributor be
223
- liable to You for damages, including any direct, indirect, special,
224
- incidental, or consequential damages of any character arising as a
225
- result of this License or out of the use or inability to use the
226
- Work (including but not limited to damages for loss of goodwill,
227
- work stoppage, computer failure or malfunction, or any and all
228
- other commercial damages or losses), even if such Contributor
229
- has been advised of the possibility of such damages.
230
-
231
- 9. Accepting Warranty or Additional Liability. While redistributing
232
- the Work or Derivative Works thereof, You may choose to offer,
233
- and charge a fee for, acceptance of support, warranty, indemnity,
234
- or other liability obligations and/or rights consistent with this
235
- License. However, in accepting such obligations, You may act only
236
- on Your own behalf and on Your sole responsibility, not on behalf
237
- of any other Contributor, and only if You agree to indemnify,
238
- defend, and hold each Contributor harmless for any liability
239
- incurred by, or claims asserted against, such Contributor by reason
240
- of your accepting any such warranty or additional liability.
241
-
242
- END OF TERMS AND CONDITIONS
243
-
244
- ---
245
-
246
- MIT License
247
-
248
- Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
249
-
250
- Permission is hereby granted, free of charge, to any person obtaining a copy
251
- of this software and associated documentation files (the "Software"), to deal
252
- in the Software without restriction, including without limitation the rights
253
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
254
- copies of the Software, and to permit persons to whom the Software is
255
- furnished to do so, subject to the following conditions:
256
-
257
- The above copyright notice and this permission notice shall be included in all
258
- copies or substantial portions of the Software.
259
-
260
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
261
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
262
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
263
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
264
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
265
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
266
- SOFTWARE.
267
-
268
- ---
269
-
270
- Creative Commons Attribution 4.0 International (CC-BY-4.0)
271
-
272
- Documentation in this project (excluding specifications) is licensed under
273
- CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for
274
- the full license text.
275
- ```
276
-
277
- ## @modelcontextprotocol/core 2.4.0
278
-
279
- - License: Apache-2.0
280
- - Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
281
- - Source: <https://github.com/modelcontextprotocol/typescript-sdk>
282
- - NOTICE file: the package ships none.
283
-
284
- License text: identical to the one under "@modelcontextprotocol/client 2.4.0" above.
285
-
286
- ## @modelcontextprotocol/ext-apps 2.0.4
287
-
288
- - License: MIT
289
- - Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
290
- - Source: <https://github.com/modelcontextprotocol/ext-apps>
291
- - NOTICE file: the package ships none.
292
-
293
- License text: identical to the one under "@modelcontextprotocol/client 2.4.0" above.
294
-
295
- ## content-type 1.0.5
296
-
297
- - License: MIT
298
- - Copyright (c) 2015 Douglas Christopher Wilson
299
- - Source: <https://github.com/jshttp/content-type>
300
- - Compiled into the published files of @modelcontextprotocol/client@2.4.0, and bundled from there.
301
- - NOTICE file: the package ships none.
302
-
303
- ```text
304
- (The MIT License)
305
-
306
- Copyright (c) 2015 Douglas Christopher Wilson
307
-
308
- Permission is hereby granted, free of charge, to any person obtaining
309
- a copy of this software and associated documentation files (the
310
- 'Software'), to deal in the Software without restriction, including
311
- without limitation the rights to use, copy, modify, merge, publish,
312
- distribute, sublicense, and/or sell copies of the Software, and to
313
- permit persons to whom the Software is furnished to do so, subject to
314
- the following conditions:
315
-
316
- The above copyright notice and this permission notice shall be
317
- included in all copies or substantial portions of the Software.
318
-
319
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
320
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
321
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
322
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
323
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
324
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
325
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
326
- ```
327
-
328
- ## pkce-challenge 5.0.1
329
-
330
- - License: MIT
331
- - Copyright (c) 2019
332
- - Source: <https://github.com/crouchcd/pkce-challenge>
333
- - NOTICE file: the package ships none.
334
-
335
- ```text
336
- MIT License
337
-
338
- Copyright (c) 2019
339
-
340
- Permission is hereby granted, free of charge, to any person obtaining a copy
341
- of this software and associated documentation files (the "Software"), to deal
342
- in the Software without restriction, including without limitation the rights
343
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
344
- copies of the Software, and to permit persons to whom the Software is
345
- furnished to do so, subject to the following conditions:
346
-
347
- The above copyright notice and this permission notice shall be included in all
348
- copies or substantial portions of the Software.
349
-
350
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
351
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
352
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
353
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
354
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
355
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
356
- SOFTWARE.
357
- ```
358
-
359
- ## zod 4.6.7
360
-
361
- - License: MIT
362
- - Copyright (c) 2025 Colin McDonnell
363
- - Source: <https://github.com/colinhacks/zod>
364
- - NOTICE file: the package ships none.
365
-
366
- ```text
367
- MIT License
368
-
369
- Copyright (c) 2025 Colin McDonnell
370
-
371
- Permission is hereby granted, free of charge, to any person obtaining a copy
372
- of this software and associated documentation files (the "Software"), to deal
373
- in the Software without restriction, including without limitation the rights
374
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
375
- copies of the Software, and to permit persons to whom the Software is
376
- furnished to do so, subject to the following conditions:
377
-
378
- The above copyright notice and this permission notice shall be included in all
379
- copies or substantial portions of the Software.
380
-
381
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
382
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
383
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
384
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
385
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
386
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
387
- SOFTWARE.
388
- ```