@talonic/mcp 0.1.105 → 0.1.107
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 +123 -1
- package/README.md +10 -0
- package/dist/content.d.ts +22 -2
- package/dist/content.js +14963 -7760
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +8276 -2499
- package/dist/http-server.js.map +1 -1
- package/dist/index.d.ts +100 -0
- package/dist/index.js +7271 -1626
- package/dist/index.js.map +1 -1
- package/dist/server.js +8371 -2571
- package/dist/server.js.map +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { Talonic } from '@talonic/node';
|
|
2
2
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Workspace operation tool families: running a Spec run, ingest operations,
|
|
6
|
+
* organising documents, collections, saved filters and document types. Each
|
|
7
|
+
* family is listed only when its probe (a read of the family) answers 2xx for
|
|
8
|
+
* the connection, so a credential without the scope, a workspace on a
|
|
9
|
+
* platform that does not serve the routes yet, or a person without access
|
|
10
|
+
* never sees tools that would only fail. The platform authorizes every call;
|
|
11
|
+
* the probe is listing UX, never the security boundary.
|
|
12
|
+
*/
|
|
13
|
+
/** A workspace operation family key. */
|
|
14
|
+
type OperationsFamily = "pipelines" | "ingest" | "ingest_settings" | "document_organising" | "collections" | "saved_filters" | "document_types";
|
|
15
|
+
|
|
4
16
|
/**
|
|
5
17
|
* Options for {@link createServer}.
|
|
6
18
|
*
|
|
@@ -77,6 +89,18 @@ interface CreateServerOptions {
|
|
|
77
89
|
* Management never lists tools that would 404. Listing visibility only.
|
|
78
90
|
*/
|
|
79
91
|
includePartiesTools?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Register the `talonic_review_*` tools. Callers set this only after
|
|
94
|
+
* `probeReviewAccess` passed (the credential reaches the review queue).
|
|
95
|
+
* Listing visibility only.
|
|
96
|
+
*/
|
|
97
|
+
includeReviewTools?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Register the `talonic_cases_*` tools. Callers set this only after
|
|
100
|
+
* `probeCasesAccess` passed (the credential reaches cases). Listing
|
|
101
|
+
* visibility only.
|
|
102
|
+
*/
|
|
103
|
+
includeCasesTools?: boolean;
|
|
80
104
|
/**
|
|
81
105
|
* Register the `talonic_portfolio_*` tools. Callers set this only after
|
|
82
106
|
* `probePortfolioAccess` passed (the workspace has the Portfolio app).
|
|
@@ -88,12 +112,54 @@ interface CreateServerOptions {
|
|
|
88
112
|
* permission in the workspace).
|
|
89
113
|
*/
|
|
90
114
|
includeProcessesTools?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Register the `talonic_spec_*` authoring tools (create, edit, check, test,
|
|
117
|
+
* publish, rollback). Callers set this only after `probeSpecAuthoringAccess`
|
|
118
|
+
* passed (the platform serves `GET /v1/specs/authoring` to the credential).
|
|
119
|
+
* Listing visibility only; the platform decides every call.
|
|
120
|
+
*/
|
|
121
|
+
includeSpecAuthoringTools?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Register the integrations group (`talonic_integrations_*`,
|
|
124
|
+
* `talonic_sources_*`). Callers set this only after
|
|
125
|
+
* `probeIntegrationsAccess` passed, so a platform without the
|
|
126
|
+
* `/v1/integrations` routes, or a credential without `sources:read`, never
|
|
127
|
+
* lists tools that would 404 or 403. Listing visibility only.
|
|
128
|
+
*/
|
|
129
|
+
includeIntegrationsTools?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Register the `talonic_team_*` workspace-team tools. Callers set this only
|
|
132
|
+
* after `probeTeamAdminAccess` passed (the person may manage the team).
|
|
133
|
+
* Listing visibility only; the platform re-checks every call.
|
|
134
|
+
*/
|
|
135
|
+
includeTeamAdminTools?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Register the `talonic_records_*` records-management tools. Callers set
|
|
138
|
+
* this only after `probeRecordsAdminAccess` passed (the person holds the
|
|
139
|
+
* data permission). Listing visibility only.
|
|
140
|
+
*/
|
|
141
|
+
includeRecordsAdminTools?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Register the `talonic_workspace_*` tools (billing, support, scheduled
|
|
144
|
+
* deletion). Callers set this only after `probeWorkspaceAccess` passed.
|
|
145
|
+
*/
|
|
146
|
+
includeWorkspaceTools?: boolean;
|
|
91
147
|
/**
|
|
92
148
|
* Register the `talonic_master_records_*` tools. Callers set this only after
|
|
93
149
|
* `probeMasterRecordsAccess` passed, so a deployment without the Master
|
|
94
150
|
* Records app never lists tools that would 404. Listing visibility only.
|
|
95
151
|
*/
|
|
96
152
|
includeMasterRecordsTools?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Register the `talonic_thread_*`, agent-turn and `talonic_my_data_*` tools.
|
|
155
|
+
* Callers set each only after its probe passed (`probeThreadAccess`,
|
|
156
|
+
* `probeAgentTurnsAccess`, `probeMyDataAccess`): the credential is a person
|
|
157
|
+
* who reaches that surface. Listing visibility only; the platform decides
|
|
158
|
+
* every call as that person.
|
|
159
|
+
*/
|
|
160
|
+
includeThreadTools?: boolean;
|
|
161
|
+
includeAgentTurnTools?: boolean;
|
|
162
|
+
includeMyDataTools?: boolean;
|
|
97
163
|
/**
|
|
98
164
|
* Register the `talonic_submissions_*` tools. Callers set this only after
|
|
99
165
|
* `probeSubmissionsAccess` passed, so a deployment without the Submissions
|
|
@@ -106,6 +172,27 @@ interface CreateServerOptions {
|
|
|
106
172
|
* Baseline app never lists tools that would 404. Listing visibility only.
|
|
107
173
|
*/
|
|
108
174
|
includePriceBaselineTools?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Register the `talonic_data_product_*` tools. Callers set this only after
|
|
177
|
+
* `probeDataProductsAccess` passed. Listing visibility only.
|
|
178
|
+
*/
|
|
179
|
+
includeDataProductTools?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Register the `talonic_data_policy_*` tools. Callers set this only after
|
|
182
|
+
* `probeDataPoliciesAccess` passed. Listing visibility only.
|
|
183
|
+
*/
|
|
184
|
+
includeDataPolicyTools?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Register the `talonic_catalog_*` and `talonic_suggestion_*` tools. Callers
|
|
187
|
+
* set this only after `probeWorkspaceDataAccess` passed. Listing visibility only.
|
|
188
|
+
*/
|
|
189
|
+
includeWorkspaceDataTools?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Register the `talonic_schema_review_*` tools and `talonic_link_key_set`.
|
|
192
|
+
* Callers set this only after `probeSchemaReviewAccess` passed. Listing
|
|
193
|
+
* visibility only.
|
|
194
|
+
*/
|
|
195
|
+
includeSchemaReviewTools?: boolean;
|
|
109
196
|
/**
|
|
110
197
|
* Keys of the probe-gated tool groups to register (`src/tools/tool-groups.ts`:
|
|
111
198
|
* `data_management`, `events`, `aggregate`, `admin`, `contract_desk`,
|
|
@@ -116,6 +203,19 @@ interface CreateServerOptions {
|
|
|
116
203
|
* Defaults to none.
|
|
117
204
|
*/
|
|
118
205
|
toolGroups?: readonly string[];
|
|
206
|
+
/**
|
|
207
|
+
* The workspace operation families to register (Spec-run operations, ingest
|
|
208
|
+
* operations, document organising, collections, saved filters, document
|
|
209
|
+
* types). Callers pass the families whose probe passed
|
|
210
|
+
* (`probeOperationsFamilies`). Listing visibility only. Defaults to none.
|
|
211
|
+
*/
|
|
212
|
+
operationsFamilies?: readonly OperationsFamily[];
|
|
213
|
+
/**
|
|
214
|
+
* Ids of the app-workflow groups (`tools/app-workflows.ts`) whose probe
|
|
215
|
+
* passed for the credential; their tools are registered, the rest are not.
|
|
216
|
+
* Listing visibility only.
|
|
217
|
+
*/
|
|
218
|
+
appWorkflowGroups?: readonly string[];
|
|
119
219
|
/**
|
|
120
220
|
* Whether the seven decision-task tools are listed as invocable. The hosted
|
|
121
221
|
* entrypoint sets this from `tokenHasDecideScope`: an OAuth token that
|