@talonic/mcp 0.1.110 → 0.1.112
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 +12 -0
- package/dist/content.js +30 -1
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +91 -2
- package/dist/http-server.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +51 -1
- package/dist/index.js.map +1 -1
- package/dist/server.js +51 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -9981,6 +9981,21 @@ function handleDecideApproval(getToken, baseUrl, args) {
|
|
|
9981
9981
|
)
|
|
9982
9982
|
);
|
|
9983
9983
|
}
|
|
9984
|
+
var OPEN_ASKS_DESCRIPTION = [
|
|
9985
|
+
"List what colleagues sent the person through their agents that still waits for them: requests, tasks and messages from the last 30 days, soonest due first. Read straight from the workspace, no agent turn and no credits.",
|
|
9986
|
+
"USE WHEN: the person asks what to work on, what is open for them, or what colleagues are waiting for.",
|
|
9987
|
+
"NOT FOR: answering a request (send the answer with talonic_thread_send); drafts waiting for approval (talonic_thread_list_drafts).",
|
|
9988
|
+
"",
|
|
9989
|
+
"ARGS: optional `limit` (1-100, default 50).",
|
|
9990
|
+
"RETURNS: { asks[] { id, kind message|task|request, from, text, answer_shape, choices[], due, sent_at, still_open[] } }. still_open: steps that tick off by themselves once done."
|
|
9991
|
+
].join("\n");
|
|
9992
|
+
var openAsksInputSchema = {
|
|
9993
|
+
limit: z.number().int().min(1).max(100).optional().describe("Most requests to return (1-100, default 50).")
|
|
9994
|
+
};
|
|
9995
|
+
function handleOpenAsks(getToken, baseUrl, args = {}) {
|
|
9996
|
+
const q = args.limit ? `?limit=${args.limit}` : "";
|
|
9997
|
+
return runTool(() => apiJson(getToken, baseUrl, "GET", `/v1/thread/asks${q}`));
|
|
9998
|
+
}
|
|
9984
9999
|
var DRAFTS_DESCRIPTION = [
|
|
9985
10000
|
"List the drafts the thread prepared and is waiting for the person to approve: an email, a start of one of their processes, or sharing one of their documents. Each names what a decision must quote back.",
|
|
9986
10001
|
"USE WHEN: before talonic_thread_decide_draft, to show the person exactly what would happen.",
|
|
@@ -10126,6 +10141,30 @@ async function probeThreadAccess(token, baseUrl) {
|
|
|
10126
10141
|
return false;
|
|
10127
10142
|
}
|
|
10128
10143
|
}
|
|
10144
|
+
var THREAD_RECONNECT_TOOL = "talonic_thread_reconnect";
|
|
10145
|
+
var THREAD_RECONNECT_TEXT = "This Talonic connection was made before the personal agent was part of it, so it cannot reach the agent yet. Reconnect Talonic once: in Claude, open Settings > Connectors, remove Talonic and add it again (in Claude Code: /mcp, Talonic, re-authenticate), then accept the Talonic consent screen. Your agent then acts with exactly your own Talonic permissions.";
|
|
10146
|
+
function registerThreadReconnectTool(server) {
|
|
10147
|
+
server.registerTool(
|
|
10148
|
+
THREAD_RECONNECT_TOOL,
|
|
10149
|
+
{
|
|
10150
|
+
title: "Connect your Talonic agent",
|
|
10151
|
+
description: [
|
|
10152
|
+
"The person's Talonic personal agent (their thread, requests colleagues sent them, drafts waiting for approval) is not reachable over this connection yet. " + THREAD_RECONNECT_TEXT,
|
|
10153
|
+
"USE WHEN: the person asks for their Talonic agent, their thread, what to work on, or open requests from colleagues.",
|
|
10154
|
+
"ARGS: none.",
|
|
10155
|
+
"RETURNS: what the person has to do; tell them in one or two sentences."
|
|
10156
|
+
].join("\n"),
|
|
10157
|
+
inputSchema: {},
|
|
10158
|
+
annotations: {
|
|
10159
|
+
readOnlyHint: true,
|
|
10160
|
+
destructiveHint: false,
|
|
10161
|
+
idempotentHint: true,
|
|
10162
|
+
openWorldHint: false
|
|
10163
|
+
}
|
|
10164
|
+
},
|
|
10165
|
+
async () => ({ content: [{ type: "text", text: THREAD_RECONNECT_TEXT }] })
|
|
10166
|
+
);
|
|
10167
|
+
}
|
|
10129
10168
|
function registerThreadTools(server, getToken, baseUrl) {
|
|
10130
10169
|
const tools2 = [
|
|
10131
10170
|
[
|
|
@@ -10168,6 +10207,14 @@ function registerThreadTools(server, getToken, baseUrl) {
|
|
|
10168
10207
|
write13(false, false, true),
|
|
10169
10208
|
(a) => handleDecideApproval(getToken, baseUrl, a)
|
|
10170
10209
|
],
|
|
10210
|
+
[
|
|
10211
|
+
"talonic_thread_open_asks",
|
|
10212
|
+
"List requests waiting for you",
|
|
10213
|
+
OPEN_ASKS_DESCRIPTION,
|
|
10214
|
+
openAsksInputSchema,
|
|
10215
|
+
readOnly13,
|
|
10216
|
+
(a) => handleOpenAsks(getToken, baseUrl, a)
|
|
10217
|
+
],
|
|
10171
10218
|
[
|
|
10172
10219
|
"talonic_thread_list_drafts",
|
|
10173
10220
|
"List prepared drafts",
|
|
@@ -18357,7 +18404,7 @@ function registerOperationsTools(server, getToken, baseUrl, families) {
|
|
|
18357
18404
|
|
|
18358
18405
|
// package.json
|
|
18359
18406
|
var package_default = {
|
|
18360
|
-
version: "0.1.
|
|
18407
|
+
version: "0.1.112"};
|
|
18361
18408
|
|
|
18362
18409
|
// src/version.ts
|
|
18363
18410
|
var VERSION = package_default.version;
|
|
@@ -18611,6 +18658,9 @@ function createServer(options) {
|
|
|
18611
18658
|
if (options.includeSchemaReviewTools) {
|
|
18612
18659
|
registerSchemaReviewTools(server, rawToken, baseUrl);
|
|
18613
18660
|
}
|
|
18661
|
+
if (!options.includeThreadTools && options.includeThreadReconnect) {
|
|
18662
|
+
registerThreadReconnectTool(server);
|
|
18663
|
+
}
|
|
18614
18664
|
if (options.includeThreadTools) {
|
|
18615
18665
|
registerThreadTools(server, rawToken, baseUrl);
|
|
18616
18666
|
}
|