@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/dist/index.d.ts CHANGED
@@ -158,6 +158,12 @@ interface CreateServerOptions {
158
158
  * every call as that person.
159
159
  */
160
160
  includeThreadTools?: boolean;
161
+ /**
162
+ * List `talonic_thread_reconnect` instead of the thread tools: the hosted
163
+ * entrypoint sets it for an OAuth grant made before the thread scopes were
164
+ * requested. Ignored when the thread tools are listed.
165
+ */
166
+ includeThreadReconnect?: boolean;
161
167
  includeAgentTurnTools?: boolean;
162
168
  includeMyDataTools?: boolean;
163
169
  /**
package/dist/index.js CHANGED
@@ -9983,6 +9983,30 @@ function handleFigure(getToken, baseUrl, args) {
9983
9983
  })
9984
9984
  );
9985
9985
  }
9986
+ var THREAD_RECONNECT_TOOL = "talonic_thread_reconnect";
9987
+ 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.";
9988
+ function registerThreadReconnectTool(server) {
9989
+ server.registerTool(
9990
+ THREAD_RECONNECT_TOOL,
9991
+ {
9992
+ title: "Connect your Talonic agent",
9993
+ description: [
9994
+ "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,
9995
+ "USE WHEN: the person asks for their Talonic agent, their thread, what to work on, or open requests from colleagues.",
9996
+ "ARGS: none.",
9997
+ "RETURNS: what the person has to do; tell them in one or two sentences."
9998
+ ].join("\n"),
9999
+ inputSchema: {},
10000
+ annotations: {
10001
+ readOnlyHint: true,
10002
+ destructiveHint: false,
10003
+ idempotentHint: true,
10004
+ openWorldHint: false
10005
+ }
10006
+ },
10007
+ async () => ({ content: [{ type: "text", text: THREAD_RECONNECT_TEXT }] })
10008
+ );
10009
+ }
9986
10010
  function registerThreadTools(server, getToken, baseUrl) {
9987
10011
  const tools2 = [
9988
10012
  [
@@ -18117,7 +18141,7 @@ function registerOperationsTools(server, getToken, baseUrl, families) {
18117
18141
 
18118
18142
  // package.json
18119
18143
  var package_default = {
18120
- version: "0.1.111"};
18144
+ version: "0.1.112"};
18121
18145
 
18122
18146
  // src/version.ts
18123
18147
  var VERSION = package_default.version;
@@ -18371,6 +18395,9 @@ function createServer(options) {
18371
18395
  if (options.includeSchemaReviewTools) {
18372
18396
  registerSchemaReviewTools(server, rawToken, baseUrl);
18373
18397
  }
18398
+ if (!options.includeThreadTools && options.includeThreadReconnect) {
18399
+ registerThreadReconnectTool(server);
18400
+ }
18374
18401
  if (options.includeThreadTools) {
18375
18402
  registerThreadTools(server, rawToken, baseUrl);
18376
18403
  }