granttap-mcp 0.8.75 → 0.8.78

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 (173) hide show
  1. package/LICENSE +72 -202
  2. package/LICENSE-APACHE-2.0.txt +202 -0
  3. package/NOTICE +4 -2
  4. package/README.md +13 -6
  5. package/THIRD_PARTY_NOTICES.md +3 -3
  6. package/apps/bridge/src/account-recovery/README.md +1 -1
  7. package/apps/bridge/src/approvals/cancellation/README.md +8 -0
  8. package/apps/bridge/src/approvals/cancellation/index.ts +20 -0
  9. package/apps/bridge/src/approvals/index.ts +6 -0
  10. package/apps/bridge/src/bin/cli/setup.ts +5 -8
  11. package/apps/bridge/src/bin/hooks/cursor-hook.ts +6 -1
  12. package/apps/bridge/src/bin/runtime/cursor-mcp-hook.ts +6 -1
  13. package/apps/bridge/src/bin/runtime/monitor.ts +16 -7
  14. package/apps/bridge/src/capabilities/README.md +1 -1
  15. package/apps/bridge/src/claude-questions/README.md +1 -1
  16. package/apps/bridge/src/cloud-runners/README.md +1 -1
  17. package/apps/bridge/src/codex-desktop/README.md +31 -0
  18. package/apps/bridge/src/codex-desktop/connection.ts +104 -0
  19. package/apps/bridge/src/codex-desktop/controls.ts +21 -0
  20. package/apps/bridge/src/codex-desktop/index.ts +78 -0
  21. package/apps/bridge/src/codex-desktop/receipts.ts +55 -0
  22. package/apps/bridge/src/codex-desktop/socket-path.ts +25 -0
  23. package/apps/bridge/src/codex-hook-trust/README.md +1 -1
  24. package/apps/bridge/src/config/README.md +1 -1
  25. package/apps/bridge/src/config/runtime/index.ts +3 -2
  26. package/apps/bridge/src/configuration-delivery/README.md +1 -1
  27. package/apps/bridge/src/delivery/index.ts +14 -0
  28. package/apps/bridge/src/device-network/README.md +2 -2
  29. package/apps/bridge/src/engine/README.md +17 -4
  30. package/apps/bridge/src/engine/distribution/README.md +20 -0
  31. package/apps/bridge/src/engine/distribution/artifacts.ts +35 -0
  32. package/apps/bridge/src/engine/distribution/download.ts +29 -0
  33. package/apps/bridge/src/engine/distribution/index.ts +3 -0
  34. package/apps/bridge/src/engine/distribution/installation.ts +44 -0
  35. package/apps/bridge/src/engine/distribution/monitor/README.md +8 -0
  36. package/apps/bridge/src/engine/distribution/monitor/index.ts +47 -0
  37. package/apps/bridge/src/engine/distribution/storage.ts +31 -0
  38. package/apps/bridge/src/engine/distribution/windows-storage.ts +32 -0
  39. package/apps/bridge/src/engine/protocol/engine-declaration.ts +5 -1
  40. package/apps/bridge/src/engine/runtime/engine-client.ts +2 -1
  41. package/apps/bridge/src/engine/runtime/engine-supervisor.ts +3 -1
  42. package/apps/bridge/src/engine/startup/README.md +15 -0
  43. package/apps/bridge/src/engine/startup/activation-entry.ts +3 -0
  44. package/apps/bridge/src/engine/startup/activation.ts +18 -0
  45. package/apps/bridge/src/engine/startup/index.ts +3 -0
  46. package/apps/bridge/src/engine/startup/local-endpoint.ts +13 -0
  47. package/apps/bridge/src/engine/startup/recovery.ts +45 -0
  48. package/apps/bridge/src/host/approval-presentation/README.md +1 -1
  49. package/apps/bridge/src/host/session-key-store/README.md +1 -1
  50. package/apps/bridge/src/install/inspect.ts +2 -0
  51. package/apps/bridge/src/install/linux-service/README.md +19 -0
  52. package/apps/bridge/src/install/linux-service/definition.ts +34 -0
  53. package/apps/bridge/src/install/linux-service/index.ts +107 -0
  54. package/apps/bridge/src/install/monitor-helper.ts +13 -35
  55. package/apps/bridge/src/install/monitor-launchd/README.md +8 -0
  56. package/apps/bridge/src/install/monitor-launchd/index.ts +25 -0
  57. package/apps/bridge/src/machine-load/README.md +1 -1
  58. package/apps/bridge/src/machine-load/command-process/README.md +1 -1
  59. package/apps/bridge/src/managed-admission/README.md +1 -1
  60. package/apps/bridge/src/mesh/README.md +1 -1
  61. package/apps/bridge/src/mesh/catalog/README.md +1 -1
  62. package/apps/bridge/src/mesh/context/README.md +1 -1
  63. package/apps/bridge/src/mesh/knowledge/README.md +1 -1
  64. package/apps/bridge/src/mesh/repository-details/README.md +1 -1
  65. package/apps/bridge/src/mesh/restrictions/README.md +1 -1
  66. package/apps/bridge/src/mesh/runtime/graph/README.md +1 -1
  67. package/apps/bridge/src/monitor/README.md +1 -1
  68. package/apps/bridge/src/monitor/handlers/catalog.ts +7 -4
  69. package/apps/bridge/src/monitor/handlers/inbound.ts +6 -1
  70. package/apps/bridge/src/monitor/handlers/receipts.ts +4 -2
  71. package/apps/bridge/src/monitor/handlers/user-message.ts +19 -5
  72. package/apps/bridge/src/monitor/mesh-publication/README.md +1 -1
  73. package/apps/bridge/src/monitor/message-delivery/README.md +5 -1
  74. package/apps/bridge/src/monitor/message-delivery/index.ts +6 -4
  75. package/apps/bridge/src/monitor/support/runtime.ts +5 -1
  76. package/apps/bridge/src/policy/README.md +1 -1
  77. package/apps/bridge/src/policy/shell/README.md +1 -1
  78. package/apps/bridge/src/provider-account-status/README.md +1 -1
  79. package/apps/bridge/src/provider-model-catalog/README.md +1 -1
  80. package/apps/bridge/src/reply/README.md +12 -1
  81. package/apps/bridge/src/reply/cursor-context/README.md +18 -0
  82. package/apps/bridge/src/reply/cursor-context/index.ts +64 -0
  83. package/apps/bridge/src/reply/cursor-conversation/README.md +21 -0
  84. package/apps/bridge/src/reply/cursor-conversation/actions.ts +44 -0
  85. package/apps/bridge/src/reply/cursor-conversation/call-context/README.md +9 -0
  86. package/apps/bridge/src/reply/cursor-conversation/call-context/index.ts +32 -0
  87. package/apps/bridge/src/reply/cursor-conversation/index.ts +86 -0
  88. package/apps/bridge/src/reply/cursor-conversation/interactions.ts +39 -0
  89. package/apps/bridge/src/reply/cursor-conversation/permissions.ts +67 -0
  90. package/apps/bridge/src/reply/cursor-conversation/questions.ts +66 -0
  91. package/apps/bridge/src/reply/cursor-conversation/transport.ts +136 -0
  92. package/apps/bridge/src/reply/index.ts +3 -0
  93. package/apps/bridge/src/reply/payload/attachments.ts +29 -5
  94. package/apps/bridge/src/reply/payload/identity.ts +13 -0
  95. package/apps/bridge/src/reply/payload/types.ts +6 -2
  96. package/apps/bridge/src/reply/process/codex-headless.ts +8 -2
  97. package/apps/bridge/src/reply/process/index.ts +8 -4
  98. package/apps/bridge/src/reply/process/provider-headless.ts +6 -36
  99. package/apps/bridge/src/session-catalog/README.md +1 -1
  100. package/apps/bridge/src/session-images/README.md +1 -1
  101. package/apps/bridge/src/sessions/README.md +1 -1
  102. package/apps/bridge/src/sessions/cursor/README.md +1 -1
  103. package/apps/bridge/src/sessions/cursor/activity.ts +4 -0
  104. package/apps/bridge/src/sessions/cursor/attention/README.md +1 -1
  105. package/apps/bridge/src/sessions/cursor/catalog.ts +3 -0
  106. package/apps/bridge/src/sessions/cursor/conversations/README.md +13 -0
  107. package/apps/bridge/src/sessions/cursor/conversations/history.ts +33 -0
  108. package/apps/bridge/src/sessions/cursor/conversations/index.ts +80 -0
  109. package/apps/bridge/src/sessions/cursor/conversations/storage.ts +68 -0
  110. package/apps/bridge/src/sessions/cursor/executions/README.md +12 -0
  111. package/apps/bridge/src/sessions/cursor/executions/index.ts +46 -0
  112. package/apps/bridge/src/sessions/cursor/index.ts +2 -0
  113. package/apps/bridge/src/sessions/cursor/scan.ts +2 -1
  114. package/apps/bridge/src/sessions/scan/codex/README.md +1 -1
  115. package/apps/bridge/src/sessions/telemetry/README.md +1 -1
  116. package/apps/bridge/src/task-automation/README.md +1 -1
  117. package/apps/bridge/src/task-control/README.md +1 -1
  118. package/apps/bridge/src/task-control/index.ts +4 -0
  119. package/apps/bridge/src/task-dispatch/README.md +1 -1
  120. package/apps/bridge/src/task-files/README.md +1 -1
  121. package/apps/bridge/src/task-network/README.md +1 -1
  122. package/apps/bridge/src/task-network/configuration/README.md +7 -1
  123. package/apps/bridge/src/task-network/configuration/runtime.ts +1 -1
  124. package/apps/bridge/src/task-network/configuration/sync.ts +21 -4
  125. package/apps/bridge/src/task-origins/README.md +1 -1
  126. package/apps/bridge/src/task-routing/README.md +1 -1
  127. package/apps/bridge/src/task-routing/resources/README.md +1 -1
  128. package/apps/bridge/src/task-transfer/README.md +1 -1
  129. package/apps/bridge/src/task-transfer/continuation/README.md +1 -1
  130. package/apps/bridge/src/task-transfer/runtime/README.md +1 -1
  131. package/apps/bridge/src/transcript-history/README.md +1 -1
  132. package/apps/bridge/src/transcript-history/index.ts +8 -0
  133. package/apps/mcp/src/connection-center/README.md +1 -1
  134. package/apps/mcp/src/desktop/README.md +1 -1
  135. package/apps/mcp/src/desktop/delivery/README.md +1 -1
  136. package/apps/mcp/src/desktop/delivery/task-send.ts +1 -1
  137. package/apps/mcp/src/desktop/live-catalog/README.md +1 -1
  138. package/apps/mcp/src/desktop/models/README.md +1 -1
  139. package/apps/mcp/src/desktop/native-access/README.md +1 -1
  140. package/apps/mcp/src/desktop/network/README.md +1 -1
  141. package/apps/mcp/src/desktop/pairing/README.md +1 -1
  142. package/apps/mcp/src/desktop/policy/README.md +1 -1
  143. package/apps/mcp/src/desktop/project-transport/README.md +1 -1
  144. package/apps/mcp/src/desktop/provider-hooks/README.md +1 -1
  145. package/apps/mcp/src/desktop/provider-storage/README.md +2 -2
  146. package/apps/mcp/src/desktop/task-control/README.md +1 -1
  147. package/apps/mcp/src/desktop/task-queue/README.md +1 -1
  148. package/apps/mcp/src/desktop/task-transfer/README.md +1 -1
  149. package/apps/mcp/src/desktop/workspace/README.md +1 -1
  150. package/apps/mcp/src/http-service/README.md +1 -1
  151. package/apps/mcp/src/http-service/common.ts +2 -0
  152. package/apps/mcp/src/http-service/installer.ts +8 -1
  153. package/apps/mcp/src/http-service/snapshot.ts +9 -0
  154. package/apps/mcp/src/mcp-tools/README.md +1 -1
  155. package/apps/mcp/src/oauth/README.md +1 -1
  156. package/bin/granttap-mcp.mjs +3 -1
  157. package/cursor-plugin/.cursor-plugin/plugin.json +2 -2
  158. package/cursor-plugin/LICENSE +72 -202
  159. package/cursor-plugin/NOTICE +4 -2
  160. package/cursor-plugin/README.md +3 -3
  161. package/cursor-plugin/mcp.json +1 -1
  162. package/cursor-plugin/stdio-bootstrap.cjs +1 -1
  163. package/package.json +4 -3
  164. package/packages/core/README.md +1 -1
  165. package/packages/core/ciphertext-recipient/README.md +1 -1
  166. package/packages/core/outbound-scheduler/README.md +1 -1
  167. package/packages/core/socket-lifecycle/README.md +1 -1
  168. package/packages/core/store-file-lock/README.md +1 -1
  169. package/packages/core/task-job-http/README.md +1 -1
  170. package/packages/protocol/messages/README.md +1 -1
  171. package/packages/protocol/messages/provider-hooks/README.md +1 -1
  172. package/packages/protocol/task-dispatch/README.md +1 -1
  173. package/packages/protocol/task-transfer/README.md +1 -1
package/LICENSE CHANGED
@@ -1,202 +1,72 @@
1
-
2
- Apache License
3
- Version 2.0, January 2004
4
- http://www.apache.org/licenses/
5
-
6
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
-
8
- 1. Definitions.
9
-
10
- "License" shall mean the terms and conditions for use, reproduction,
11
- and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by
14
- the copyright owner that is granting the License.
15
-
16
- "Legal Entity" shall mean the union of the acting entity and all
17
- other entities that control, are controlled by, or are under common
18
- control with that entity. For the purposes of this definition,
19
- "control" means (i) the power, direct or indirect, to cause the
20
- direction or management of such entity, whether by contract or
21
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
- outstanding shares, or (iii) beneficial ownership of such entity.
23
-
24
- "You" (or "Your") shall mean an individual or Legal Entity
25
- exercising permissions granted by this License.
26
-
27
- "Source" form shall mean the preferred form for making modifications,
28
- including but not limited to software source code, documentation
29
- source, and configuration files.
30
-
31
- "Object" form shall mean any form resulting from mechanical
32
- transformation or translation of a Source form, including but
33
- not limited to compiled object code, generated documentation,
34
- and conversions to other media types.
35
-
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
-
41
- "Derivative Works" shall mean any work, whether in Source or Object
42
- form, that is based on (or derived from) the Work and for which the
43
- editorial revisions, annotations, elaborations, or other modifications
44
- represent, as a whole, an original work of authorship. For the purposes
45
- of this License, Derivative Works shall not include works that remain
46
- separable from, or merely link (or bind by name) to the interfaces of,
47
- the Work and Derivative Works thereof.
48
-
49
- "Contribution" shall mean any work of authorship, including
50
- the original version of the Work and any modifications or additions
51
- to that Work or Derivative Works thereof, that is intentionally
52
- submitted to Licensor for inclusion in the Work by the copyright owner
53
- or by an individual or Legal Entity authorized to submit on behalf of
54
- the copyright owner. For the purposes of this definition, "submitted"
55
- means any form of electronic, verbal, or written communication sent
56
- to the Licensor or its representatives, including but not limited to
57
- communication on electronic mailing lists, source code control systems,
58
- and issue tracking systems that are managed by, or on behalf of, the
59
- Licensor for the purpose of discussing and improving the Work, but
60
- excluding communication that is conspicuously marked or otherwise
61
- designated in writing by the copyright owner as "Not a Contribution."
62
-
63
- "Contributor" shall mean Licensor and any individual or Legal Entity
64
- on behalf of whom a Contribution has been received by Licensor and
65
- subsequently incorporated within the Work.
66
-
67
- 2. Grant of Copyright License. Subject to the terms and conditions of
68
- this License, each Contributor hereby grants to You a perpetual,
69
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
- copyright license to reproduce, prepare Derivative Works of,
71
- publicly display, publicly perform, sublicense, and distribute the
72
- Work and such Derivative Works in Source or Object form.
73
-
74
- 3. Grant of Patent License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- (except as stated in this section) patent license to make, have made,
78
- use, offer to sell, sell, import, and otherwise transfer the Work,
79
- where such license applies only to those patent claims licensable
80
- by such Contributor that are necessarily infringed by their
81
- Contribution(s) alone or by combination of their Contribution(s)
82
- with the Work to which such Contribution(s) was submitted. If You
83
- institute patent litigation against any entity (including a
84
- cross-claim or counterclaim in a lawsuit) alleging that the Work
85
- or a Contribution incorporated within the Work constitutes direct
86
- or contributory patent infringement, then any patent licenses
87
- granted to You under this License for that Work shall terminate
88
- as of the date such litigation is filed.
89
-
90
- 4. Redistribution. You may reproduce and distribute copies of the
91
- Work or Derivative Works thereof in any medium, with or without
92
- modifications, and in Source or Object form, provided that You
93
- meet the following conditions:
94
-
95
- (a) You must give any other recipients of the Work or
96
- Derivative Works a copy of this License; and
97
-
98
- (b) You must cause any modified files to carry prominent notices
99
- stating that You changed the files; and
100
-
101
- (c) You must retain, in the Source form of any Derivative Works
102
- that You distribute, all copyright, patent, trademark, and
103
- attribution notices from the Source form of the Work,
104
- excluding those notices that do not pertain to any part of
105
- the Derivative Works; and
106
-
107
- (d) If the Work includes a "NOTICE" text file as part of its
108
- distribution, then any Derivative Works that You distribute must
109
- include a readable copy of the attribution notices contained
110
- within such NOTICE file, excluding those notices that do not
111
- pertain to any part of the Derivative Works, in at least one
112
- of the following places: within a NOTICE text file distributed
113
- as part of the Derivative Works; within the Source form or
114
- documentation, if provided along with the Derivative Works; or,
115
- within a display generated by the Derivative Works, if and
116
- wherever such third-party notices normally appear. The contents
117
- of the NOTICE file are for informational purposes only and
118
- do not modify the License. You may add Your own attribution
119
- notices within Derivative Works that You distribute, alongside
120
- or as an addendum to the NOTICE text from the Work, provided
121
- that such additional attribution notices cannot be construed
122
- as modifying the License.
123
-
124
- You may add Your own copyright statement to Your modifications and
125
- may provide additional or different license terms and conditions
126
- for use, reproduction, or distribution of Your modifications, or
127
- for any such Derivative Works as a whole, provided Your use,
128
- reproduction, and distribution of the Work otherwise complies with
129
- the conditions stated in this License.
130
-
131
- 5. Submission of Contributions. Unless You explicitly state otherwise,
132
- any Contribution intentionally submitted for inclusion in the Work
133
- by You to the Licensor shall be under the terms and conditions of
134
- this License, without any additional terms or conditions.
135
- Notwithstanding the above, nothing herein shall supersede or modify
136
- the terms of any separate license agreement you may have executed
137
- with Licensor regarding such Contributions.
138
-
139
- 6. Trademarks. This License does not grant permission to use the trade
140
- names, trademarks, service marks, or product names of the Licensor,
141
- except as required for reasonable and customary use in describing the
142
- origin of the Work and reproducing the content of the NOTICE file.
143
-
144
- 7. Disclaimer of Warranty. Unless required by applicable law or
145
- agreed to in writing, Licensor provides the Work (and each
146
- Contributor provides its Contributions) on an "AS IS" BASIS,
147
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
- implied, including, without limitation, any warranties or conditions
149
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
- PARTICULAR PURPOSE. You are solely responsible for determining the
151
- appropriateness of using or redistributing the Work and assume any
152
- risks associated with Your exercise of permissions under this License.
153
-
154
- 8. Limitation of Liability. In no event and under no legal theory,
155
- whether in tort (including negligence), contract, or otherwise,
156
- unless required by applicable law (such as deliberate and grossly
157
- negligent acts) or agreed to in writing, shall any Contributor be
158
- liable to You for damages, including any direct, indirect, special,
159
- incidental, or consequential damages of any character arising as a
160
- result of this License or out of the use or inability to use the
161
- Work (including but not limited to damages for loss of goodwill,
162
- work stoppage, computer failure or malfunction, or any and all
163
- other commercial damages or losses), even if such Contributor
164
- has been advised of the possibility of such damages.
165
-
166
- 9. Accepting Warranty or Additional Liability. While redistributing
167
- the Work or Derivative Works thereof, You may choose to offer,
168
- and charge a fee for, acceptance of support, warranty, indemnity,
169
- or other liability obligations and/or rights consistent with this
170
- License. However, in accepting such obligations, You may act only
171
- on Your own behalf and on Your sole responsibility, not on behalf
172
- of any other Contributor, and only if You agree to indemnify,
173
- defend, and hold each Contributor harmless for any liability
174
- incurred by, or claims asserted against, such Contributor by reason
175
- of your accepting any such warranty or additional liability.
176
-
177
- END OF TERMS AND CONDITIONS
178
-
179
- APPENDIX: How to apply the Apache License to your work.
180
-
181
- To apply the Apache License to your work, attach the following
182
- boilerplate notice, with the fields enclosed by brackets "[]"
183
- replaced with your own identifying information. (Don't include
184
- the brackets!) The text should be enclosed in the appropriate
185
- comment syntax for the file format. We also recommend that a
186
- file or class name and description of purpose be included on the
187
- same "printed page" as the copyright notice for easier
188
- identification within third-party archives.
189
-
190
- Copyright [yyyy] [name of copyright owner]
191
-
192
- Licensed under the Apache License, Version 2.0 (the "License");
193
- you may not use this file except in compliance with the License.
194
- You may obtain a copy of the License at
195
-
196
- http://www.apache.org/licenses/LICENSE-2.0
197
-
198
- Unless required by applicable law or agreed to in writing, software
199
- distributed under the License is distributed on an "AS IS" BASIS,
200
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
- See the License for the specific language governing permissions and
202
- limitations under the License.
1
+ GrantTap Commercial Source License 1.0 — MCP edition
2
+ Effective October 18, 2026
3
+
4
+ Copyright (c) 2026 Serhii Ziborov. All rights reserved.
5
+
6
+ This license covers the first-party GrantTap MCP runtime, CLI, bundled plugins,
7
+ documentation and original assets distributed with this license (the Software).
8
+ It is a source-available commercial license, not an open-source license.
9
+ Third-party components retain their own licenses and notices.
10
+
11
+ 1. Authorized Access
12
+
13
+ Authorized Access means an active paid GrantTap subscription, its eligible
14
+ official trial, verified official TestFlight access, an applicable purchased
15
+ GrantTap Desktop license under its purchase terms, or a separate written
16
+ commercial agreement with GrantTap. Access is subject to the account, device
17
+ allowance, duration and scope of that grant. Provider subscriptions and model
18
+ charges are separate and are not supplied by this license.
19
+
20
+ 2. Source inspection
21
+
22
+ You may download, inspect and privately modify the source to evaluate it,
23
+ perform security review, or prepare a contribution to the official repository.
24
+ Keep copyright and license notices. This permission does not grant production
25
+ use, redistribution, publication of independently usable distributions, or
26
+ operation of a service for other people.
27
+
28
+ 3. Authorized product use
29
+
30
+ During Authorized Access you may install and execute the authorized GrantTap
31
+ MCP version on devices you own or control, solely with the official GrantTap
32
+ product and within your grant. This right is limited, non-exclusive,
33
+ non-transferable and non-sublicensable. A perpetual Desktop purchase retains
34
+ the scope and duration in its purchase terms. Production source modifications
35
+ or additional distribution rights require a separate written agreement.
36
+
37
+ 4. Restrictions and ownership
38
+
39
+ Unless expressly permitted by a separate agreement or applicable law, you may
40
+ not sell, sublicense, redistribute or publish this Software or derivative
41
+ works; provide them as a hosted or managed service; bypass account, subscription
42
+ or access controls; or remove copyright, license or proprietary notices.
43
+ GrantTap retains rights in its Software. No trademark rights are granted.
44
+ You retain your rights in your projects, code, prompts and other processed data.
45
+
46
+ 5. Third-party and earlier releases
47
+
48
+ Third-party licenses and notices remain effective and are not restricted by
49
+ this license. See THIRD_PARTY_NOTICES.md and THIRD_PARTY_LICENSES.txt.
50
+ Copies of GrantTap MCP validly received under Apache License 2.0, including
51
+ published versions through 0.8.75, retain their original license and permissions.
52
+ This license does not retroactively withdraw those grants. The historical
53
+ Apache text is retained in LICENSE-APACHE-2.0.txt; its presence does not license
54
+ the new first-party Software under Apache License 2.0.
55
+
56
+ 6. Duration and termination
57
+
58
+ Term-limited execution rights end when Authorized Access expires or is revoked.
59
+ A material breach terminates rights under this license. Stop using copies that
60
+ you are no longer authorized to execute, except for permitted source inspection
61
+ or rights retained under an earlier or separate license. Non-waivable statutory
62
+ rights and the terms of a valid perpetual purchase remain intact.
63
+
64
+ 7. Warranty and liability
65
+
66
+ To the maximum extent permitted by applicable law the Software is provided
67
+ AS IS and AS AVAILABLE, without warranties of any kind. GrantTap is not liable
68
+ for indirect or consequential loss arising from use of the Software. Nothing
69
+ here excludes rights or liability that applicable law does not allow to be
70
+ excluded.
71
+
72
+ For commercial licensing, contact sergii.ziborov@gmail.com.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE CHANGED
@@ -1,5 +1,7 @@
1
1
  GrantTap MCP
2
2
  Copyright (c) 2026 Serhii Ziborov
3
3
 
4
- Licensed under the Apache License, Version 2.0.
5
- See LICENSE for the license text and THIRD_PARTY_NOTICES.md for dependency notices.
4
+ First-party versions distributed with this notice use the GrantTap Commercial
5
+ Source License in LICENSE. Earlier Apache-2.0 releases retain their original
6
+ permissions. Third-party components retain their own licenses; see
7
+ THIRD_PARTY_NOTICES.md and THIRD_PARTY_LICENSES.txt.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/granttap-mcp)](https://www.npmjs.com/package/granttap-mcp)
4
4
  [![CI](https://github.com/sergii-ziborov/granttap-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/sergii-ziborov/granttap-mcp/actions/workflows/ci.yml)
5
- [![License: Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
5
+ [![License: Commercial](https://img.shields.io/badge/license-Commercial-orange.svg)](LICENSE)
6
6
 
7
7
  > **See what your coding agents are doing. Step in when they need you.**
8
8
 
@@ -29,9 +29,16 @@ requesting controller, and restricted to that native execution's admitted
29
29
  checkout. Received previews remain on the device for offline inspection.
30
30
  **Agents** opens nested execution conversations within the same Task.
31
31
 
32
- The MCP runtime, plugins, and CLI are open source under the Apache License 2.0.
33
- The Apple apps, Engine, relay, and website are separately licensed commercial
34
- products or source. Their licenses do not change this repository's Apache-2.0 grant.
32
+ Messages sent to a chat open in Codex Desktop continue that same conversation,
33
+ including while a turn is running. The runtime forwards them to the existing
34
+ desktop owner and preserves the delivery ID across retries. **Pause** reaches
35
+ that owner too. A confirmed receipt means Codex accepted the message; its answer
36
+ then arrives through the existing chat history.
37
+
38
+ The MCP runtime, plugins, and CLI use the GrantTap Commercial Source License.
39
+ Product use requires authorized GrantTap account access; official TestFlight
40
+ access remains free. Earlier releases through 0.8.75 retain their Apache-2.0
41
+ permissions. The Apple apps, Engine, relay, and website have their own terms.
35
42
 
36
43
  [Website](https://granttap.com) · [npm](https://www.npmjs.com/package/granttap-mcp) ·
37
44
  [Security model](SECURITY.md) ·
@@ -371,7 +378,7 @@ them. A lost connection keeps Claude's local question flow available.
371
378
 
372
379
  ## Install
373
380
 
374
- The local runtime and plugins are available under the [Apache License 2.0](LICENSE).
381
+ The local runtime and plugins are available under the [GrantTap Commercial Source License](LICENSE).
375
382
  The iPhone and Apple Watch app and hosted service have separate terms.
376
383
 
377
384
  Install the GrantTap plugin directly from this repository's marketplace:
@@ -700,7 +707,7 @@ typecheck, and release checks pass.
700
707
  ## License
701
708
 
702
709
  GrantTap MCP, its CLI, and bundled plugins are distributed under the
703
- [Apache License 2.0](LICENSE). The Mac, iPhone, iPad, and Apple Watch apps are licensed separately.
710
+ [GrantTap Commercial Source License](LICENSE). The Mac, iPhone, iPad, and Apple Watch apps are licensed separately.
704
711
  Third-party dependencies retain their own terms; see
705
712
  [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
706
713
 
@@ -1,6 +1,6 @@
1
1
  # Third-party notices
2
2
 
3
- GrantTap MCP is distributed under the Apache License 2.0. Third-party components
3
+ First-party GrantTap MCP is distributed under the GrantTap Commercial Source License. Third-party components
4
4
  retain their own licenses; the GrantTap license does not replace or restrict
5
5
  those terms.
6
6
 
@@ -9,7 +9,7 @@ dependencies. Their packages carry the applicable license texts:
9
9
 
10
10
  `THIRD_PARTY_LICENSES.txt` contains the original notices for the full resolved
11
11
  runtime dependency graph, including optional platform packages. Package
12
- boundaries and upstream grants remain separate from GrantTap's Apache license.
12
+ boundaries and upstream grants remain separate from GrantTap's first-party commercial license.
13
13
 
14
14
  | Component | License |
15
15
  | --- | --- |
@@ -31,4 +31,4 @@ complete license texts required by the exact dependency versions they contain.
31
31
  Provider storage inspection may invoke a separately installed SweepLoom CLI
32
32
  ([source](https://github.com/Weavatrix/sweeploom), MPL-2.0). No SweepLoom source or
33
33
  binary is included in this npm package. Its license remains independent; the
34
- GrantTap Apache-2.0 license does not apply to SweepLoom.
34
+ GrantTap first-party commercial license does not apply to SweepLoom.
@@ -18,4 +18,4 @@ offer; it never receives a pairing key in plaintext.
18
18
  The normal QR pairing path remains independent. A passkey authenticates the
19
19
  account; an ephemeral phone public key encrypts the pairing offer end to end.
20
20
 
21
- This runtime module is covered by the repository Apache License 2.0.
21
+ This runtime module is covered by the repository GrantTap Commercial Source License.
@@ -0,0 +1,8 @@
1
+ # Waiting-provider cancellation
2
+
3
+ `index.ts` binds one approval registration to its owning process's abort signal.
4
+ Ending that process cancels the durable request, publishes its terminal state
5
+ and releases the waiter. Cancellation never manufactures an Allow or answers a
6
+ question. Other live approval registrations and shared clients remain intact.
7
+
8
+ License: GrantTap Commercial Source License, in the repository-root `LICENSE`.
@@ -0,0 +1,20 @@
1
+ import type { ApprovalRequest } from "../../../../../packages/protocol/schema";
2
+ import type { RelayClient } from "../../../../../packages/core/relay-client";
3
+ import { markApprovalTerminal, resolvedFromOutcome, sendApprovalResolved, type ApprovalRegistrationHandle } from "../state";
4
+
5
+ /** Stop showing a provider interaction when its exact waiting process has ended. */
6
+ export function attachApprovalCancellation(client: RelayClient, request: ApprovalRequest, options: {
7
+ signal?: AbortSignal; handle?: ApprovalRegistrationHandle; cancel: () => void; close?: () => void;
8
+ }): () => void {
9
+ const abort = () => {
10
+ try {
11
+ const terminal = markApprovalTerminal(request.requestId, "cancelled", { decision: "deny",
12
+ decidedBy: "cancelled", note: "The agent stopped waiting for this answer.", sessionId: request.sessionId }, Date.now(), options.handle);
13
+ if (terminal.outcome) void sendApprovalResolved(client, resolvedFromOutcome(terminal.outcome, terminal.request)).catch(() => {});
14
+ } catch { /* Storage failure must still release the owned provider waiter. */ }
15
+ finally { options.cancel(); options.close?.(); }
16
+ };
17
+ options.signal?.addEventListener("abort", abort, { once: true });
18
+ if (options.signal?.aborted) abort();
19
+ return () => options.signal?.removeEventListener("abort", abort);
20
+ }
@@ -22,6 +22,7 @@ import { primeSessionKeys, sendSessionPayload } from "../host/session-keys";
22
22
  import { controllerPeerGate } from "../pairing/controllers";
23
23
  import { applyNetworkRoute } from "../device-network/settings";
24
24
  import { managedAdmissionOptions } from "../managed-admission";
25
+ import { attachApprovalCancellation } from "./cancellation";
25
26
 
26
27
  /**
27
28
  * Nobody answered — relay unreachable, or the phone never responded before the
@@ -37,6 +38,7 @@ export function isUnanswered(decision: ApprovalDecision): boolean {
37
38
 
38
39
  export type RequestApprovalOpts = {
39
40
  timeoutMs?: number;
41
+ signal?: AbortSignal;
40
42
  /** Inject a client in tests instead of opening a socket. */
41
43
  client?: RelayClient;
42
44
  };
@@ -61,8 +63,11 @@ export async function requestApproval(
61
63
  }
62
64
  const registrationHandle = registration.handle;
63
65
  primeSessionKeys(client);
66
+ const detachCancellation = attachApprovalCancellation(client, req, { signal: opts.signal, handle: registrationHandle,
67
+ cancel: () => cancelDecisionWait(), close: ownsClient ? () => client.close() : undefined });
64
68
 
65
69
  try {
70
+ if (opts.signal?.aborted) return failClosed(req, "The agent stopped waiting for this answer");
66
71
  if (ownsClient) {
67
72
  try {
68
73
  await client.connect();
@@ -131,6 +136,7 @@ export async function requestApproval(
131
136
  ).catch(() => {});
132
137
  return decisionFromOutcome(expired.outcome, req);
133
138
  } finally {
139
+ detachCancellation();
134
140
  cancelDecisionWait();
135
141
  if (ownsClient) client.close();
136
142
  }