@talonic/mcp 0.1.73 → 0.1.75

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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![talonic-mcp MCP server](https://glama.ai/mcp/servers/talonicdev/talonic-mcp/badges/score.svg)](https://glama.ai/mcp/servers/talonicdev/talonic-mcp)
6
6
  [![smithery badge](https://smithery.ai/badge/talonic/talonic)](https://smithery.ai/servers/talonic/talonic)
7
7
 
8
- > **Status:** stable, listed on the [official MCP Registry](https://registry.modelcontextprotocol.io/) as `io.github.talonicdev/talonic-mcp`. **Eleven tools and two resources**, verified end-to-end against production (including the Claude.ai hosted connector). Runs as a local stdio process for desktop/IDE clients and as a hosted Streamable HTTP server at `mcp.talonic.com` for Claude.ai connectors.
8
+ > **Status:** stable, listed on the [official MCP Registry](https://registry.modelcontextprotocol.io/) as `io.github.talonicdev/talonic-mcp`. Eleven established document tools and two resources are verified end-to-end against production (including the Claude.ai hosted connector); this branch adds five public Agent-stage worklist tools. Runs as a local stdio process for desktop/IDE clients or as the hosted Streamable HTTP server at `mcp.talonic.com` for Claude.ai connectors.
9
9
 
10
10
  ---
11
11
 
@@ -87,7 +87,7 @@ Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) o
87
87
  }
88
88
  ```
89
89
 
90
- Fully restart Claude Desktop (Cmd+Q on macOS — not just close the window). Talonic appears in the connected-servers list with all eleven tools.
90
+ Fully restart Claude Desktop (Cmd+Q on macOS — not just close the window). Talonic appears in the connected-servers list with all sixteen public tools.
91
91
  </details>
92
92
 
93
93
  <details>
@@ -145,7 +145,7 @@ Claude.ai's "Add custom connector" flow uses a remote MCP URL instead of a local
145
145
  2. URL: `https://mcp.talonic.com/mcp` (no query string, no headers).
146
146
  3. Click **Connect** → you're redirected to Talonic → sign in (Google, Microsoft, or SSO).
147
147
  4. Approve the consent screen (scopes: `extract:write`, `documents:read`, `schemas:read`). Pick a workspace if you have multiple.
148
- 5. You're returned to Claude.ai. All eleven tools appear.
148
+ 5. You're returned to Claude.ai. All sixteen public tools appear.
149
149
 
150
150
  The flow uses PKCE (RFC 7636) and dynamic client registration (RFC 7591). Claude.ai stores a 1-hour access token + 30-day refresh token and refreshes automatically. No API key ever touches the connector config or any URL. Revoke by removing the connector or revoking the OAuth client in your Talonic dashboard.
151
151
 
package/dist/content.js CHANGED
@@ -35,7 +35,12 @@ var MCP_NAV_SECTIONS = [
35
35
  { id: "talonic-get-balance", label: "talonic_get_balance" },
36
36
  { id: "talonic-get-pricing", label: "talonic_get_pricing" },
37
37
  { id: "talonic-get-usage", label: "talonic_get_usage" },
38
- { id: "talonic-request-upload", label: "talonic_request_upload" }
38
+ { id: "talonic-request-upload", label: "talonic_request_upload" },
39
+ { id: "talonic-list-agent-tasks", label: "talonic_list_agent_tasks" },
40
+ { id: "talonic-get-agent-task", label: "talonic_get_agent_task" },
41
+ { id: "talonic-claim-agent-task", label: "talonic_claim_agent_task" },
42
+ { id: "talonic-heartbeat-agent-task", label: "talonic_heartbeat_agent_task" },
43
+ { id: "talonic-submit-agent-task", label: "talonic_submit_agent_task" }
39
44
  ]
40
45
  },
41
46
  {
@@ -299,7 +304,7 @@ var sections = [
299
304
  },
300
305
  {
301
306
  type: "paragraph",
302
- text: "The eleven tools are designed for distinct use cases with minimal overlap. **`talonic_extract`** is for structured field extraction with a schema, **`talonic_request_upload`** hands the user a browser link for files too large to pass through a hosted connector (Claude.ai), **`talonic_to_markdown`** is for full-text conversion, **`talonic_search`** handles fuzzy discovery, **`talonic_filter`** handles precise field-value queries, **`talonic_get_document`** returns metadata, the schema tools (**`talonic_list_schemas`**, **`talonic_save_schema`**) manage reusable extraction templates, and the billing tools (**`talonic_get_balance`** for the remaining balance, **`talonic_get_pricing`** for per-unit rates, **`talonic_get_usage`** for per-function spend) let the agent stay budget-aware before and after large batches."
307
+ text: "The sixteen public tools are designed for distinct use cases with minimal overlap. **`talonic_extract`** is for structured field extraction with a schema, **`talonic_request_upload`** hands the user a browser link for files too large to pass through a hosted connector (Claude.ai), **`talonic_to_markdown`** is for full-text conversion, **`talonic_search`** handles fuzzy discovery, **`talonic_filter`** handles precise field-value queries, **`talonic_get_document`** returns metadata, the schema tools (**`talonic_list_schemas`**, **`talonic_save_schema`**) manage reusable extraction templates, and the billing tools (**`talonic_get_balance`** for the remaining balance, **`talonic_get_pricing`** for per-unit rates, **`talonic_get_usage`** for per-function spend) let the agent stay budget-aware before and after large batches."
303
308
  },
304
309
  {
305
310
  type: "paragraph",
@@ -576,7 +581,7 @@ var sections2 = [
576
581
  "Click **Connect**. You are redirected to Talonic to sign in.",
577
582
  "Sign in with Google, Microsoft, or your company SSO.",
578
583
  "Approve the consent screen. The requested scopes are `extract:write`, `documents:read`, and `schemas:read`. Pick a workspace if you have multiple.",
579
- "You are returned to Claude.ai with the connector live. All eleven tools are available in any new conversation."
584
+ "You are returned to Claude.ai with the connector live. All sixteen public tools are available in any new conversation."
580
585
  ]
581
586
  },
582
587
  {
@@ -628,7 +633,7 @@ var sections2 = [
628
633
  },
629
634
  {
630
635
  type: "paragraph",
631
- text: "All three install paths expose the same eleven tools and two resources. The hosted server runs the latest version of `@talonic/mcp` automatically; the local `npx` install picks up the latest version on next client restart when pinned to `@latest`."
636
+ text: "All three install paths expose the same sixteen public tools and two resources. The hosted server runs the latest version of `@talonic/mcp` automatically; the local `npx` install picks up the latest version on next client restart when pinned to `@latest`."
632
637
  },
633
638
  {
634
639
  type: "heading",
@@ -638,7 +643,7 @@ var sections2 = [
638
643
  },
639
644
  {
640
645
  type: "paragraph",
641
- text: "After adding the config and restarting your MCP client, verify the connection by asking the agent to list your schemas. This is a lightweight read-only call that confirms the API key is valid and the server is reachable. If the call succeeds, all eleven tools are ready to use."
646
+ text: "After adding the config and restarting your MCP client, verify the connection by asking the agent to list your schemas. This is a lightweight read-only call that confirms the API key is valid and the server is reachable. If the call succeeds, all sixteen public tools are ready to use."
642
647
  },
643
648
  {
644
649
  type: "code",
@@ -723,7 +728,7 @@ var sections2 = [
723
728
  { type: "code", language: "json", code: MCP_CONFIG_SNIPPET },
724
729
  {
725
730
  type: "paragraph",
726
- text: "Fully restart Claude Desktop (Cmd+Q on macOS, not just close the window). Talonic appears in the connected servers list with all eleven tools."
731
+ text: "Fully restart Claude Desktop (Cmd+Q on macOS, not just close the window). Talonic appears in the connected servers list with all sixteen public tools."
727
732
  },
728
733
  {
729
734
  type: "paragraph",
@@ -1030,7 +1035,7 @@ var sections2 = [
1030
1035
  },
1031
1036
  {
1032
1037
  type: "paragraph",
1033
- text: "After saving the config, reload your IDE window to pick up the changes. Continue discovers Talonic's eleven tools and two resources automatically. You can verify the connection by asking the agent to call `talonic_list_schemas` \u2014 it should return your saved schemas or an empty list."
1038
+ text: "After saving the config, reload your IDE window to pick up the changes. Continue discovers Talonic's sixteen public tools and two resources automatically. You can verify the connection by asking the agent to call `talonic_list_schemas` \u2014 it should return your saved schemas or an empty list."
1034
1039
  },
1035
1040
  {
1036
1041
  type: "paragraph",
@@ -1113,7 +1118,7 @@ var sections2 = [
1113
1118
  { type: "code", language: "json", code: MCP_CONFIG_SNIPPET },
1114
1119
  {
1115
1120
  type: "paragraph",
1116
- text: "Cowork is a chat-style MCP client that supports drag-and-drop file uploads and resource browsing. After adding the Talonic config, the eleven tools appear in the tool picker and the `talonic://schemas` and `talonic://webhooks/reference` resources are browseable in the resources panel."
1121
+ text: "Cowork is a chat-style MCP client that supports drag-and-drop file uploads and resource browsing. After adding the Talonic config, the sixteen public tools appear in the tool picker and the `talonic://schemas` and `talonic://webhooks/reference` resources are browseable in the resources panel."
1117
1122
  },
1118
1123
  {
1119
1124
  type: "paragraph",
@@ -2956,6 +2961,283 @@ Payment terms: Net 30`
2956
2961
  "Claude.ai",
2957
2962
  "32 KB cap"
2958
2963
  ]
2964
+ },
2965
+ {
2966
+ slug: "talonic-list-agent-tasks",
2967
+ parentSlug: "tools",
2968
+ title: "talonic_list_agent_tasks",
2969
+ seoTitle: "talonic_list_agent_tasks Tool \u2014 Talonic MCP",
2970
+ description: "List document-scoped work waiting at Agent stages in the current Talonic workspace.",
2971
+ content: [
2972
+ {
2973
+ type: "paragraph",
2974
+ text: "List Agent-stage tasks visible to the current workspace credential. The response contains task metadata and cursor pagination; payload data is deliberately fetched one task at a time so each disclosure can be audited."
2975
+ },
2976
+ {
2977
+ type: "heading",
2978
+ level: 3,
2979
+ id: "list-agent-tasks-workflow",
2980
+ text: "Start the pull workflow"
2981
+ },
2982
+ {
2983
+ type: "list",
2984
+ ordered: true,
2985
+ items: [
2986
+ 'Call `talonic_list_agent_tasks` with `status: "available"`.',
2987
+ "Inspect a candidate with `talonic_get_agent_task`.",
2988
+ "Claim it with `talonic_claim_agent_task` before doing work.",
2989
+ "Heartbeat while processing, then submit only fields declared in `output_contract`."
2990
+ ]
2991
+ },
2992
+ {
2993
+ type: "param-table",
2994
+ params: [
2995
+ {
2996
+ name: "status",
2997
+ type: "available | claimed | submitted | timed_out | cancelled",
2998
+ description: "Optional lifecycle-state filter. Start with `available` when looking for work."
2999
+ },
3000
+ {
3001
+ name: "limit",
3002
+ type: "integer",
3003
+ description: "Page size from 1 to 100. Defaults to 50."
3004
+ },
3005
+ {
3006
+ name: "cursor",
3007
+ type: "string",
3008
+ description: "Opaque `pagination.next_cursor` from the previous page."
3009
+ }
3010
+ ]
3011
+ },
3012
+ {
3013
+ type: "callout",
3014
+ text: "An empty worklist is normal: tasks exist only when a running document reaches an enabled Agent stage and the credential's Sources-IAM rules allow it."
3015
+ }
3016
+ ],
3017
+ related: [
3018
+ { label: "talonic_get_agent_task", slug: "talonic-get-agent-task" },
3019
+ { label: "talonic_claim_agent_task", slug: "talonic-claim-agent-task" }
3020
+ ],
3021
+ faq: [
3022
+ {
3023
+ question: "Does listing Agent tasks expose document data?",
3024
+ answer: "No. The list returns metadata only. Fetching one task's immutable input snapshot uses talonic_get_agent_task and is recorded as an audited disclosure."
3025
+ }
3026
+ ],
3027
+ mentions: ["Agent stage", "worklist", "MCP agent", "cursor pagination"]
3028
+ },
3029
+ {
3030
+ slug: "talonic-get-agent-task",
3031
+ parentSlug: "tools",
3032
+ title: "talonic_get_agent_task",
3033
+ seoTitle: "talonic_get_agent_task Tool \u2014 Talonic MCP",
3034
+ description: "Fetch one Agent task's immutable document snapshot, instructions, and declared output contract.",
3035
+ content: [
3036
+ {
3037
+ type: "paragraph",
3038
+ text: "Fetch the immutable input snapshot captured when one document reached an Agent stage. The payload also carries stage instructions, timeout policy, and the only output fields the agent may return."
3039
+ },
3040
+ {
3041
+ type: "param-table",
3042
+ params: [
3043
+ {
3044
+ name: "task_id",
3045
+ type: "UUID",
3046
+ required: true,
3047
+ description: "Task ID returned by `talonic_list_agent_tasks`."
3048
+ }
3049
+ ]
3050
+ },
3051
+ {
3052
+ type: "code",
3053
+ language: "json",
3054
+ title: "Key response fields",
3055
+ code: `{
3056
+ "id": "11111111-1111-4111-8111-111111111111",
3057
+ "status": "available",
3058
+ "input_snapshot": { "vendor_name": { "value": "Acme" } },
3059
+ "output_contract": [
3060
+ { "key": "risk_score", "dataType": "number", "required": true }
3061
+ ],
3062
+ "instructions": "Assess supplier risk from the supplied evidence.",
3063
+ "timeout_fallthrough": "route_to_review"
3064
+ }`
3065
+ },
3066
+ {
3067
+ type: "callout",
3068
+ variant: "warning",
3069
+ text: "Fetching a task payload is an audited data disclosure. Do not fetch tasks speculatively; inspect metadata first and fetch only work you intend to evaluate."
3070
+ }
3071
+ ],
3072
+ related: [
3073
+ { label: "talonic_list_agent_tasks", slug: "talonic-list-agent-tasks" },
3074
+ { label: "talonic_claim_agent_task", slug: "talonic-claim-agent-task" }
3075
+ ],
3076
+ faq: [
3077
+ {
3078
+ question: "Can the snapshot change while an agent processes it?",
3079
+ answer: "No. It is captured when the document enters the Agent stage and remains immutable for that task. Results are validated against the accompanying output_contract."
3080
+ }
3081
+ ],
3082
+ mentions: ["immutable snapshot", "output contract", "audit trail", "document task"]
3083
+ },
3084
+ {
3085
+ slug: "talonic-claim-agent-task",
3086
+ parentSlug: "tools",
3087
+ title: "talonic_claim_agent_task",
3088
+ seoTitle: "talonic_claim_agent_task Tool \u2014 Talonic MCP",
3089
+ description: "Acquire a leased claim on an available Agent task before processing it.",
3090
+ content: [
3091
+ {
3092
+ type: "paragraph",
3093
+ text: "Claim a task before processing. A successful claim returns the full payload plus a new `execution_epoch` and `lease_expires_at`; both prevent two agents from writing results for the same task."
3094
+ },
3095
+ {
3096
+ type: "param-table",
3097
+ params: [
3098
+ {
3099
+ name: "task_id",
3100
+ type: "UUID",
3101
+ required: true,
3102
+ description: "Available task to claim, or an expired claim to reclaim."
3103
+ }
3104
+ ]
3105
+ },
3106
+ {
3107
+ type: "callout",
3108
+ variant: "warning",
3109
+ text: "A live claim held by another actor returns HTTP 409. Do not retry in a tight loop. Select another available task or wait until the lease expires."
3110
+ },
3111
+ {
3112
+ type: "paragraph",
3113
+ text: "Save the returned `execution_epoch`. Every heartbeat and submit must echo that exact epoch. Reclaiming an expired lease increments it, permanently invalidating work from the earlier claimant."
3114
+ }
3115
+ ],
3116
+ related: [
3117
+ { label: "talonic_heartbeat_agent_task", slug: "talonic-heartbeat-agent-task" },
3118
+ { label: "talonic_submit_agent_task", slug: "talonic-submit-agent-task" }
3119
+ ],
3120
+ faq: [
3121
+ {
3122
+ question: "What is an execution epoch?",
3123
+ answer: "It is the claim generation. Each successful claim or reclaim receives a new integer; stale epochs are rejected so an expired worker cannot overwrite a newer worker's result."
3124
+ }
3125
+ ],
3126
+ mentions: ["claim lease", "execution epoch", "conflict", "reclaim"]
3127
+ },
3128
+ {
3129
+ slug: "talonic-heartbeat-agent-task",
3130
+ parentSlug: "tools",
3131
+ title: "talonic_heartbeat_agent_task",
3132
+ seoTitle: "talonic_heartbeat_agent_task Tool \u2014 Talonic MCP",
3133
+ description: "Extend an active Agent-task lease while processing continues.",
3134
+ content: [
3135
+ {
3136
+ type: "paragraph",
3137
+ text: "Extend the lease for a task you already claimed. Heartbeat before `lease_expires_at` when processing may take longer than the remaining lease window."
3138
+ },
3139
+ {
3140
+ type: "param-table",
3141
+ params: [
3142
+ {
3143
+ name: "task_id",
3144
+ type: "UUID",
3145
+ required: true,
3146
+ description: "Claimed task ID."
3147
+ },
3148
+ {
3149
+ name: "execution_epoch",
3150
+ type: "integer",
3151
+ required: true,
3152
+ description: "Exact epoch returned by the current successful claim."
3153
+ }
3154
+ ]
3155
+ },
3156
+ {
3157
+ type: "callout",
3158
+ variant: "warning",
3159
+ text: "A stale epoch or a claim owned by another actor returns HTTP 409. Stop work and do not submit results after that conflict."
3160
+ }
3161
+ ],
3162
+ related: [
3163
+ { label: "talonic_claim_agent_task", slug: "talonic-claim-agent-task" },
3164
+ { label: "talonic_submit_agent_task", slug: "talonic-submit-agent-task" }
3165
+ ],
3166
+ faq: [
3167
+ {
3168
+ question: "How often should an agent heartbeat?",
3169
+ answer: "Only when needed, comfortably before lease_expires_at. Use the updated lease expiry returned by each successful heartbeat rather than a fixed client-side assumption."
3170
+ }
3171
+ ],
3172
+ mentions: ["heartbeat", "lease expiry", "execution epoch", "long-running task"]
3173
+ },
3174
+ {
3175
+ slug: "talonic-submit-agent-task",
3176
+ parentSlug: "tools",
3177
+ title: "talonic_submit_agent_task",
3178
+ seoTitle: "talonic_submit_agent_task Tool \u2014 Talonic MCP",
3179
+ description: "Submit typed, declared Agent-task outputs transactionally and resume the parked document.",
3180
+ content: [
3181
+ {
3182
+ type: "paragraph",
3183
+ text: "Return the result of a claimed Agent task. Output keys must match `output_contract` exactly, required fields must be present, and every value must match its declared data type. The platform validates the entire result before writing any cell."
3184
+ },
3185
+ {
3186
+ type: "param-table",
3187
+ params: [
3188
+ { name: "task_id", type: "UUID", required: true, description: "Claimed task ID." },
3189
+ {
3190
+ name: "execution_epoch",
3191
+ type: "integer",
3192
+ required: true,
3193
+ description: "Exact epoch from the current claim."
3194
+ },
3195
+ {
3196
+ name: "outputs",
3197
+ type: "object",
3198
+ required: true,
3199
+ description: "Declared field key to `{ value, confidence?, reasoning? }`. Confidence is 0\u20131; reasoning is at most 4,000 characters."
3200
+ },
3201
+ {
3202
+ name: "summary",
3203
+ type: "string",
3204
+ description: "Optional overall result summary, at most 4,000 characters."
3205
+ }
3206
+ ]
3207
+ },
3208
+ {
3209
+ type: "code",
3210
+ language: "json",
3211
+ title: "Submit result",
3212
+ code: `{
3213
+ "task_id": "11111111-1111-4111-8111-111111111111",
3214
+ "execution_epoch": 3,
3215
+ "outputs": {
3216
+ "risk_score": {
3217
+ "value": 0.72,
3218
+ "confidence": 0.88,
3219
+ "reasoning": "Two adverse indicators in the supplied evidence."
3220
+ }
3221
+ },
3222
+ "summary": "Supplier requires enhanced review."
3223
+ }`
3224
+ },
3225
+ {
3226
+ type: "callout",
3227
+ text: "Successful outputs are attributed to `AI Agent (MCP)` in the audit trail and stored with `mcp_agent` provenance. They do not receive human-review authority in v1."
3228
+ }
3229
+ ],
3230
+ related: [
3231
+ { label: "talonic_get_agent_task", slug: "talonic-get-agent-task" },
3232
+ { label: "talonic_heartbeat_agent_task", slug: "talonic-heartbeat-agent-task" }
3233
+ ],
3234
+ faq: [
3235
+ {
3236
+ question: "Can an Agent task return extra fields it discovered?",
3237
+ answer: "No. Undeclared fields and invalid types are rejected before any value is written. Add desired outputs to the Agent stage contract first, then run a new document task."
3238
+ }
3239
+ ],
3240
+ mentions: ["transactional submit", "AI Agent (MCP)", "mcp_agent", "typed outputs"]
2959
3241
  }
2960
3242
  ];
2961
3243