@talonic/mcp 0.1.111 → 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 +6 -0
- package/dist/content.js +1 -1
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +68 -2
- package/dist/http-server.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +28 -1
- package/dist/index.js.map +1 -1
- package/dist/server.js +28 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -10141,6 +10141,30 @@ async function probeThreadAccess(token, baseUrl) {
|
|
|
10141
10141
|
return false;
|
|
10142
10142
|
}
|
|
10143
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
|
+
}
|
|
10144
10168
|
function registerThreadTools(server, getToken, baseUrl) {
|
|
10145
10169
|
const tools2 = [
|
|
10146
10170
|
[
|
|
@@ -18380,7 +18404,7 @@ function registerOperationsTools(server, getToken, baseUrl, families) {
|
|
|
18380
18404
|
|
|
18381
18405
|
// package.json
|
|
18382
18406
|
var package_default = {
|
|
18383
|
-
version: "0.1.
|
|
18407
|
+
version: "0.1.112"};
|
|
18384
18408
|
|
|
18385
18409
|
// src/version.ts
|
|
18386
18410
|
var VERSION = package_default.version;
|
|
@@ -18634,6 +18658,9 @@ function createServer(options) {
|
|
|
18634
18658
|
if (options.includeSchemaReviewTools) {
|
|
18635
18659
|
registerSchemaReviewTools(server, rawToken, baseUrl);
|
|
18636
18660
|
}
|
|
18661
|
+
if (!options.includeThreadTools && options.includeThreadReconnect) {
|
|
18662
|
+
registerThreadReconnectTool(server);
|
|
18663
|
+
}
|
|
18637
18664
|
if (options.includeThreadTools) {
|
|
18638
18665
|
registerThreadTools(server, rawToken, baseUrl);
|
|
18639
18666
|
}
|