@gwdn/nexus-mcp 0.8.10 → 0.9.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.
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
- # nexus-mcp
1
+ # Nexus MCP
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/@gwdn/nexus-mcp)](https://www.npmjs.com/package/@gwdn/nexus-mcp)
4
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
5
+ [![Node.js 20+](https://img.shields.io/badge/node-20%2B-green.svg)](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 38 tools across 4 layers via the Model Context Protocol
34
- (stdio transport). All data access goes through the Nexus API — the MCP server
35
- has no direct database access.
34
+ The server exposes 38 tools across 4 layers. All data access goes through the Nexus HTTP API -- the MCP server has no direct database access.
36
35
 
37
- - **Layer 1 — Knowledge Access:** kb_search, kb_memory, kb_get, kb_related, project_list
38
- - **Layer 2 — Coordination:** vault letters (vl_create/vl_reply/vl_inbox/vl_outbox/vl_ack),
39
- tasks (task_create/task_update/task_note/task_list), sessions (session_create/session_list/session_close/session_append),
40
- decision comments (dc_add/dc_list), documents (doc_ingest/doc_list),
41
- skills (sk_list/sk_get/sk_create/sk_update/sk_activate/sk_assign/sk_unassign/sk_export)
42
- - **Layer 3 — Governance:** ADR lifecycle (adr_create/adr_submit/adr_decide)
43
- - **Layer 4 — Reviews:** entity reviews (rv_list/rv_get/rv_create/rv_decide/rv_comment)
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 (22 tools)
62
+
63
+ | Group | Tools |
64
+ |-------|-------|
65
+ | **Sessions** | `session_create`, `session_close`, `session_list`, `session_append` |
66
+ | **Tasks** | `task_create`, `task_update`, `task_list`, `task_note` |
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_* API token for identity resolution |
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
- src/
74
- server.ts # MCP server entry point (stdio transport)
75
- auth.ts # Token-based identity resolution via Nexus API
76
- nexus-api.ts # HTTP client for Nexus API (nexusGet, nexusPost)
77
- tools/ # Tool modules (38 tools total)
78
- __tests__/ # Unit tests (112) and E2E integration tests (34)
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 — especially in
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:** Before starting OpenCode, clear all npx caches for this package:
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
- Then start OpenCode normally. npx will fetch the latest version into a fresh
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
- - [nexus](https://github.com/gwnexus/nexus-hub) — Backend + Frontend (Next.js/Supabase/Netlify)
108
- - [nexus-cli](https://github.com/gwnexus/nexus-cli) — Rust CLI client
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
- Nexus is a product of the Nexus Product Group, owned by
113
- RelicFrog Holding UG (haftungsbeschränkt).
164
+ [Apache-2.0](LICENSE) -- Copyright (c) 2026 RelicFrog Holding UG (haftungsbeschraenkt)
package/dist/server.js CHANGED
@@ -89,7 +89,7 @@ import { classifyDocument, classifyDocumentSchema, } from './tools/classify-docu
89
89
  import { updateDocument, updateDocumentSchema, } from './tools/update-document.js';
90
90
  import { deleteDocument, deleteDocumentSchema, } from './tools/delete-document.js';
91
91
  import { acknowledgeLetter, acknowledgeLetterSchema, listInbox, listInboxSchema, listOutbox, listOutboxSchema, } from './tools/letter-inbox.js';
92
- import { createLetter, createLetterSchema, replyLetter, replyLetterSchema, } from './tools/letters.js';
92
+ 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
93
  import { listDocuments, listDocumentsSchema, } from './tools/list-documents.js';
94
94
  import { listTasks, listTasksSchema } from './tools/list-tasks.js';
95
95
  import { closeSession, closeSessionSchema, createSession, createSessionSchema, listOpenSessions, listOpenSessionsSchema, } from './tools/sessions.js';
@@ -138,11 +138,24 @@ server.tool('project_list', 'List accessible projects for the authenticated user
138
138
  // ---------------------------------------------------------------------------
139
139
  // Layer 2: Coordination tools
140
140
  // ---------------------------------------------------------------------------
141
- server.tool('vl_create', 'Create a new vault letter for agent-to-agent or agent-to-human coordination. Returns the new letter ID and status.', createLetterSchema, withIdentity(createLetter));
142
- server.tool('vl_reply', 'Reply to an existing vault letter with a new message. Optionally update the letter status. Enforces append-only semantics.', replyLetterSchema, withIdentity(replyLetter));
143
- server.tool('vl_inbox', 'List vault letters addressed to the calling agent or user. Returns letters scoped to the given project, ordered by blocking status and recency. Supports status filtering.', listInboxSchema, withIdentity(listInbox));
144
- server.tool('vl_outbox', 'List vault letters sent by the calling agent or user. Returns letters scoped to the given project, ordered by recency. Supports status filtering.', listOutboxSchema, withIdentity(listOutbox));
145
- server.tool('vl_ack', 'Acknowledge receipt of a new vault letter. Transitions the letter from new to acknowledged status and appends an acknowledgment message.', acknowledgeLetterSchema, withIdentity(acknowledgeLetter));
141
+ 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));
142
+ server.tool('vl_reply', 'Append a reply to an existing Nexus Dispatch (legacy alias for dispatch_reply). Enforces append-only semantics.', replyLetterSchema, withIdentity(replyLetter));
143
+ 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));
144
+ server.tool('vl_outbox', 'List Dispatches sent by the calling agent or project (legacy alias for dispatch_outbox). Ordered by recency.', listOutboxSchema, withIdentity(listOutbox));
145
+ server.tool('vl_ack', 'Acknowledge receipt of an open Dispatch (legacy alias for dispatch_ack). Transitions from open to acknowledged.', acknowledgeLetterSchema, withIdentity(acknowledgeLetter));
146
+ // ── Nexus Dispatch tools (dispatch_*) — ADR-0052 ──────────────────────────────
147
+ 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));
148
+ 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));
149
+ 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));
150
+ server.tool('dispatch_outbox', 'List Dispatches created by the calling agent or project. Ordered by recency.', dispatchOutboxSchema, withIdentity(dispatchOutbox));
151
+ server.tool('dispatch_ack', 'Acknowledge receipt of an open Dispatch. Transitions status from open to acknowledged and appends a system note.', dispatchAckSchema, withIdentity(dispatchAck));
152
+ server.tool('dispatch_assign', 'Assign or reassign a Dispatch to an actor. Resolves the actor within the project registry.', dispatchAssignSchema, withIdentity(dispatchAssign));
153
+ server.tool('dispatch_forward', 'Forward a Dispatch to another actor or linked project. Requires a project_link between source and target.', dispatchForwardSchema, withIdentity(dispatchForward));
154
+ 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));
155
+ server.tool('dispatch_close', 'Close a resolved Dispatch. Terminal state — no further transitions allowed after closing.', dispatchCloseSchema, withIdentity(dispatchClose));
156
+ 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));
157
+ server.tool('dispatch_get', 'Fetch a full Dispatch with its append-only message timeline, participant list, and metadata.', dispatchGetSchema, withIdentity(dispatchGet));
158
+ 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
159
  server.tool('task_create', 'Create a new task within a project scope. Returns the new task ID.', createTaskSchema, withIdentity(createTask));
147
160
  server.tool('task_update', 'Update the status of an existing task. Optionally change priority or assignee. Automatically records a status-change note for audit trail.', updateTaskStatusSchema, withIdentity(updateTaskStatus));
148
161
  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));
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAA;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAEhF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAErD,4BAA4B;AAC5B,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACxE,OAAO,EACL,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EACL,eAAe,EACf,qBAAqB,GACtB,MAAM,6BAA6B,CAAA;AAEpC,wBAAwB;AACxB,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AACzE,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACrE,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACL,cAAc,EACd,oBAAoB,GACrB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACL,cAAc,EACd,oBAAoB,G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C,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,276 @@
1
+ /**
2
+ * Nexus Dispatch Tools — ADR-0052
3
+ *
4
+ * dispatch_create, dispatch_reply, dispatch_inbox, dispatch_outbox,
5
+ * dispatch_ack, dispatch_assign, dispatch_forward, dispatch_resolve,
6
+ * dispatch_close, dispatch_sweep, dispatch_get, dispatch_related
7
+ *
8
+ * Legacy vl_* tools are thin wrappers at the bottom of this file.
9
+ * All tools delegate to POST /api/mcp/dispatches.
10
+ */
11
+ import { z } from 'zod';
12
+ export declare const dispatchCreateSchema: {
13
+ project_id: z.ZodString;
14
+ to_project_id: z.ZodOptional<z.ZodString>;
15
+ to_actor: z.ZodOptional<z.ZodString>;
16
+ title: z.ZodString;
17
+ body: z.ZodString;
18
+ type: z.ZodDefault<z.ZodEnum<{
19
+ question: "question";
20
+ bug_report: "bug_report";
21
+ implementation_request: "implementation_request";
22
+ review_request: "review_request";
23
+ decision_notice: "decision_notice";
24
+ blocker: "blocker";
25
+ status_update: "status_update";
26
+ handover: "handover";
27
+ }>>;
28
+ priority: z.ZodDefault<z.ZodEnum<{
29
+ low: "low";
30
+ high: "high";
31
+ urgent: "urgent";
32
+ normal: "normal";
33
+ }>>;
34
+ blocking: z.ZodDefault<z.ZodBoolean>;
35
+ due_at: z.ZodOptional<z.ZodString>;
36
+ agent_id: z.ZodOptional<z.ZodString>;
37
+ };
38
+ export declare function dispatchCreate(args: any): Promise<{
39
+ content: {
40
+ type: "text";
41
+ text: string;
42
+ }[];
43
+ }>;
44
+ export declare const dispatchReplySchema: {
45
+ dispatch_id: z.ZodString;
46
+ body: z.ZodString;
47
+ message_type: z.ZodOptional<z.ZodEnum<{
48
+ blocker: "blocker";
49
+ reply: "reply";
50
+ clarification: "clarification";
51
+ progress: "progress";
52
+ resolution: "resolution";
53
+ review_note: "review_note";
54
+ context: "context";
55
+ system_note: "system_note";
56
+ }>>;
57
+ status: z.ZodOptional<z.ZodEnum<{
58
+ open: "open";
59
+ in_progress: "in_progress";
60
+ blocked: "blocked";
61
+ cancelled: "cancelled";
62
+ acknowledged: "acknowledged";
63
+ waiting_for_requester: "waiting_for_requester";
64
+ needs_review: "needs_review";
65
+ resolved: "resolved";
66
+ closed: "closed";
67
+ }>>;
68
+ agent_id: z.ZodOptional<z.ZodString>;
69
+ };
70
+ export declare function dispatchReply(args: any): Promise<{
71
+ content: {
72
+ type: "text";
73
+ text: string;
74
+ }[];
75
+ }>;
76
+ export declare const dispatchInboxSchema: {
77
+ project_id: z.ZodString;
78
+ scope: z.ZodOptional<z.ZodEnum<{
79
+ project: "project";
80
+ blocking: "blocking";
81
+ waiting_on_me: "waiting_on_me";
82
+ cross_project: "cross_project";
83
+ watching: "watching";
84
+ }>>;
85
+ status_filter: z.ZodOptional<z.ZodArray<z.ZodString>>;
86
+ include_closed: z.ZodOptional<z.ZodBoolean>;
87
+ limit: z.ZodOptional<z.ZodNumber>;
88
+ };
89
+ export declare function dispatchInbox(args: any): Promise<{
90
+ content: {
91
+ type: "text";
92
+ text: string;
93
+ }[];
94
+ }>;
95
+ export declare const dispatchOutboxSchema: {
96
+ project_id: z.ZodString;
97
+ status_filter: z.ZodOptional<z.ZodArray<z.ZodString>>;
98
+ limit: z.ZodOptional<z.ZodNumber>;
99
+ };
100
+ export declare function dispatchOutbox(args: any): Promise<{
101
+ content: {
102
+ type: "text";
103
+ text: string;
104
+ }[];
105
+ }>;
106
+ export declare const dispatchAckSchema: {
107
+ dispatch_id: z.ZodString;
108
+ agent_id: z.ZodOptional<z.ZodString>;
109
+ };
110
+ export declare function dispatchAck(args: any): Promise<{
111
+ content: {
112
+ type: "text";
113
+ text: string;
114
+ }[];
115
+ }>;
116
+ export declare const dispatchAssignSchema: {
117
+ dispatch_id: z.ZodString;
118
+ to_actor: z.ZodString;
119
+ agent_id: z.ZodOptional<z.ZodString>;
120
+ };
121
+ export declare function dispatchAssign(args: any): Promise<{
122
+ content: {
123
+ type: "text";
124
+ text: string;
125
+ }[];
126
+ }>;
127
+ export declare const dispatchForwardSchema: {
128
+ dispatch_id: z.ZodString;
129
+ to_project_id: z.ZodString;
130
+ to_actor: z.ZodOptional<z.ZodString>;
131
+ agent_id: z.ZodOptional<z.ZodString>;
132
+ };
133
+ export declare function dispatchForward(args: any): Promise<{
134
+ content: {
135
+ type: "text";
136
+ text: string;
137
+ }[];
138
+ }>;
139
+ export declare const dispatchResolveSchema: {
140
+ dispatch_id: z.ZodString;
141
+ resolution: z.ZodOptional<z.ZodString>;
142
+ agent_id: z.ZodOptional<z.ZodString>;
143
+ };
144
+ export declare function dispatchResolve(args: any): Promise<{
145
+ content: {
146
+ type: "text";
147
+ text: string;
148
+ }[];
149
+ }>;
150
+ export declare const dispatchCloseSchema: {
151
+ dispatch_id: z.ZodString;
152
+ agent_id: z.ZodOptional<z.ZodString>;
153
+ };
154
+ export declare function dispatchClose(args: any): Promise<{
155
+ content: {
156
+ type: "text";
157
+ text: string;
158
+ }[];
159
+ }>;
160
+ export declare const dispatchGetSchema: {
161
+ dispatch_id: z.ZodString;
162
+ };
163
+ export declare function dispatchGet(args: any): Promise<{
164
+ content: {
165
+ type: "text";
166
+ text: string;
167
+ }[];
168
+ }>;
169
+ export declare const dispatchSweepSchema: {
170
+ project_id: z.ZodString;
171
+ include_blocking: z.ZodOptional<z.ZodBoolean>;
172
+ include_overdue: z.ZodOptional<z.ZodBoolean>;
173
+ include_waiting_on_me: z.ZodOptional<z.ZodBoolean>;
174
+ include_recent_updates: z.ZodOptional<z.ZodBoolean>;
175
+ acknowledge_non_blocking: z.ZodOptional<z.ZodBoolean>;
176
+ limit: z.ZodOptional<z.ZodNumber>;
177
+ };
178
+ export declare function dispatchSweep(args: any): Promise<{
179
+ content: {
180
+ type: "text";
181
+ text: string;
182
+ }[];
183
+ }>;
184
+ export declare const dispatchRelatedSchema: {
185
+ dispatch_id: z.ZodOptional<z.ZodString>;
186
+ project_id: z.ZodOptional<z.ZodString>;
187
+ include_closed: z.ZodOptional<z.ZodBoolean>;
188
+ limit: z.ZodOptional<z.ZodNumber>;
189
+ };
190
+ export declare function dispatchRelated(args: any): Promise<{
191
+ content: {
192
+ type: "text";
193
+ text: string;
194
+ }[];
195
+ }>;
196
+ export declare const createLetterSchema: {
197
+ project_id: z.ZodString;
198
+ from_project_id: z.ZodOptional<z.ZodString>;
199
+ from_actor: z.ZodString;
200
+ to_actor: z.ZodString;
201
+ subject: z.ZodString;
202
+ body: z.ZodString;
203
+ priority: z.ZodDefault<z.ZodEnum<{
204
+ low: "low";
205
+ high: "high";
206
+ urgent: "urgent";
207
+ normal: "normal";
208
+ }>>;
209
+ blocking: z.ZodDefault<z.ZodBoolean>;
210
+ thread_id: z.ZodOptional<z.ZodString>;
211
+ agent_id: z.ZodOptional<z.ZodString>;
212
+ };
213
+ export declare function createLetter(args: any): Promise<{
214
+ content: {
215
+ type: "text";
216
+ text: string;
217
+ }[];
218
+ }>;
219
+ export declare const replyLetterSchema: {
220
+ letter_id: z.ZodString;
221
+ body: z.ZodString;
222
+ message_type: z.ZodOptional<z.ZodEnum<{
223
+ clarification: "clarification";
224
+ review_note: "review_note";
225
+ context: "context";
226
+ response: "response";
227
+ follow_up: "follow_up";
228
+ }>>;
229
+ new_status: z.ZodOptional<z.ZodEnum<{
230
+ in_progress: "in_progress";
231
+ blocked: "blocked";
232
+ acknowledged: "acknowledged";
233
+ needs_review: "needs_review";
234
+ closed: "closed";
235
+ answered: "answered";
236
+ }>>;
237
+ agent_id: z.ZodOptional<z.ZodString>;
238
+ };
239
+ export declare function replyLetter(args: any): Promise<{
240
+ content: {
241
+ type: "text";
242
+ text: string;
243
+ }[];
244
+ }>;
245
+ export declare const letterInboxSchema: {
246
+ project_id: z.ZodString;
247
+ status_filter: z.ZodOptional<z.ZodArray<z.ZodString>>;
248
+ limit: z.ZodOptional<z.ZodNumber>;
249
+ };
250
+ export declare function letterInbox(args: any): Promise<{
251
+ content: {
252
+ type: "text";
253
+ text: string;
254
+ }[];
255
+ }>;
256
+ export declare const letterOutboxSchema: {
257
+ project_id: z.ZodString;
258
+ status_filter: z.ZodOptional<z.ZodArray<z.ZodString>>;
259
+ limit: z.ZodOptional<z.ZodNumber>;
260
+ };
261
+ export declare function letterOutbox(args: any): Promise<{
262
+ content: {
263
+ type: "text";
264
+ text: string;
265
+ }[];
266
+ }>;
267
+ export declare const ackLetterSchema: {
268
+ letter_id: z.ZodString;
269
+ };
270
+ export declare function ackLetter(args: any): Promise<{
271
+ content: {
272
+ type: "text";
273
+ text: string;
274
+ }[];
275
+ }>;
276
+ //# sourceMappingURL=dispatches.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dispatches.d.ts","sourceRoot":"","sources":["../../src/tools/dispatches.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA8BvB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;CAqBhC,CAAA;AAGD,wBAAsB,cAAc,CAAC,IAAI,EAAE,GAAG;;;;;GAE7C;AAID,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;CAW/B,CAAA;AAGD,wBAAsB,aAAa,CAAC,IAAI,EAAE,GAAG;;;;;GAE5C;AAID,eAAO,MAAM,mBAAmB;;;;;;;;;;;;CAW/B,CAAA;AAGD,wBAAsB,aAAa,CAAC,IAAI,EAAE,GAAG;;;;;GAE5C;AAID,eAAO,MAAM,oBAAoB;;;;CAOhC,CAAA;AAGD,wBAAsB,cAAc,CAAC,IAAI,EAAE,GAAG;;;;;GAE7C;AAID,eAAO,MAAM,iBAAiB;;;CAK7B,CAAA;AAGD,wBAAsB,WAAW,C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GAAG;;;;;GAExC"}
@@ -0,0 +1,290 @@
1
+ /**
2
+ * Nexus Dispatch Tools — ADR-0052
3
+ *
4
+ * dispatch_create, dispatch_reply, dispatch_inbox, dispatch_outbox,
5
+ * dispatch_ack, dispatch_assign, dispatch_forward, dispatch_resolve,
6
+ * dispatch_close, dispatch_sweep, dispatch_get, dispatch_related
7
+ *
8
+ * Legacy vl_* tools are thin wrappers at the bottom of this file.
9
+ * All tools delegate to POST /api/mcp/dispatches.
10
+ */
11
+ import { z } from 'zod';
12
+ import { nexusPost } from '../nexus-api.js';
13
+ // ── Shared schemas ────────────────────────────────────────────────────────────
14
+ const DISPATCH_TYPES = ['question', 'bug_report', 'implementation_request',
15
+ 'review_request', 'decision_notice', 'blocker', 'status_update', 'handover'];
16
+ const DISPATCH_STATUSES = ['open', 'acknowledged', 'in_progress', 'waiting_for_requester',
17
+ 'blocked', 'needs_review', 'resolved', 'closed', 'cancelled'];
18
+ const DISPATCH_MESSAGE_TYPES = ['reply', 'clarification', 'progress', 'resolution',
19
+ 'blocker', 'review_note', 'context', 'system_note'];
20
+ function ok(data) {
21
+ return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
22
+ }
23
+ function err(error) {
24
+ return { content: [{ type: 'text', text: JSON.stringify({ error }, null, 2) }], isError: true };
25
+ }
26
+ async function dispatch(action, args) {
27
+ const result = await nexusPost('/api/mcp/dispatches', { action, ...args });
28
+ if (!result.ok)
29
+ return err(result.error);
30
+ return ok(result.data);
31
+ }
32
+ // ── dispatch_create ───────────────────────────────────────────────────────────
33
+ export const dispatchCreateSchema = {
34
+ project_id: z.string().uuid()
35
+ .describe('Sender project UUID — the project the calling agent belongs to'),
36
+ to_project_id: z.string().uuid().optional()
37
+ .describe('Target/recipient project UUID (optional — can be resolved from to_actor)'),
38
+ to_actor: z.string().max(200).optional()
39
+ .describe('Recipient actor slug or UUID'),
40
+ title: z.string().max(500)
41
+ .describe('Dispatch title — short, actionable description of the request'),
42
+ body: z.string().max(100_000)
43
+ .describe('Initial message body (Markdown supported)'),
44
+ type: z.enum(DISPATCH_TYPES).default('question')
45
+ .describe('Dispatch type'),
46
+ priority: z.enum(['low', 'normal', 'high', 'urgent']).default('normal')
47
+ .describe('Priority'),
48
+ blocking: z.boolean().default(false)
49
+ .describe('Whether this Dispatch blocks the sender'),
50
+ due_at: z.string().optional()
51
+ .describe('Optional due date (ISO 8601)'),
52
+ agent_id: z.string().max(200).optional()
53
+ .describe('Agent identifier of the calling agent'),
54
+ };
55
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
56
+ export async function dispatchCreate(args) {
57
+ return dispatch('dispatch_create', args);
58
+ }
59
+ // ── dispatch_reply ────────────────────────────────────────────────────────────
60
+ export const dispatchReplySchema = {
61
+ dispatch_id: z.string().uuid()
62
+ .describe('Dispatch UUID to reply to'),
63
+ body: z.string().max(100_000)
64
+ .describe('Reply body (Markdown supported)'),
65
+ message_type: z.enum(DISPATCH_MESSAGE_TYPES).optional()
66
+ .describe('Type of message being appended'),
67
+ status: z.enum(DISPATCH_STATUSES).optional()
68
+ .describe('Optionally update the Dispatch status (must follow allowed transitions)'),
69
+ agent_id: z.string().max(200).optional()
70
+ .describe('Agent identifier of the replying agent'),
71
+ };
72
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
73
+ export async function dispatchReply(args) {
74
+ return dispatch('dispatch_reply', args);
75
+ }
76
+ // ── dispatch_inbox ────────────────────────────────────────────────────────────
77
+ export const dispatchInboxSchema = {
78
+ project_id: z.string().uuid()
79
+ .describe('Project UUID — returns Dispatches addressed to this project'),
80
+ scope: z.enum(['project', 'blocking', 'waiting_on_me', 'cross_project', 'watching']).optional()
81
+ .describe('Filter scope (default: project)'),
82
+ status_filter: z.array(z.string()).optional()
83
+ .describe('Filter by status (default: open, acknowledged, in_progress, waiting_for_requester, blocked, needs_review)'),
84
+ include_closed: z.boolean().optional()
85
+ .describe('Include closed/cancelled Dispatches (default: false)'),
86
+ limit: z.number().int().min(1).max(50).optional()
87
+ .describe('Max results (default: 20)'),
88
+ };
89
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
90
+ export async function dispatchInbox(args) {
91
+ return dispatch('dispatch_inbox', args);
92
+ }
93
+ // ── dispatch_outbox ───────────────────────────────────────────────────────────
94
+ export const dispatchOutboxSchema = {
95
+ project_id: z.string().uuid()
96
+ .describe('Project UUID — returns Dispatches created by this project'),
97
+ status_filter: z.array(z.string()).optional()
98
+ .describe('Filter by status (default: all non-closed)'),
99
+ limit: z.number().int().min(1).max(50).optional()
100
+ .describe('Max results (default: 20)'),
101
+ };
102
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
103
+ export async function dispatchOutbox(args) {
104
+ return dispatch('dispatch_outbox', args);
105
+ }
106
+ // ── dispatch_ack ──────────────────────────────────────────────────────────────
107
+ export const dispatchAckSchema = {
108
+ dispatch_id: z.string().uuid()
109
+ .describe('Dispatch UUID to acknowledge (must be in open status)'),
110
+ agent_id: z.string().max(200).optional()
111
+ .describe('Agent identifier'),
112
+ };
113
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
114
+ export async function dispatchAck(args) {
115
+ return dispatch('dispatch_ack', args);
116
+ }
117
+ // ── dispatch_assign ───────────────────────────────────────────────────────────
118
+ export const dispatchAssignSchema = {
119
+ dispatch_id: z.string().uuid()
120
+ .describe('Dispatch UUID to (re-)assign'),
121
+ to_actor: z.string().max(200)
122
+ .describe('Target actor slug or UUID'),
123
+ agent_id: z.string().max(200).optional()
124
+ .describe('Agent identifier of the assigning agent'),
125
+ };
126
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
127
+ export async function dispatchAssign(args) {
128
+ return dispatch('dispatch_assign', args);
129
+ }
130
+ // ── dispatch_forward ──────────────────────────────────────────────────────────
131
+ export const dispatchForwardSchema = {
132
+ dispatch_id: z.string().uuid()
133
+ .describe('Dispatch UUID to forward'),
134
+ to_project_id: z.string().uuid()
135
+ .describe('Target project UUID (must be linked to the source project)'),
136
+ to_actor: z.string().max(200).optional()
137
+ .describe('Optional new assignee actor in the target project'),
138
+ agent_id: z.string().max(200).optional()
139
+ .describe('Agent identifier of the forwarding agent'),
140
+ };
141
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
142
+ export async function dispatchForward(args) {
143
+ return dispatch('dispatch_forward', args);
144
+ }
145
+ // ── dispatch_resolve ──────────────────────────────────────────────────────────
146
+ export const dispatchResolveSchema = {
147
+ dispatch_id: z.string().uuid()
148
+ .describe('Dispatch UUID to mark as resolved'),
149
+ resolution: z.string().max(10_000).optional()
150
+ .describe('Resolution note — what was done, what was the outcome, any follow-up'),
151
+ agent_id: z.string().max(200).optional()
152
+ .describe('Agent identifier'),
153
+ };
154
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
155
+ export async function dispatchResolve(args) {
156
+ return dispatch('dispatch_resolve', args);
157
+ }
158
+ // ── dispatch_close ────────────────────────────────────────────────────────────
159
+ export const dispatchCloseSchema = {
160
+ dispatch_id: z.string().uuid()
161
+ .describe('Dispatch UUID to close (must be in resolved or needs_review status)'),
162
+ agent_id: z.string().max(200).optional()
163
+ .describe('Agent identifier'),
164
+ };
165
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
166
+ export async function dispatchClose(args) {
167
+ return dispatch('dispatch_close', args);
168
+ }
169
+ // ── dispatch_get ──────────────────────────────────────────────────────────────
170
+ export const dispatchGetSchema = {
171
+ dispatch_id: z.string().uuid()
172
+ .describe('Dispatch UUID — returns full Dispatch with messages and participants'),
173
+ };
174
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
175
+ export async function dispatchGet(args) {
176
+ return dispatch('dispatch_get', args);
177
+ }
178
+ // ── dispatch_sweep ────────────────────────────────────────────────────────────
179
+ export const dispatchSweepSchema = {
180
+ project_id: z.string().uuid()
181
+ .describe('Project UUID — returns prioritized session-start overview of relevant Dispatches'),
182
+ include_blocking: z.boolean().optional()
183
+ .describe('Include blocking Dispatches (default: true)'),
184
+ include_overdue: z.boolean().optional()
185
+ .describe('Include overdue Dispatches (default: true)'),
186
+ include_waiting_on_me: z.boolean().optional()
187
+ .describe('Include Dispatches waiting on this actor/project (default: true)'),
188
+ include_recent_updates: z.boolean().optional()
189
+ .describe('Include recently updated Dispatches (default: true)'),
190
+ acknowledge_non_blocking: z.boolean().optional()
191
+ .describe('Auto-acknowledge all non-blocking open Dispatches (default: false)'),
192
+ limit: z.number().int().min(1).max(25).optional()
193
+ .describe('Max results per category (default: 10)'),
194
+ };
195
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
196
+ export async function dispatchSweep(args) {
197
+ return dispatch('dispatch_sweep', args);
198
+ }
199
+ // ── dispatch_related ──────────────────────────────────────────────────────────
200
+ export const dispatchRelatedSchema = {
201
+ dispatch_id: z.string().uuid().optional()
202
+ .describe('Dispatch UUID — find structurally related Dispatches'),
203
+ project_id: z.string().uuid().optional()
204
+ .describe('Project UUID — find related Dispatches within the project'),
205
+ include_closed: z.boolean().optional()
206
+ .describe('Include closed/cancelled Dispatches (default: true — useful for loop prevention)'),
207
+ limit: z.number().int().min(1).max(20).optional()
208
+ .describe('Max results (default: 5)'),
209
+ };
210
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
211
+ export async function dispatchRelated(args) {
212
+ return dispatch('dispatch_related', args);
213
+ }
214
+ // ── Legacy vl_* compat wrappers ───────────────────────────────────────────────
215
+ // These delegate to the dispatch_* functions via the alias mapping in the API.
216
+ export const createLetterSchema = {
217
+ project_id: z.string().uuid().describe('Recipient project UUID'),
218
+ from_project_id: z.string().uuid().optional().describe('Sender project UUID'),
219
+ from_actor: z.string().max(200).describe('Sender actor identifier'),
220
+ to_actor: z.string().max(200).describe('Recipient actor identifier'),
221
+ subject: z.string().max(500).describe('Letter subject (used as Dispatch title)'),
222
+ body: z.string().max(100_000).describe('Initial message body'),
223
+ priority: z.enum(['low', 'normal', 'high', 'urgent']).default('normal').describe('Priority'),
224
+ blocking: z.boolean().default(false).describe('Whether this letter blocks the sender'),
225
+ thread_id: z.string().uuid().optional().describe('Optional thread UUID'),
226
+ agent_id: z.string().max(200).optional().describe('Agent identifier'),
227
+ };
228
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
229
+ export async function createLetter(args) {
230
+ // Map legacy vl_create → dispatch_create
231
+ return dispatch('dispatch_create', {
232
+ project_id: args.from_project_id ?? args.project_id,
233
+ to_project_id: args.project_id,
234
+ to_actor: args.to_actor,
235
+ title: args.subject,
236
+ body: args.body,
237
+ type: 'question',
238
+ priority: args.priority ?? 'normal',
239
+ blocking: args.blocking ?? false,
240
+ agent_id: args.agent_id,
241
+ });
242
+ }
243
+ export const replyLetterSchema = {
244
+ letter_id: z.string().uuid().describe('Dispatch/Letter UUID to reply to'),
245
+ body: z.string().max(100_000).describe('Reply body'),
246
+ message_type: z.enum(['response', 'clarification', 'review_note', 'follow_up', 'context']).optional()
247
+ .describe('Message type'),
248
+ new_status: z.enum(['acknowledged', 'in_progress', 'answered', 'blocked', 'needs_review', 'closed']).optional()
249
+ .describe('Optional status update'),
250
+ agent_id: z.string().max(200).optional().describe('Agent identifier'),
251
+ };
252
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
253
+ export async function replyLetter(args) {
254
+ // Map legacy status values
255
+ const statusMap = { answered: 'resolved' };
256
+ const newStatus = args.new_status ? (statusMap[args.new_status] ?? args.new_status) : undefined;
257
+ return dispatch('dispatch_reply', {
258
+ dispatch_id: args.letter_id,
259
+ body: args.body,
260
+ message_type: args.message_type === 'response' ? 'reply' : (args.message_type ?? 'reply'),
261
+ status: newStatus,
262
+ agent_id: args.agent_id,
263
+ });
264
+ }
265
+ export const letterInboxSchema = {
266
+ project_id: z.string().uuid().describe('Project UUID'),
267
+ status_filter: z.array(z.string()).optional().describe('Filter by status'),
268
+ limit: z.number().int().min(1).max(50).optional().describe('Max results (default: 20)'),
269
+ };
270
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
271
+ export async function letterInbox(args) {
272
+ return dispatch('dispatch_inbox', args);
273
+ }
274
+ export const letterOutboxSchema = {
275
+ project_id: z.string().uuid().describe('Project UUID'),
276
+ status_filter: z.array(z.string()).optional().describe('Filter by status'),
277
+ limit: z.number().int().min(1).max(50).optional().describe('Max results (default: 20)'),
278
+ };
279
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
280
+ export async function letterOutbox(args) {
281
+ return dispatch('dispatch_outbox', args);
282
+ }
283
+ export const ackLetterSchema = {
284
+ letter_id: z.string().uuid().describe('Letter/Dispatch UUID to acknowledge'),
285
+ };
286
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
287
+ export async function ackLetter(args) {
288
+ return dispatch('dispatch_ack', { dispatch_id: args.letter_id });
289
+ }
290
+ //# sourceMappingURL=dispatches.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dispatches.js","sourceRoot":"","sources":["../../src/tools/dispatches.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,iFAAiF;AAEjF,MAAM,cAAc,GAAG,CAAC,UAAU,EAAE,YAAY,EAAE,wBAAwB;IACxE,gBAAgB,EAAE,iBAAiB,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,CAAU,CAAA;AAEvF,MAAM,iBAAiB,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,uBAAuB;IACvF,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,CAAU,CAAA;AAExE,MAAM,sBAAsB,GAAG,CAAC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY;IAChF,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,CAAU,CAAA;AAE9D,SAAS,EAAE,CAAC,IAAa;IACvB,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IA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AQ,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC;IACtD,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IAC1E,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;CACxF,CAAA;AAED,8DAA8D;AAC9D,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,IAAS;IAC1C,OAAO,QAAQ,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAA;AAC1C,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;CAC7E,CAAA;AAED,8DAA8D;AAC9D,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,IAAS;IACvC,OAAO,QAAQ,CAAC,cAAc,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAA;AAClE,CAAC"}
@@ -52,20 +52,20 @@ export declare const replyLetterSchema: {
52
52
  letter_id: z.ZodString;
53
53
  body: z.ZodString;
54
54
  message_type: z.ZodDefault<z.ZodEnum<{
55
- response: "response";
56
55
  clarification: "clarification";
57
56
  review_note: "review_note";
58
- follow_up: "follow_up";
59
57
  context: "context";
58
+ response: "response";
59
+ follow_up: "follow_up";
60
60
  }>>;
61
61
  agent_id: z.ZodOptional<z.ZodString>;
62
62
  new_status: z.ZodOptional<z.ZodEnum<{
63
63
  in_progress: "in_progress";
64
64
  blocked: "blocked";
65
65
  acknowledged: "acknowledged";
66
- answered: "answered";
67
66
  needs_review: "needs_review";
68
67
  closed: "closed";
68
+ answered: "answered";
69
69
  }>>;
70
70
  };
71
71
  type ReplyLetterArgs = {
package/package.json CHANGED
@@ -1,12 +1,30 @@
1
1
  {
2
2
  "name": "@gwdn/nexus-mcp",
3
- "version": "0.8.10",
4
- "description": "MCP server for the Nexus platform",
3
+ "version": "0.9.0",
4
+ "description": "MCP server for the Gatewarden Nexus platform — mediation layer between local agent runtimes and the Nexus HTTP API",
5
+ "license": "Apache-2.0",
5
6
  "type": "module",
6
7
  "main": "dist/server.js",
7
8
  "bin": {
8
9
  "nexus-mcp": "dist/server.js"
9
10
  },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/gwnexus/nexus-mcp.git"
14
+ },
15
+ "homepage": "https://nexus.gatewarden.eu",
16
+ "bugs": {
17
+ "url": "https://github.com/gwnexus/nexus-mcp/issues"
18
+ },
19
+ "author": "RelicFrog Holding UG (haftungsbeschraenkt)",
20
+ "keywords": [
21
+ "mcp",
22
+ "model-context-protocol",
23
+ "nexus",
24
+ "ai-agent",
25
+ "agent-coordination",
26
+ "knowledge-management"
27
+ ],
10
28
  "scripts": {
11
29
  "build": "tsc && chmod +x dist/server.js",
12
30
  "prepublishOnly": "npm run build",