@gwdn/nexus-mcp 0.8.11 → 0.10.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/LICENSE +190 -0
- package/README.md +85 -34
- package/dist/server.d.ts +2 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +24 -8
- package/dist/server.js.map +1 -1
- package/dist/tools/delete-task.d.ts +31 -0
- package/dist/tools/delete-task.d.ts.map +1 -0
- package/dist/tools/delete-task.js +36 -0
- package/dist/tools/delete-task.js.map +1 -0
- package/dist/tools/dispatches.d.ts +276 -0
- package/dist/tools/dispatches.d.ts.map +1 -0
- package/dist/tools/dispatches.js +290 -0
- package/dist/tools/dispatches.js.map +1 -0
- package/dist/tools/letters.d.ts +3 -3
- package/dist/tools/update-task-status.d.ts +9 -4
- package/dist/tools/update-task-status.d.ts.map +1 -1
- package/dist/tools/update-task-status.js +17 -2
- package/dist/tools/update-task-status.js.map +1 -1
- package/package.json +20 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding any notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 RelicFrog Holding UG (haftungsbeschraenkt)
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Nexus MCP
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@gwdn/nexus-mcp)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
[](https://nodejs.org)
|
|
4
6
|
|
|
5
|
-
MCP server for the Nexus platform. Provides the mediation layer between
|
|
6
|
-
local agent runtimes (terminals) and the Nexus HTTP API.
|
|
7
|
+
MCP server for the [Gatewarden Nexus](https://nexus.gatewarden.eu) platform. Provides the mediation layer between local agent runtimes and the Nexus HTTP API via the [Model Context Protocol](https://modelcontextprotocol.io) (stdio transport).
|
|
7
8
|
|
|
8
9
|
## Install
|
|
9
10
|
|
|
@@ -11,14 +12,14 @@ local agent runtimes (terminals) and the Nexus HTTP API.
|
|
|
11
12
|
npx @gwdn/nexus-mcp
|
|
12
13
|
```
|
|
13
14
|
|
|
14
|
-
Or add to your agent's MCP configuration:
|
|
15
|
+
Or add to your agent's MCP configuration (OpenCode, Claude Code, Cursor, etc.):
|
|
15
16
|
|
|
16
17
|
```json
|
|
17
18
|
{
|
|
18
19
|
"mcpServers": {
|
|
19
20
|
"nexus": {
|
|
20
21
|
"command": "npx",
|
|
21
|
-
"args": ["-y", "@gwdn/nexus-mcp"],
|
|
22
|
+
"args": ["-y", "@gwdn/nexus-mcp@latest"],
|
|
22
23
|
"env": {
|
|
23
24
|
"NEXUS_API_URL": "https://nexus.gatewarden.eu",
|
|
24
25
|
"NEXUS_PRIVATE_TOKEN": "nxs_pat_..."
|
|
@@ -30,17 +31,62 @@ Or add to your agent's MCP configuration:
|
|
|
30
31
|
|
|
31
32
|
## Architecture
|
|
32
33
|
|
|
33
|
-
The server exposes
|
|
34
|
-
(stdio transport). All data access goes through the Nexus API — the MCP server
|
|
35
|
-
has no direct database access.
|
|
34
|
+
The server exposes 61 tools across 4 layers. All data access goes through the Nexus HTTP API -- the MCP server has no direct database access.
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
|
|
36
|
+
```
|
|
37
|
+
Agent Runtime (OpenCode, Claude, Cursor, ...)
|
|
38
|
+
|
|
|
39
|
+
| stdio (MCP protocol)
|
|
40
|
+
v
|
|
41
|
+
nexus-mcp (this package)
|
|
42
|
+
|
|
|
43
|
+
| HTTPS (Bearer token auth)
|
|
44
|
+
v
|
|
45
|
+
Nexus API (nexus.gatewarden.eu)
|
|
46
|
+
|
|
|
47
|
+
v
|
|
48
|
+
Supabase (PostgreSQL + RLS)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Layer 1 -- Knowledge Access (5 tools)
|
|
52
|
+
|
|
53
|
+
| Tool | Description |
|
|
54
|
+
|------|-------------|
|
|
55
|
+
| `kb_search` | Full-text, semantic, or hybrid search across project entities |
|
|
56
|
+
| `kb_memory` | Structured project memory snapshot (ADRs, tasks, sessions, letters) |
|
|
57
|
+
| `kb_get` | Retrieve a specific entity by type and ID |
|
|
58
|
+
| `kb_related` | Find entities related to a given entity |
|
|
59
|
+
| `project_list` | List accessible projects |
|
|
60
|
+
|
|
61
|
+
### Layer 2 -- Coordination (23 tools)
|
|
62
|
+
|
|
63
|
+
| Group | Tools |
|
|
64
|
+
|-------|-------|
|
|
65
|
+
| **Sessions** | `session_create`, `session_close`, `session_list`, `session_append` |
|
|
66
|
+
| **Tasks** | `task_create`, `task_update`, `task_note`, `task_delete`, `task_list` |
|
|
67
|
+
| **Vault Letters** | `vl_create`, `vl_reply`, `vl_inbox`, `vl_outbox`, `vl_ack` |
|
|
68
|
+
| **Documents** | `doc_ingest`, `doc_list`, `doc_classify`, `doc_update`, `doc_delete` |
|
|
69
|
+
| **Skills** | `sk_list`, `sk_get`, `sk_create`, `sk_update`, `sk_activate`, `sk_assign`, `sk_unassign`, `sk_export` |
|
|
70
|
+
| **Decision Comments** | `dc_add`, `dc_list` |
|
|
71
|
+
| **Directives** | `pd_list`, `pd_get`, `pd_create`, `pd_update`, `pd_delete`, `pd_toggle`, `directive_export` |
|
|
72
|
+
|
|
73
|
+
### Layer 3 -- Governance (3 tools)
|
|
74
|
+
|
|
75
|
+
| Tool | Description |
|
|
76
|
+
|------|-------------|
|
|
77
|
+
| `adr_create` | Create a new ADR in draft status |
|
|
78
|
+
| `adr_submit` | Submit a draft ADR for review |
|
|
79
|
+
| `adr_decide` | Accept or reject an ADR under review |
|
|
80
|
+
|
|
81
|
+
### Layer 4 -- Reviews (5 tools)
|
|
82
|
+
|
|
83
|
+
| Tool | Description |
|
|
84
|
+
|------|-------------|
|
|
85
|
+
| `rv_list` | List reviews with optional filters |
|
|
86
|
+
| `rv_get` | Get review details by ID or entity |
|
|
87
|
+
| `rv_create` | Create a new review for a skill or agent |
|
|
88
|
+
| `rv_decide` | Transition a review state (submit, accept, reject, ...) |
|
|
89
|
+
| `rv_comment` | Add a comment to a review |
|
|
44
90
|
|
|
45
91
|
## Authentication
|
|
46
92
|
|
|
@@ -54,14 +100,17 @@ identity and enforces project-scoped RBAC.
|
|
|
54
100
|
| Variable | Required | Description |
|
|
55
101
|
|---|---|---|
|
|
56
102
|
| `NEXUS_API_URL` | yes | Nexus API base URL (e.g. `https://nexus.gatewarden.eu`) |
|
|
57
|
-
| `NEXUS_PRIVATE_TOKEN` | yes | nxs_pat_
|
|
103
|
+
| `NEXUS_PRIVATE_TOKEN` | yes | `nxs_pat_*` API token for identity resolution |
|
|
104
|
+
| `NEXUS_MODEL` | no | Model identifier for session metadata enrichment |
|
|
105
|
+
| `NEXUS_TOOLSTACK` | no | Toolstack identifier (e.g. `opencode`, `claude-code`) |
|
|
106
|
+
| `NEXUS_SEC_OPENAI_API_KEY` | no | OpenAI API key for semantic search embeddings |
|
|
58
107
|
|
|
59
108
|
## Development
|
|
60
109
|
|
|
61
110
|
```bash
|
|
62
111
|
npm install
|
|
63
112
|
npm run typecheck # TypeScript check
|
|
64
|
-
npm test # Run tests
|
|
113
|
+
npm test # Run tests (127 unit + 34 E2E)
|
|
65
114
|
npm run build # Compile to dist/
|
|
66
115
|
npm run dev # Run via tsx (development)
|
|
67
116
|
npm start # Run compiled JS (production)
|
|
@@ -70,12 +119,18 @@ npm start # Run compiled JS (production)
|
|
|
70
119
|
## Project Structure
|
|
71
120
|
|
|
72
121
|
```
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
122
|
+
nexus-mcp/
|
|
123
|
+
├── src/
|
|
124
|
+
│ ├── server.ts # MCP server entry point (stdio transport)
|
|
125
|
+
│ ├── auth.ts # Token-based identity resolution via Nexus API
|
|
126
|
+
│ ├── nexus-api.ts # HTTP client for Nexus API (nexusGet, nexusPost)
|
|
127
|
+
│ ├── machine-id.ts # Machine identification for session metadata
|
|
128
|
+
│ ├── tools/ # 24 tool modules (38 tools total)
|
|
129
|
+
│ └── __tests__/ # 12 test files (127 unit + 34 E2E)
|
|
130
|
+
├── LICENSE # Apache-2.0
|
|
131
|
+
├── SECURITY.md # Security policy
|
|
132
|
+
├── CONTRIBUTING.md # Contribution guidelines
|
|
133
|
+
└── CODE_OF_CONDUCT.md # Contributor Covenant
|
|
79
134
|
```
|
|
80
135
|
|
|
81
136
|
## Known Issues
|
|
@@ -84,30 +139,26 @@ src/
|
|
|
84
139
|
|
|
85
140
|
When using `npx` to run the MCP server, npm caches the resolved package in
|
|
86
141
|
`~/.npm/_npx/`. Subsequent invocations may continue to use the cached
|
|
87
|
-
(outdated) version even after a new release is published
|
|
88
|
-
terminals that were started before the update.
|
|
142
|
+
(outdated) version even after a new release is published.
|
|
89
143
|
|
|
90
144
|
**Symptoms:** MCP tools report an older version, or new tools/fixes are missing.
|
|
91
145
|
|
|
92
|
-
**Fix:**
|
|
146
|
+
**Fix:** Clear all npx caches for this package before starting your agent:
|
|
93
147
|
|
|
94
148
|
```bash
|
|
95
149
|
find ~/.npm/_npx -path "*/node_modules/@gwdn/nexus-mcp" -type d \
|
|
96
150
|
-exec rm -rf {} + 2>/dev/null
|
|
97
151
|
```
|
|
98
152
|
|
|
99
|
-
|
|
100
|
-
cache entry.
|
|
101
|
-
|
|
102
|
-
> **Tip:** To avoid this entirely, pin `@latest` in your MCP config args:
|
|
153
|
+
> **Tip:** Pin `@latest` in your MCP config args to always resolve the newest version:
|
|
103
154
|
> `["--yes", "@gwdn/nexus-mcp@latest"]`
|
|
104
155
|
|
|
105
156
|
## Related
|
|
106
157
|
|
|
107
|
-
- [
|
|
108
|
-
- [nexus-cli](https://github.com/gwnexus/nexus-cli)
|
|
158
|
+
- [Gatewarden Nexus](https://nexus.gatewarden.eu) -- Platform (Next.js / Supabase)
|
|
159
|
+
- [nexus-cli](https://github.com/gwnexus/nexus-cli) -- Workspace CLI (Rust)
|
|
160
|
+
- [nexus-link](https://github.com/gwnexus/nexus-link) -- Hardware agent (Rust)
|
|
109
161
|
|
|
110
162
|
## License
|
|
111
163
|
|
|
112
|
-
|
|
113
|
-
RelicFrog Holding UG (haftungsbeschränkt).
|
|
164
|
+
[Apache-2.0](LICENSE) -- Copyright (c) 2026 RelicFrog Holding UG (haftungsbeschraenkt)
|
package/dist/server.d.ts
CHANGED
|
@@ -25,8 +25,9 @@
|
|
|
25
25
|
* - vl_outbox: List letters sent by the calling agent/user
|
|
26
26
|
* - vl_ack: Acknowledge receipt of a new vault letter
|
|
27
27
|
* - task_create: Create a task in a project
|
|
28
|
-
* - task_update: Update task status, priority, or
|
|
28
|
+
* - task_update: Update task status, priority, assignee, title, or description
|
|
29
29
|
* - task_note: Append a note to a task (append-only)
|
|
30
|
+
* - task_delete: Delete a task (hard delete)
|
|
30
31
|
* - task_list: List tasks for a project with filters
|
|
31
32
|
* - dc_add: Add a comment to an ADR (append-only)
|
|
32
33
|
* - dc_list: List comments for an ADR
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AACA
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuEG"}
|
package/dist/server.js
CHANGED
|
@@ -25,8 +25,9 @@
|
|
|
25
25
|
* - vl_outbox: List letters sent by the calling agent/user
|
|
26
26
|
* - vl_ack: Acknowledge receipt of a new vault letter
|
|
27
27
|
* - task_create: Create a task in a project
|
|
28
|
-
* - task_update: Update task status, priority, or
|
|
28
|
+
* - task_update: Update task status, priority, assignee, title, or description
|
|
29
29
|
* - task_note: Append a note to a task (append-only)
|
|
30
|
+
* - task_delete: Delete a task (hard delete)
|
|
30
31
|
* - task_list: List tasks for a project with filters
|
|
31
32
|
* - dc_add: Add a comment to an ADR (append-only)
|
|
32
33
|
* - dc_list: List comments for an ADR
|
|
@@ -89,7 +90,7 @@ import { classifyDocument, classifyDocumentSchema, } from './tools/classify-docu
|
|
|
89
90
|
import { updateDocument, updateDocumentSchema, } from './tools/update-document.js';
|
|
90
91
|
import { deleteDocument, deleteDocumentSchema, } from './tools/delete-document.js';
|
|
91
92
|
import { acknowledgeLetter, acknowledgeLetterSchema, listInbox, listInboxSchema, listOutbox, listOutboxSchema, } from './tools/letter-inbox.js';
|
|
92
|
-
import { createLetter, createLetterSchema, replyLetter, replyLetterSchema, } from './tools/
|
|
93
|
+
import { createLetter, createLetterSchema, replyLetter, replyLetterSchema, dispatchCreate, dispatchCreateSchema, dispatchReply, dispatchReplySchema, dispatchInbox, dispatchInboxSchema, dispatchOutbox, dispatchOutboxSchema, dispatchAck, dispatchAckSchema, dispatchAssign, dispatchAssignSchema, dispatchForward, dispatchForwardSchema, dispatchResolve, dispatchResolveSchema, dispatchClose, dispatchCloseSchema, dispatchSweep, dispatchSweepSchema, dispatchGet, dispatchGetSchema, dispatchRelated, dispatchRelatedSchema, } from './tools/dispatches.js';
|
|
93
94
|
import { listDocuments, listDocumentsSchema, } from './tools/list-documents.js';
|
|
94
95
|
import { listTasks, listTasksSchema } from './tools/list-tasks.js';
|
|
95
96
|
import { closeSession, closeSessionSchema, createSession, createSessionSchema, listOpenSessions, listOpenSessionsSchema, } from './tools/sessions.js';
|
|
@@ -97,6 +98,7 @@ import { skActivate, skActivateSchema, skCreate, skCreateSchema, skGet, skGetSch
|
|
|
97
98
|
import { skAssign, skAssignSchema, skExport, skExportSchema, skUnassign, skUnassignSchema, } from './tools/skill-assign.js';
|
|
98
99
|
import { pdList, pdListSchema, pdGet, pdGetSchema, pdCreate, pdCreateSchema, pdUpdate, pdUpdateSchema, pdDelete, pdDeleteSchema, pdToggle, pdToggleSchema, directiveExport, directiveExportSchema, } from './tools/directives.js';
|
|
99
100
|
import { updateTaskStatus, updateTaskStatusSchema, } from './tools/update-task-status.js';
|
|
101
|
+
import { deleteTask, deleteTaskSchema } from './tools/delete-task.js';
|
|
100
102
|
// Layer 3: Governance
|
|
101
103
|
import { createAdrDraft, createAdrDraftSchema, recordAdrDecision, recordAdrDecisionSchema, submitAdrReview, submitAdrReviewSchema, } from './tools/governance.js';
|
|
102
104
|
// Layer 4: Reviews
|
|
@@ -138,15 +140,29 @@ server.tool('project_list', 'List accessible projects for the authenticated user
|
|
|
138
140
|
// ---------------------------------------------------------------------------
|
|
139
141
|
// Layer 2: Coordination tools
|
|
140
142
|
// ---------------------------------------------------------------------------
|
|
141
|
-
server.tool('vl_create', 'Create a new
|
|
142
|
-
server.tool('vl_reply', '
|
|
143
|
-
server.tool('vl_inbox', 'List
|
|
144
|
-
server.tool('vl_outbox', 'List
|
|
145
|
-
server.tool('vl_ack', 'Acknowledge receipt of
|
|
143
|
+
server.tool('vl_create', 'Create a new Nexus Dispatch for agent-to-agent or agent-to-human coordination (legacy alias for dispatch_create). Returns the new dispatch ID and status.', createLetterSchema, withIdentity(createLetter));
|
|
144
|
+
server.tool('vl_reply', 'Append a reply to an existing Nexus Dispatch (legacy alias for dispatch_reply). Enforces append-only semantics.', replyLetterSchema, withIdentity(replyLetter));
|
|
145
|
+
server.tool('vl_inbox', 'List Dispatches addressed to the calling agent or project (legacy alias for dispatch_inbox). Ordered by blocking status and recency.', listInboxSchema, withIdentity(listInbox));
|
|
146
|
+
server.tool('vl_outbox', 'List Dispatches sent by the calling agent or project (legacy alias for dispatch_outbox). Ordered by recency.', listOutboxSchema, withIdentity(listOutbox));
|
|
147
|
+
server.tool('vl_ack', 'Acknowledge receipt of an open Dispatch (legacy alias for dispatch_ack). Transitions from open to acknowledged.', acknowledgeLetterSchema, withIdentity(acknowledgeLetter));
|
|
148
|
+
// ── Nexus Dispatch tools (dispatch_*) — ADR-0052 ──────────────────────────────
|
|
149
|
+
server.tool('dispatch_create', 'Create a new routed Nexus Dispatch for agent-to-agent, agent-to-human, or cross-project coordination. Routing is derived from project context and actor resolution.', dispatchCreateSchema, withIdentity(dispatchCreate));
|
|
150
|
+
server.tool('dispatch_reply', 'Append a reply or timeline entry to an existing Dispatch. Optionally update the Dispatch status (enforces allowed transitions).', dispatchReplySchema, withIdentity(dispatchReply));
|
|
151
|
+
server.tool('dispatch_inbox', 'List Dispatches addressed to the calling agent or project. Supports scope filters (blocking, waiting_on_me, cross_project) and status filters.', dispatchInboxSchema, withIdentity(dispatchInbox));
|
|
152
|
+
server.tool('dispatch_outbox', 'List Dispatches created by the calling agent or project. Ordered by recency.', dispatchOutboxSchema, withIdentity(dispatchOutbox));
|
|
153
|
+
server.tool('dispatch_ack', 'Acknowledge receipt of an open Dispatch. Transitions status from open to acknowledged and appends a system note.', dispatchAckSchema, withIdentity(dispatchAck));
|
|
154
|
+
server.tool('dispatch_assign', 'Assign or reassign a Dispatch to an actor. Resolves the actor within the project registry.', dispatchAssignSchema, withIdentity(dispatchAssign));
|
|
155
|
+
server.tool('dispatch_forward', 'Forward a Dispatch to another actor or linked project. Requires a project_link between source and target.', dispatchForwardSchema, withIdentity(dispatchForward));
|
|
156
|
+
server.tool('dispatch_resolve', 'Mark a Dispatch as resolved with an optional resolution note. Appends the resolution as a message and records resolved_at.', dispatchResolveSchema, withIdentity(dispatchResolve));
|
|
157
|
+
server.tool('dispatch_close', 'Close a resolved Dispatch. Terminal state — no further transitions allowed after closing.', dispatchCloseSchema, withIdentity(dispatchClose));
|
|
158
|
+
server.tool('dispatch_sweep', 'Return a prioritized session-start overview of relevant Dispatches: blocking, overdue, waiting-on-me, new assignments, and recent updates. Use at the start of every agent session.', dispatchSweepSchema, withIdentity(dispatchSweep));
|
|
159
|
+
server.tool('dispatch_get', 'Fetch a full Dispatch with its append-only message timeline, participant list, and metadata.', dispatchGetSchema, withIdentity(dispatchGet));
|
|
160
|
+
server.tool('dispatch_related', 'Find structurally related Dispatches (same project pair, same type). Useful for loop prevention and duplicate detection before creating new Dispatches.', dispatchRelatedSchema, withIdentity(dispatchRelated));
|
|
146
161
|
server.tool('task_create', 'Create a new task within a project scope. Returns the new task ID.', createTaskSchema, withIdentity(createTask));
|
|
147
|
-
server.tool('task_update', 'Update
|
|
162
|
+
server.tool('task_update', 'Update a task: status, priority, assignee, title, or description. All fields except task_id are optional — at least one must be provided. Status changes are automatically recorded in the audit trail.', updateTaskStatusSchema, withIdentity(updateTaskStatus));
|
|
148
163
|
server.tool('task_note', 'Append a note to an existing task. Notes are append-only and maintain a chronological audit trail. Useful for recording progress, blockers, or decisions.', addTaskNoteSchema, withIdentity(addTaskNote));
|
|
149
164
|
server.tool('task_list', 'List tasks for a project with optional status filtering. Returns tasks ordered by creation date (newest first).', listTasksSchema, withIdentity(listTasks));
|
|
165
|
+
server.tool('task_delete', 'Delete a task by UUID. Hard delete — irreversible. Use only for cleanup of erroneous or duplicate tasks.', deleteTaskSchema, withIdentity(deleteTask));
|
|
150
166
|
server.tool('doc_ingest', 'Push text or markdown content into a project knowledge base. Creates an ingest item that can later be classified. Useful for agents to persist research results, generated documents, or extracted knowledge.', ingestDocumentSchema, withIdentity(ingestDocument));
|
|
151
167
|
server.tool('doc_list', 'List ingested documents for a project with optional source filtering. Returns documents ordered by creation date (newest first).', listDocumentsSchema, withIdentity(listDocuments));
|
|
152
168
|
server.tool('doc_classify', 'Update the classification of an ingest item. Valid classifications: unclassified, research_note, planning_item, decision_input, reference, archive.', classifyDocumentSchema, withIdentity(classifyDocument));
|
package/dist/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AACA
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAA;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAEhF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,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AAc,EACd,YAAY,CAAC,QAAQ,CAAC,CACvB,CAAA;AAED,MAAM,CAAC,IAAI,CACT,WAAW,EACX,4JAA4J,EAC5J,cAAc,EACd,YAAY,CAAC,QAAQ,CAAC,CACvB,CAAA;AAED,MAAM,CAAC,IAAI,CACT,YAAY,EACZ,kJAAkJ,EAClJ,eAAe,EACf,YAAY,CAAC,SAAS,CAAC,CACxB,CAAA;AAED,8EAA8E;AAC9E,QAAQ;AACR,8EAA8E;AAE9E,KAAK,UAAU,IAAI;IACjB,yEAAyE;IACzE,MAAM,YAAY,EAAE,CAAA;IAEpB,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAA;IAC5C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;IAC/B,OAAO,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAA;AACtD,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,0BAA0B,EAAE,GAAG,CAAC,CAAA;IAC9C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* task_delete -- Layer 2 Coordination
|
|
3
|
+
*
|
|
4
|
+
* Hard-deletes a task by UUID. Use with care — this is irreversible.
|
|
5
|
+
* Delegates to POST /api/mcp/tasks (action: task_delete).
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
export declare const deleteTaskSchema: {
|
|
9
|
+
task_id: z.ZodString;
|
|
10
|
+
agent_id: z.ZodOptional<z.ZodString>;
|
|
11
|
+
};
|
|
12
|
+
type DeleteTaskArgs = {
|
|
13
|
+
task_id: string;
|
|
14
|
+
user_id: string;
|
|
15
|
+
agent_id?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function deleteTask(args: DeleteTaskArgs): Promise<{
|
|
18
|
+
content: {
|
|
19
|
+
type: "text";
|
|
20
|
+
text: string;
|
|
21
|
+
}[];
|
|
22
|
+
isError: boolean;
|
|
23
|
+
} | {
|
|
24
|
+
content: {
|
|
25
|
+
type: "text";
|
|
26
|
+
text: string;
|
|
27
|
+
}[];
|
|
28
|
+
isError?: undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=delete-task.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-task.d.ts","sourceRoot":"","sources":["../../src/tools/delete-task.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,gBAAgB;;;CAG5B,CAAA;AAED,KAAK,cAAc,GAAG;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,cAAc;;;;;;;;;;;;GAwBpD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* task_delete -- Layer 2 Coordination
|
|
3
|
+
*
|
|
4
|
+
* Hard-deletes a task by UUID. Use with care — this is irreversible.
|
|
5
|
+
* Delegates to POST /api/mcp/tasks (action: task_delete).
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
import { nexusPost } from '../nexus-api.js';
|
|
9
|
+
export const deleteTaskSchema = {
|
|
10
|
+
task_id: z.string().uuid().describe('Task UUID to delete'),
|
|
11
|
+
agent_id: z.string().max(200).optional().describe('Agent identifier if applicable'),
|
|
12
|
+
};
|
|
13
|
+
export async function deleteTask(args) {
|
|
14
|
+
const result = await nexusPost('/api/mcp/tasks', {
|
|
15
|
+
action: 'task_delete',
|
|
16
|
+
task_id: args.task_id,
|
|
17
|
+
agent_id: args.agent_id,
|
|
18
|
+
});
|
|
19
|
+
if (!result.ok) {
|
|
20
|
+
return {
|
|
21
|
+
content: [
|
|
22
|
+
{
|
|
23
|
+
type: 'text',
|
|
24
|
+
text: JSON.stringify({ error: result.error }, null, 2),
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
isError: true,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
content: [
|
|
32
|
+
{ type: 'text', text: JSON.stringify(result.data, null, 2) },
|
|
33
|
+
],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=delete-task.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-task.js","sourceRoot":"","sources":["../../src/tools/delete-task.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;CACpF,CAAA;AAQD,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,IAAoB;IACnD,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,gBAAgB,EAAE;QAC/C,MAAM,EAAE,aAAa;QACrB,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ;KACxB,CAAC,CAAA;IAEF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,IAAI,CAAC,SAAS,CAA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