@talonic/mcp 0.1.107 → 0.1.108
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/CHANGELOG.md +10 -0
- package/dist/content.js +222 -2
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +228 -14
- package/dist/http-server.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +228 -14
- package/dist/index.js.map +1 -1
- package/dist/server.js +228 -14
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
> Write each change here. When a push to `main` publishes, the workflow bumps the version and promotes this block to `## [<version>] - <date>` itself (`scripts/promote-changelog.mjs`); the changelog lock requires a heading for the package version.
|
|
11
11
|
|
|
12
|
+
## [0.1.108] - 2026-11-30
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **Collections configuration and automatic sorting.** Nine probe-gated `talonic_collections_*` tools, listed when `GET /v1/collections/config` answers for the connection: `talonic_collections_get_config`, `talonic_collections_propose` (a first draft from the workspace's own documents; saves nothing) and `talonic_collections_apply_config` (previews by default: every problem at once, what would be created, changed and removed, and how many documents each limit hides from how many people; `dry_run: false` saves, `prune` removes keyed collections the document does not name), `talonic_collections_explain_document` (why a document sits where it does), `talonic_collections_set_labels`, `talonic_collections_move_document`, `talonic_collections_set_parties`, and `talonic_collections_list_directory` / `talonic_collections_save_directory` (who is who, and corrections). Apply and directory corrections carry `destructiveHint`. Needs the platform release with the collections tree.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- **Route guard covers route-bound tools.** `scripts/check-routes.mjs` now also reads `route: "VERB /v1/…"` rows (tool groups and route-tool families), which it skipped before; every existing one is in the spec.
|
|
21
|
+
|
|
12
22
|
## [0.1.107] - 2026-11-26
|
|
13
23
|
|
|
14
24
|
### Added
|
package/dist/content.js
CHANGED
|
@@ -17006,6 +17006,224 @@ var section9 = {
|
|
|
17006
17006
|
mentions: []
|
|
17007
17007
|
};
|
|
17008
17008
|
|
|
17009
|
+
// src/content/sections/groups/collections-config.ts
|
|
17010
|
+
var section10 = {
|
|
17011
|
+
slug: "collections-config-tools",
|
|
17012
|
+
parentSlug: "tool-groups",
|
|
17013
|
+
title: "Collections configuration",
|
|
17014
|
+
seoTitle: "Collections Config MCP Tools \u2014 Sort Documents by Label",
|
|
17015
|
+
description: "MCP tools to read, propose and apply a workspace's collections configuration, explain where a document sits, and correct its labels, parties and directory.",
|
|
17016
|
+
content: [
|
|
17017
|
+
{
|
|
17018
|
+
type: "paragraph",
|
|
17019
|
+
text: "Every document carries labels such as `relationship:client` or `channel:mail`, derived from its parties and the workspace's relationship directory. A collection with a `match` holds every document that carries all of its labels, and an `only` limit narrows who may read the documents it holds. These tools read and change that setup as one document, and explain or correct where a single document sits."
|
|
17020
|
+
},
|
|
17021
|
+
{
|
|
17022
|
+
type: "paragraph",
|
|
17023
|
+
text: "The usual loop: **`talonic_collections_get_config`** (or **`talonic_collections_propose`** for a first draft), edit the document, then **`talonic_collections_apply_config`**. Apply previews by default: it reports every problem at once, what would be created, changed and removed, and for each limit how many documents it hides from how many people. Show that to the user and apply with `dry_run: false` only once they agree."
|
|
17024
|
+
},
|
|
17025
|
+
{
|
|
17026
|
+
type: "callout",
|
|
17027
|
+
variant: "info",
|
|
17028
|
+
text: "These tools are listed only when the connection can read the collections configuration. Every call is checked against the role and permissions of the person behind the connection, exactly as in the web app: applying a configuration, proposing one and correcting the directory need an Admin of the workspace."
|
|
17029
|
+
},
|
|
17030
|
+
{
|
|
17031
|
+
type: "heading",
|
|
17032
|
+
level: 3,
|
|
17033
|
+
id: "talonic-collections-get-config",
|
|
17034
|
+
text: "talonic_collections_get_config"
|
|
17035
|
+
},
|
|
17036
|
+
{
|
|
17037
|
+
type: "paragraph",
|
|
17038
|
+
text: "The workspace's collections as one configuration document: each keyed collection with its name, the labels it sorts by (`match`, or `any` for several label sets) and its children, plus relationship kinds, own domains and whether relationships may be inferred. Limits (`only`), configured directory entries and default views appear for a workspace owner only."
|
|
17039
|
+
},
|
|
17040
|
+
{
|
|
17041
|
+
type: "heading",
|
|
17042
|
+
level: 3,
|
|
17043
|
+
id: "talonic-collections-apply-config",
|
|
17044
|
+
text: "talonic_collections_apply_config"
|
|
17045
|
+
},
|
|
17046
|
+
{
|
|
17047
|
+
type: "paragraph",
|
|
17048
|
+
text: "Apply a configuration document. Collections are matched by their path of keys, so applying the same document twice changes nothing; a top-level key left out leaves that part of the workspace as it is. Nothing is saved unless `dry_run` is false."
|
|
17049
|
+
},
|
|
17050
|
+
{
|
|
17051
|
+
type: "param-table",
|
|
17052
|
+
params: [
|
|
17053
|
+
{
|
|
17054
|
+
name: "document",
|
|
17055
|
+
type: "object",
|
|
17056
|
+
required: false,
|
|
17057
|
+
description: "The configuration document (`version: 1`, `collections`, \u2026). Pass this or `yaml`."
|
|
17058
|
+
},
|
|
17059
|
+
{
|
|
17060
|
+
name: "yaml",
|
|
17061
|
+
type: "string",
|
|
17062
|
+
required: false,
|
|
17063
|
+
description: "The same document as YAML or JSON text."
|
|
17064
|
+
},
|
|
17065
|
+
{
|
|
17066
|
+
name: "dry_run",
|
|
17067
|
+
type: "boolean",
|
|
17068
|
+
required: false,
|
|
17069
|
+
default: "true",
|
|
17070
|
+
description: "Check and preview only; false saves the change."
|
|
17071
|
+
},
|
|
17072
|
+
{
|
|
17073
|
+
name: "prune",
|
|
17074
|
+
type: "boolean",
|
|
17075
|
+
required: false,
|
|
17076
|
+
description: "Remove keyed collections the document does not name (refused for one that still has a limit or documents placed by hand)."
|
|
17077
|
+
}
|
|
17078
|
+
]
|
|
17079
|
+
},
|
|
17080
|
+
{
|
|
17081
|
+
type: "heading",
|
|
17082
|
+
level: 3,
|
|
17083
|
+
id: "talonic-collections-propose",
|
|
17084
|
+
text: "talonic_collections_propose"
|
|
17085
|
+
},
|
|
17086
|
+
{
|
|
17087
|
+
type: "paragraph",
|
|
17088
|
+
text: "A configuration document built from the workspace's own documents, as far as the person may read them: one top-level collection per channel, children for common labels, and suggested relationship kinds. Saves nothing and never proposes a limit."
|
|
17089
|
+
},
|
|
17090
|
+
{
|
|
17091
|
+
type: "heading",
|
|
17092
|
+
level: 3,
|
|
17093
|
+
id: "talonic-collections-explain-document",
|
|
17094
|
+
text: "talonic_collections_explain_document"
|
|
17095
|
+
},
|
|
17096
|
+
{
|
|
17097
|
+
type: "paragraph",
|
|
17098
|
+
text: "Why one document sits where it does: each label, whether it was derived or set by a person, the evidence the person may see behind it, and each collection it is in with why (`rule`, `hand` or `held` by a limit while its labels settle)."
|
|
17099
|
+
},
|
|
17100
|
+
{
|
|
17101
|
+
type: "param-table",
|
|
17102
|
+
params: [{ name: "document_id", type: "UUID", required: true, description: "The document." }]
|
|
17103
|
+
},
|
|
17104
|
+
{
|
|
17105
|
+
type: "heading",
|
|
17106
|
+
level: 3,
|
|
17107
|
+
id: "talonic-collections-set-labels",
|
|
17108
|
+
text: "talonic_collections_set_labels"
|
|
17109
|
+
},
|
|
17110
|
+
{
|
|
17111
|
+
type: "paragraph",
|
|
17112
|
+
text: "Add and remove labels on one document by hand. A person's labels are kept whenever the document's labels are derived again. Refused when the change would move the document into or out of a limited collection the person may not manage."
|
|
17113
|
+
},
|
|
17114
|
+
{
|
|
17115
|
+
type: "param-table",
|
|
17116
|
+
params: [
|
|
17117
|
+
{ name: "document_id", type: "UUID", required: true, description: "The document." },
|
|
17118
|
+
{
|
|
17119
|
+
name: "add",
|
|
17120
|
+
type: "string[]",
|
|
17121
|
+
required: false,
|
|
17122
|
+
description: "Labels to add (at most 50)."
|
|
17123
|
+
},
|
|
17124
|
+
{
|
|
17125
|
+
name: "remove",
|
|
17126
|
+
type: "string[]",
|
|
17127
|
+
required: false,
|
|
17128
|
+
description: "Labels to remove (at most 50)."
|
|
17129
|
+
}
|
|
17130
|
+
]
|
|
17131
|
+
},
|
|
17132
|
+
{
|
|
17133
|
+
type: "heading",
|
|
17134
|
+
level: 3,
|
|
17135
|
+
id: "talonic-collections-move-document",
|
|
17136
|
+
text: "talonic_collections_move_document"
|
|
17137
|
+
},
|
|
17138
|
+
{
|
|
17139
|
+
type: "paragraph",
|
|
17140
|
+
text: "Take one document out of a collection, put it into one, or both. A collection that sorts by labels keeps the document out once it is moved out."
|
|
17141
|
+
},
|
|
17142
|
+
{
|
|
17143
|
+
type: "param-table",
|
|
17144
|
+
params: [
|
|
17145
|
+
{ name: "document_id", type: "UUID", required: true, description: "The document." },
|
|
17146
|
+
{ name: "from", type: "UUID", required: false, description: "The collection to leave." },
|
|
17147
|
+
{ name: "to", type: "UUID", required: false, description: "The collection to join." }
|
|
17148
|
+
]
|
|
17149
|
+
},
|
|
17150
|
+
{
|
|
17151
|
+
type: "heading",
|
|
17152
|
+
level: 3,
|
|
17153
|
+
id: "talonic-collections-set-parties",
|
|
17154
|
+
text: "talonic_collections_set_parties"
|
|
17155
|
+
},
|
|
17156
|
+
{
|
|
17157
|
+
type: "paragraph",
|
|
17158
|
+
text: "Hand over one document's parties as your system has them, the way a connected mailbox does at import. The document's labels are derived again at once; only a complete list whose every party is the workspace's own makes a document internal."
|
|
17159
|
+
},
|
|
17160
|
+
{
|
|
17161
|
+
type: "param-table",
|
|
17162
|
+
params: [
|
|
17163
|
+
{ name: "document_id", type: "UUID", required: true, description: "The document." },
|
|
17164
|
+
{
|
|
17165
|
+
name: "parties",
|
|
17166
|
+
type: "object[]",
|
|
17167
|
+
required: true,
|
|
17168
|
+
description: "`{ id, role? }`: `id` is `email:\u2026`, `domain:\u2026`, `phone:\u2026`, `handle:\u2026` or `entity:\u2026`; `role` is from, to, cc, attendee or author. At most 500."
|
|
17169
|
+
},
|
|
17170
|
+
{
|
|
17171
|
+
name: "complete",
|
|
17172
|
+
type: "boolean",
|
|
17173
|
+
required: false,
|
|
17174
|
+
description: "true: the list names every party."
|
|
17175
|
+
}
|
|
17176
|
+
]
|
|
17177
|
+
},
|
|
17178
|
+
{
|
|
17179
|
+
type: "heading",
|
|
17180
|
+
level: 3,
|
|
17181
|
+
id: "talonic-collections-list-directory",
|
|
17182
|
+
text: "talonic_collections_list_directory"
|
|
17183
|
+
},
|
|
17184
|
+
{
|
|
17185
|
+
type: "paragraph",
|
|
17186
|
+
text: "Who is who: each identifier with what that party is to the workspace and where that came from (`person`, `config`, `record` or `read`), shown only where the person may see its evidence."
|
|
17187
|
+
},
|
|
17188
|
+
{
|
|
17189
|
+
type: "heading",
|
|
17190
|
+
level: 3,
|
|
17191
|
+
id: "talonic-collections-save-directory",
|
|
17192
|
+
text: "talonic_collections_save_directory"
|
|
17193
|
+
},
|
|
17194
|
+
{
|
|
17195
|
+
type: "paragraph",
|
|
17196
|
+
text: "Set directory entries as a person's correction and remove entries by id. The documents of every identifier touched are labelled again."
|
|
17197
|
+
},
|
|
17198
|
+
{
|
|
17199
|
+
type: "param-table",
|
|
17200
|
+
params: [
|
|
17201
|
+
{
|
|
17202
|
+
name: "entries",
|
|
17203
|
+
type: "object[]",
|
|
17204
|
+
required: false,
|
|
17205
|
+
description: "`{ match_value, relationship }`: a typed identifier and a relationship kind's slug, or `own` / `other`. At most 200."
|
|
17206
|
+
},
|
|
17207
|
+
{
|
|
17208
|
+
name: "remove",
|
|
17209
|
+
type: "UUID[]",
|
|
17210
|
+
required: false,
|
|
17211
|
+
description: "Entry ids to remove (from talonic_collections_list_directory)."
|
|
17212
|
+
},
|
|
17213
|
+
{
|
|
17214
|
+
name: "wait",
|
|
17215
|
+
type: "boolean",
|
|
17216
|
+
required: false,
|
|
17217
|
+
description: "Wait up to 60 seconds for the documents to be labelled again."
|
|
17218
|
+
}
|
|
17219
|
+
]
|
|
17220
|
+
}
|
|
17221
|
+
],
|
|
17222
|
+
related: [],
|
|
17223
|
+
faq: [],
|
|
17224
|
+
mentions: []
|
|
17225
|
+
};
|
|
17226
|
+
|
|
17009
17227
|
// src/content/sections/tool-groups.ts
|
|
17010
17228
|
var sections2 = [
|
|
17011
17229
|
section,
|
|
@@ -17016,7 +17234,8 @@ var sections2 = [
|
|
|
17016
17234
|
section6,
|
|
17017
17235
|
section7,
|
|
17018
17236
|
section8,
|
|
17019
|
-
section9
|
|
17237
|
+
section9,
|
|
17238
|
+
section10
|
|
17020
17239
|
];
|
|
17021
17240
|
|
|
17022
17241
|
// src/content/routes.ts
|
|
@@ -17474,7 +17693,8 @@ var MCP_NAV_SECTIONS = [
|
|
|
17474
17693
|
{ id: "transport-folders-tools", label: "Transport Folders" },
|
|
17475
17694
|
{ id: "compliance-tools", label: "Compliance" },
|
|
17476
17695
|
{ id: "money-found-tools", label: "Money Found" },
|
|
17477
|
-
{ id: "customs-declaration-tools", label: "Customs declaration" }
|
|
17696
|
+
{ id: "customs-declaration-tools", label: "Customs declaration" },
|
|
17697
|
+
{ id: "collections-config-tools", label: "Collections configuration" }
|
|
17478
17698
|
]
|
|
17479
17699
|
},
|
|
17480
17700
|
{
|