@talonic/mcp 0.1.9 → 0.1.11

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/content.js CHANGED
@@ -45,9 +45,7 @@ var MCP_NAV_SECTIONS = [
45
45
  {
46
46
  id: "configuration",
47
47
  label: "Configuration",
48
- children: [
49
- { id: "env-variables", label: "Environment Variables" }
50
- ]
48
+ children: [{ id: "env-variables", label: "Environment Variables" }]
51
49
  },
52
50
  {
53
51
  id: "troubleshooting",
@@ -76,9 +74,7 @@ function deriveBreadcrumbs(sections7, leafId) {
76
74
  return [root];
77
75
  }
78
76
  function derivePrevNext(sections7, leafId) {
79
- const flat = sections7.flatMap(
80
- (s) => s.children ?? [{ id: s.id, label: s.label }]
81
- );
77
+ const flat = sections7.flatMap((s) => s.children ?? [{ id: s.id, label: s.label }]);
82
78
  const idx = flat.findIndex((c) => c.id === leafId);
83
79
  if (idx === -1) return { prev: null, next: null };
84
80
  const prevItem = idx > 0 ? flat[idx - 1] : void 0;
@@ -98,9 +94,18 @@ var sections = [
98
94
  seoTitle: "MCP Server Introduction \u2014 Talonic Docs",
99
95
  description: "Official Talonic MCP server. Lets AI agents extract structured, schema-validated data from any document via the Model Context Protocol.",
100
96
  content: [
101
- { type: "paragraph", text: "Official Talonic MCP server. Lets AI agents extract structured, schema-validated data from any document via the [Model Context Protocol](https://modelcontextprotocol.io)." },
102
- { type: "paragraph", text: "Seven tools and one resource: `talonic_extract`, `talonic_search`, `talonic_filter`, `talonic_get_document`, `talonic_to_markdown`, `talonic_list_schemas`, `talonic_save_schema`, plus the `talonic://schemas` resource." },
103
- { type: "paragraph", text: "Listed on the [official MCP Registry](https://registry.modelcontextprotocol.io/) as `io.github.talonicdev/talonic-mcp`. Verified end-to-end against production." }
97
+ {
98
+ type: "paragraph",
99
+ text: "Official Talonic MCP server. Lets AI agents extract structured, schema-validated data from any document via the [Model Context Protocol](https://modelcontextprotocol.io)."
100
+ },
101
+ {
102
+ type: "paragraph",
103
+ text: "Seven tools and one resource: `talonic_extract`, `talonic_search`, `talonic_filter`, `talonic_get_document`, `talonic_to_markdown`, `talonic_list_schemas`, `talonic_save_schema`, plus the `talonic://schemas` resource."
104
+ },
105
+ {
106
+ type: "paragraph",
107
+ text: "Listed on the [official MCP Registry](https://registry.modelcontextprotocol.io/) as `io.github.talonicdev/talonic-mcp`. Verified end-to-end against production."
108
+ }
104
109
  ],
105
110
  related: [
106
111
  { label: "Why Use This", slug: "why-mcp" },
@@ -108,8 +113,14 @@ var sections = [
108
113
  { label: "Node SDK", slug: "introduction" }
109
114
  ],
110
115
  faq: [
111
- { question: "What is the Talonic MCP server?", answer: "An official MCP server that gives AI agents (Claude Desktop, Cursor, Cline, etc.) the ability to extract structured data from documents using the Model Context Protocol." },
112
- { question: "Is the Talonic MCP server on the official MCP Registry?", answer: "Yes. It is listed as io.github.talonicdev/talonic-mcp on registry.modelcontextprotocol.io, maintained by Anthropic and the MCP steering group." }
116
+ {
117
+ question: "What is the Talonic MCP server?",
118
+ answer: "An official MCP server that gives AI agents (Claude Desktop, Cursor, Cline, etc.) the ability to extract structured data from documents using the Model Context Protocol."
119
+ },
120
+ {
121
+ question: "Is the Talonic MCP server on the official MCP Registry?",
122
+ answer: "Yes. It is listed as io.github.talonicdev/talonic-mcp on registry.modelcontextprotocol.io, maintained by Anthropic and the MCP steering group."
123
+ }
113
124
  ],
114
125
  mentions: ["MCP", "Model Context Protocol", "AI agents", "document extraction"]
115
126
  },
@@ -120,15 +131,24 @@ var sections = [
120
131
  seoTitle: "Why Talonic MCP \u2014 Talonic Docs",
121
132
  description: "Why AI agents should use the Talonic MCP server instead of raw OCR plus LLM calls for document extraction.",
122
133
  content: [
123
- { type: "paragraph", text: "When an agent needs to pull structured data out of a PDF, scan, image, or messy document, the usual approach is raw OCR plus an LLM call. Results are unreliable; tables get mangled, dates get misread, totals drift." },
124
- { type: "paragraph", text: "With this MCP server installed, the agent has a `talonic_extract` tool that returns schema-validated JSON with per-field confidence scores, a detected document type, and stable IDs for follow-up calls. Six other tools cover the rest of the workflow: searching the workspace, filtering by extracted field values, fetching a document's metadata, getting OCR markdown, listing saved schemas, and saving new ones." }
134
+ {
135
+ type: "paragraph",
136
+ text: "When an agent needs to pull structured data out of a PDF, scan, image, or messy document, the usual approach is raw OCR plus an LLM call. Results are unreliable; tables get mangled, dates get misread, totals drift."
137
+ },
138
+ {
139
+ type: "paragraph",
140
+ text: "With this MCP server installed, the agent has a `talonic_extract` tool that returns schema-validated JSON with per-field confidence scores, a detected document type, and stable IDs for follow-up calls. Six other tools cover the rest of the workflow: searching the workspace, filtering by extracted field values, fetching a document's metadata, getting OCR markdown, listing saved schemas, and saving new ones."
141
+ }
125
142
  ],
126
143
  related: [
127
144
  { label: "talonic_extract", slug: "talonic-extract" },
128
145
  { label: "Get an API Key", slug: "get-api-key" }
129
146
  ],
130
147
  faq: [
131
- { question: "Why use Talonic MCP instead of OCR + LLM?", answer: "Raw OCR + LLM calls produce unreliable results \u2014 mangled tables, misread dates, drifting totals. Talonic returns schema-validated JSON with per-field confidence scores and stable IDs for follow-up calls." }
148
+ {
149
+ question: "Why use Talonic MCP instead of OCR + LLM?",
150
+ answer: "Raw OCR + LLM calls produce unreliable results \u2014 mangled tables, misread dates, drifting totals. Talonic returns schema-validated JSON with per-field confidence scores and stable IDs for follow-up calls."
151
+ }
132
152
  ],
133
153
  mentions: ["OCR", "schema-validated", "confidence scores", "structured data"]
134
154
  },
@@ -139,25 +159,45 @@ var sections = [
139
159
  seoTitle: "Get an API Key \u2014 Talonic MCP",
140
160
  description: "Get a Talonic API key in 30 seconds. Each user runs against their own isolated workspace with private documents and schemas.",
141
161
  content: [
142
- { type: "paragraph", text: "Each user runs against their own isolated Talonic workspace. Your documents and schemas are private to you." },
143
- { type: "list", ordered: true, items: [
144
- "Sign up at [app.talonic.com](https://app.talonic.com). Free tier: 50 extractions per day, no credit card.",
145
- "Settings \u2192 API Keys \u2192 Create New Key.",
146
- "Copy the `tlnc_` value into your MCP client config (snippets below)."
147
- ] }
162
+ {
163
+ type: "paragraph",
164
+ text: "Each user runs against their own isolated Talonic workspace. Your documents and schemas are private to you."
165
+ },
166
+ {
167
+ type: "list",
168
+ ordered: true,
169
+ items: [
170
+ "Sign up at [app.talonic.com](https://app.talonic.com). Free tier: 50 extractions per day, no credit card.",
171
+ "Settings \u2192 API Keys \u2192 Create New Key.",
172
+ "Copy the `tlnc_` value into your MCP client config (snippets below)."
173
+ ]
174
+ }
148
175
  ],
149
176
  related: [
150
177
  { label: "Claude Desktop", slug: "claude-desktop" },
151
178
  { label: "Install Overview", slug: "install-overview" }
152
179
  ],
153
180
  faq: [
154
- { question: "How do I get a Talonic API key for MCP?", answer: "Sign up at app.talonic.com (free, no credit card), go to Settings > API Keys > Create New Key, and copy the tlnc_ value into your MCP client config." }
181
+ {
182
+ question: "How do I get a Talonic API key for MCP?",
183
+ answer: "Sign up at app.talonic.com (free, no credit card), go to Settings > API Keys > Create New Key, and copy the tlnc_ value into your MCP client config."
184
+ }
155
185
  ],
156
186
  mentions: ["API key", "tlnc_", "free tier"]
157
187
  }
158
188
  ];
159
189
 
160
190
  // src/content/sections/install.ts
191
+ var MCP_HOSTED_SNIPPET = `{
192
+ "mcpServers": {
193
+ "talonic": {
194
+ "url": "https://mcp.talonic.com/mcp",
195
+ "headers": {
196
+ "Authorization": "Bearer tlnc_your_key_here"
197
+ }
198
+ }
199
+ }
200
+ }`;
161
201
  var MCP_CONFIG_SNIPPET = `{
162
202
  "mcpServers": {
163
203
  "talonic": {
@@ -177,20 +217,50 @@ var sections2 = [
177
217
  seoTitle: "Install Talonic MCP \u2014 Talonic Docs",
178
218
  description: "Install the Talonic MCP server with a one-line npx invocation. No clone, no build. Works with every MCP client.",
179
219
  content: [
180
- { type: "paragraph", text: "The package is on npm. Every MCP client launches it the same way: a one-line `npx` invocation with your API key in the `env` block. No clone, no build." },
181
- { type: "code", language: "jsonc", title: "Universal config shape", code: `{
220
+ {
221
+ type: "paragraph",
222
+ text: "Two ways to connect. The hosted server at `mcp.talonic.com` requires zero install \u2014 paste one URL into any MCP client. Or run locally via `npx` if you prefer."
223
+ },
224
+ { type: "heading", level: 3, id: "hosted-recommended", text: "Hosted (recommended)" },
225
+ {
226
+ type: "paragraph",
227
+ text: "No install, no Node.js required. Works with every MCP client that supports remote servers:"
228
+ },
229
+ {
230
+ type: "code",
231
+ language: "jsonc",
232
+ title: "Hosted config",
233
+ code: `{
234
+ "url": "https://mcp.talonic.com/mcp",
235
+ "headers": { "Authorization": "Bearer tlnc_..." }
236
+ }`
237
+ },
238
+ { type: "heading", level: 3, id: "local-npx", text: "Local (npx)" },
239
+ { type: "paragraph", text: "Runs on your machine. Requires Node.js 18+:" },
240
+ {
241
+ type: "code",
242
+ language: "jsonc",
243
+ title: "Local config",
244
+ code: `{
182
245
  "command": "npx",
183
246
  "args": ["-y", "@talonic/mcp@latest"],
184
247
  "env": { "TALONIC_API_KEY": "tlnc_..." }
185
- }` },
186
- { type: "paragraph", text: "The `-y` flag skips the npm install prompt. Pinning to `@latest` means new versions are picked up on the next client restart. To pin to a specific version, replace `@latest` with `@0.1.6`." }
248
+ }`
249
+ },
250
+ {
251
+ type: "paragraph",
252
+ text: "The `-y` flag skips the npm install prompt. Pinning to `@latest` means new versions are picked up on the next client restart."
253
+ }
187
254
  ],
188
255
  related: [
189
256
  { label: "Claude Desktop", slug: "claude-desktop" },
190
257
  { label: "Cursor", slug: "cursor" }
191
258
  ],
192
259
  faq: [
193
- { question: "How do I install the Talonic MCP server?", answer: 'Add a one-line npx invocation to your MCP client config: command "npx", args ["-y", "@talonic/mcp@latest"], with your API key in the env block. No clone or build needed.' }
260
+ {
261
+ question: "How do I install the Talonic MCP server?",
262
+ answer: "Use the hosted server at mcp.talonic.com/mcp \u2014 just set the URL and your API key in any MCP client config. No install needed. Alternatively, run locally via npx @talonic/mcp."
263
+ }
194
264
  ],
195
265
  mentions: ["npx", "npm", "MCP client", "install"]
196
266
  },
@@ -201,16 +271,28 @@ var sections2 = [
201
271
  seoTitle: "Claude Desktop Setup \u2014 Talonic MCP",
202
272
  description: "Configure the Talonic MCP server in Claude Desktop on macOS and Windows.",
203
273
  content: [
204
- { type: "paragraph", text: "Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\\Claude\\claude_desktop_config.json` (Windows):" },
274
+ {
275
+ type: "paragraph",
276
+ text: "Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\\Claude\\claude_desktop_config.json` (Windows)."
277
+ },
278
+ { type: "heading", level: 3, id: "claude-desktop-hosted", text: "Hosted (recommended)" },
279
+ { type: "code", language: "json", code: MCP_HOSTED_SNIPPET },
280
+ { type: "heading", level: 3, id: "claude-desktop-local", text: "Local (npx)" },
205
281
  { type: "code", language: "json", code: MCP_CONFIG_SNIPPET },
206
- { type: "paragraph", text: "Fully restart Claude Desktop (Cmd+Q on macOS, not just close the window). Talonic appears in the connected servers list with all seven tools." }
282
+ {
283
+ type: "paragraph",
284
+ text: "Fully restart Claude Desktop (Cmd+Q on macOS, not just close the window). Talonic appears in the connected servers list with all seven tools."
285
+ }
207
286
  ],
208
287
  related: [
209
288
  { label: "Cursor", slug: "cursor" },
210
289
  { label: "Tool Reference", slug: "talonic-extract" }
211
290
  ],
212
291
  faq: [
213
- { question: "How do I add Talonic to Claude Desktop?", answer: "Edit claude_desktop_config.json, add the Talonic MCP server config with your API key, and fully restart Claude Desktop (Cmd+Q on macOS)." }
292
+ {
293
+ question: "How do I add Talonic to Claude Desktop?",
294
+ answer: "Edit claude_desktop_config.json, add the Talonic MCP server config with your API key, and fully restart Claude Desktop (Cmd+Q on macOS)."
295
+ }
214
296
  ],
215
297
  mentions: ["Claude Desktop", "macOS", "Windows"]
216
298
  },
@@ -221,7 +303,13 @@ var sections2 = [
221
303
  seoTitle: "Cursor Setup \u2014 Talonic MCP",
222
304
  description: "Configure the Talonic MCP server in Cursor IDE.",
223
305
  content: [
224
- { type: "paragraph", text: "Edit `~/.cursor/mcp.json` (or open Cursor settings \u2192 MCP \u2192 edit config):" },
306
+ {
307
+ type: "paragraph",
308
+ text: "Edit `~/.cursor/mcp.json` (or open Cursor settings \u2192 MCP \u2192 edit config):"
309
+ },
310
+ { type: "heading", level: 3, id: "cursor-hosted", text: "Hosted (recommended)" },
311
+ { type: "code", language: "json", code: MCP_HOSTED_SNIPPET },
312
+ { type: "heading", level: 3, id: "cursor-local", text: "Local (npx)" },
225
313
  { type: "code", language: "json", code: MCP_CONFIG_SNIPPET }
226
314
  ],
227
315
  related: [
@@ -229,7 +317,10 @@ var sections2 = [
229
317
  { label: "Cline", slug: "cline" }
230
318
  ],
231
319
  faq: [
232
- { question: "How do I add Talonic MCP to Cursor?", answer: "Edit ~/.cursor/mcp.json and add the Talonic MCP server config with your API key." }
320
+ {
321
+ question: "How do I add Talonic MCP to Cursor?",
322
+ answer: "Edit ~/.cursor/mcp.json and add the Talonic MCP server config with your API key."
323
+ }
233
324
  ],
234
325
  mentions: ["Cursor", "IDE"]
235
326
  },
@@ -240,7 +331,13 @@ var sections2 = [
240
331
  seoTitle: "Cline Setup \u2014 Talonic MCP",
241
332
  description: "Configure the Talonic MCP server in the Cline VS Code extension.",
242
333
  content: [
243
- { type: "paragraph", text: "Open the Cline panel \u2192 settings (gear icon) \u2192 MCP Servers \u2192 Edit. Add the standard config entry. Save and restart the panel." },
334
+ {
335
+ type: "paragraph",
336
+ text: "Open the Cline panel \u2192 settings (gear icon) \u2192 MCP Servers \u2192 Edit. Save and restart the panel."
337
+ },
338
+ { type: "heading", level: 3, id: "cline-hosted", text: "Hosted (recommended)" },
339
+ { type: "code", language: "json", code: MCP_HOSTED_SNIPPET },
340
+ { type: "heading", level: 3, id: "cline-local", text: "Local (npx)" },
244
341
  { type: "code", language: "json", code: MCP_CONFIG_SNIPPET }
245
342
  ],
246
343
  related: [
@@ -248,7 +345,10 @@ var sections2 = [
248
345
  { label: "Cursor", slug: "cursor" }
249
346
  ],
250
347
  faq: [
251
- { question: "How do I add Talonic MCP to Cline?", answer: "Open the Cline panel settings, go to MCP Servers, click Edit, and add the Talonic config entry." }
348
+ {
349
+ question: "How do I add Talonic MCP to Cline?",
350
+ answer: "Open the Cline panel settings, go to MCP Servers, click Edit, and add the Talonic config entry."
351
+ }
252
352
  ],
253
353
  mentions: ["Cline", "VS Code"]
254
354
  },
@@ -260,21 +360,41 @@ var sections2 = [
260
360
  description: "Configure the Talonic MCP server in Continue for VS Code and JetBrains.",
261
361
  content: [
262
362
  { type: "paragraph", text: "Edit `~/.continue/config.json`. Add to the `mcpServers` array:" },
263
- { type: "code", language: "json", code: `{
363
+ { type: "heading", level: 3, id: "continue-hosted", text: "Hosted (recommended)" },
364
+ {
365
+ type: "code",
366
+ language: "json",
367
+ code: `{
368
+ "name": "talonic",
369
+ "url": "https://mcp.talonic.com/mcp",
370
+ "headers": {
371
+ "Authorization": "Bearer tlnc_your_key_here"
372
+ }
373
+ }`
374
+ },
375
+ { type: "heading", level: 3, id: "continue-local", text: "Local (npx)" },
376
+ {
377
+ type: "code",
378
+ language: "json",
379
+ code: `{
264
380
  "name": "talonic",
265
381
  "command": "npx",
266
382
  "args": ["-y", "@talonic/mcp@latest"],
267
383
  "env": {
268
384
  "TALONIC_API_KEY": "tlnc_your_key_here"
269
385
  }
270
- }` }
386
+ }`
387
+ }
271
388
  ],
272
389
  related: [
273
390
  { label: "Cowork", slug: "cowork" },
274
391
  { label: "Cline", slug: "cline" }
275
392
  ],
276
393
  faq: [
277
- { question: "How do I add Talonic MCP to Continue?", answer: "Edit ~/.continue/config.json and add a Talonic entry to the mcpServers array with your API key." }
394
+ {
395
+ question: "How do I add Talonic MCP to Continue?",
396
+ answer: "Edit ~/.continue/config.json and add a Talonic entry to the mcpServers array with your API key."
397
+ }
278
398
  ],
279
399
  mentions: ["Continue", "VS Code", "JetBrains"]
280
400
  },
@@ -285,7 +405,10 @@ var sections2 = [
285
405
  seoTitle: "Cowork Setup \u2014 Talonic MCP",
286
406
  description: "Configure the Talonic MCP server in Cowork.",
287
407
  content: [
288
- { type: "paragraph", text: "Open Cowork settings \u2192 MCP Servers \u2192 Add. Use the same shape as Claude Desktop above." },
408
+ { type: "paragraph", text: "Open Cowork settings \u2192 MCP Servers \u2192 Add." },
409
+ { type: "heading", level: 3, id: "cowork-hosted", text: "Hosted (recommended)" },
410
+ { type: "code", language: "json", code: MCP_HOSTED_SNIPPET },
411
+ { type: "heading", level: 3, id: "cowork-local", text: "Local (npx)" },
289
412
  { type: "code", language: "json", code: MCP_CONFIG_SNIPPET }
290
413
  ],
291
414
  related: [
@@ -293,7 +416,10 @@ var sections2 = [
293
416
  { label: "Tool Reference", slug: "talonic-extract" }
294
417
  ],
295
418
  faq: [
296
- { question: "How do I add Talonic MCP to Cowork?", answer: "Open Cowork settings, go to MCP Servers, click Add, and paste the standard Talonic config with your API key." }
419
+ {
420
+ question: "How do I add Talonic MCP to Cowork?",
421
+ answer: "Open Cowork settings, go to MCP Servers, click Add, and paste the standard Talonic config with your API key."
422
+ }
297
423
  ],
298
424
  mentions: ["Cowork"]
299
425
  }
@@ -309,17 +435,127 @@ var sections3 = [
309
435
  description: "Extract structured, schema-validated data from a document. Returns clean JSON with per-field confidence scores.",
310
436
  content: [
311
437
  { type: "paragraph", text: "Extract structured, schema-validated data from a document." },
312
- { type: "paragraph", text: "Inputs: one of `file_data` + `filename` (recommended for chat clients), `file_path`, `file_url`, or `document_id`, plus a `schema` (or `schema_id`). Returns clean JSON with per-field confidence scores." },
313
- { type: "param-table", params: [
314
- { name: "file_data", type: "string", description: "Base64-encoded file bytes. Recommended for chat clients (drag-and-drop)." },
315
- { name: "filename", type: "string", description: "Original filename (used for MIME type inference when using `file_data`)." },
316
- { name: "file_path", type: "string", description: "Local file path." },
317
- { name: "file_url", type: "string", description: "Remote file URL." },
318
- { name: "document_id", type: "string", description: "ID of a previously uploaded document." },
319
- { name: "schema", type: "object", description: "Inline schema definition (JSON Schema)." },
320
- { name: "schema_id", type: "string", description: "UUID of a saved schema." }
321
- ] },
322
- { type: "callout", variant: "warning", text: "Always provide a `schema` or `schema_id`. Auto-discovery extract (no schema) is not reliable in v0.1." }
438
+ {
439
+ type: "paragraph",
440
+ text: "Inputs: one of `file_data` + `filename` (recommended for chat clients), `file_path`, `file_url`, or `document_id`, plus a `schema` (or `schema_id`). Returns clean JSON with per-field confidence scores."
441
+ },
442
+ {
443
+ type: "param-table",
444
+ params: [
445
+ {
446
+ name: "file_data",
447
+ type: "string",
448
+ description: "Base64-encoded file bytes. Recommended for chat clients (drag-and-drop)."
449
+ },
450
+ {
451
+ name: "filename",
452
+ type: "string",
453
+ description: "Original filename (used for MIME type inference when using `file_data`)."
454
+ },
455
+ { name: "file_path", type: "string", description: "Local file path." },
456
+ { name: "file_url", type: "string", description: "Remote file URL." },
457
+ {
458
+ name: "document_id",
459
+ type: "string",
460
+ description: "ID of a previously uploaded document."
461
+ },
462
+ {
463
+ name: "schema",
464
+ type: "object",
465
+ description: "Inline schema definition (JSON Schema or flat key-type map)."
466
+ },
467
+ {
468
+ name: "schema_id",
469
+ type: "string",
470
+ description: "UUID or SCH-XXXXXXXX short ID of a saved schema."
471
+ },
472
+ {
473
+ name: "instructions",
474
+ type: "string",
475
+ description: "Natural-language guidance for the extractor."
476
+ },
477
+ {
478
+ name: "include_markdown",
479
+ type: "boolean",
480
+ description: "Include OCR markdown alongside structured data."
481
+ }
482
+ ]
483
+ },
484
+ {
485
+ type: "callout",
486
+ variant: "warning",
487
+ text: "Always provide a `schema` or `schema_id`. Auto-discovery extract (no schema) is not reliable in v0.1."
488
+ },
489
+ { type: "heading", level: 3, id: "extract-inline-schema", text: "Example: inline schema" },
490
+ {
491
+ type: "code",
492
+ language: "json",
493
+ title: "Tool input",
494
+ code: `{
495
+ "file_url": "https://example.com/invoice-2026-001.pdf",
496
+ "schema": {
497
+ "type": "object",
498
+ "properties": {
499
+ "vendor_name": { "type": "string" },
500
+ "invoice_number": { "type": "string" },
501
+ "total_amount": { "type": "number" },
502
+ "due_date": { "type": "string", "format": "date" },
503
+ "line_items": {
504
+ "type": "array",
505
+ "items": {
506
+ "type": "object",
507
+ "properties": {
508
+ "description": { "type": "string" },
509
+ "amount": { "type": "number" }
510
+ }
511
+ }
512
+ }
513
+ },
514
+ "required": ["vendor_name", "total_amount"]
515
+ },
516
+ "instructions": "Amounts are in EUR. Focus on the billing section."
517
+ }`
518
+ },
519
+ {
520
+ type: "code",
521
+ language: "json",
522
+ title: "Tool response",
523
+ code: `{
524
+ "document_id": "doc_8f3a...",
525
+ "data": {
526
+ "vendor_name": "Meridian Energy AG",
527
+ "invoice_number": "INV-2026-001",
528
+ "total_amount": 1500.00,
529
+ "due_date": "2026-06-15",
530
+ "line_items": [
531
+ { "description": "Consulting \u2014 April", "amount": 1200.00 },
532
+ { "description": "Travel expenses", "amount": 300.00 }
533
+ ]
534
+ },
535
+ "confidence": {
536
+ "vendor_name": 0.98,
537
+ "invoice_number": 0.95,
538
+ "total_amount": 0.99,
539
+ "due_date": 0.97
540
+ },
541
+ "document": {
542
+ "filename": "invoice-2026-001.pdf",
543
+ "pages": 2,
544
+ "type_detected": "Invoice",
545
+ "language_detected": "de"
546
+ }
547
+ }`
548
+ },
549
+ { type: "heading", level: 3, id: "extract-schema-id", text: "Example: saved schema" },
550
+ {
551
+ type: "code",
552
+ language: "json",
553
+ title: "Tool input",
554
+ code: `{
555
+ "file_path": "./contracts/lease-agreement.pdf",
556
+ "schema_id": "SCH-A1B2C3D4"
557
+ }`
558
+ }
323
559
  ],
324
560
  related: [
325
561
  { label: "talonic_to_markdown", slug: "talonic-to-markdown" },
@@ -327,7 +563,10 @@ var sections3 = [
327
563
  { label: "Drag & Drop Files", slug: "drag-and-drop" }
328
564
  ],
329
565
  faq: [
330
- { question: "How does talonic_extract work?", answer: "Send a document (file_data, file_path, file_url, or document_id) with a schema or schema_id. The tool returns schema-validated JSON with per-field confidence scores." }
566
+ {
567
+ question: "How does talonic_extract work?",
568
+ answer: "Send a document (file_data, file_path, file_url, or document_id) with a schema or schema_id. The tool returns schema-validated JSON with per-field confidence scores."
569
+ }
331
570
  ],
332
571
  mentions: ["extract", "schema", "confidence scores", "file_data"]
333
572
  },
@@ -338,16 +577,71 @@ var sections3 = [
338
577
  seoTitle: "talonic_search Tool \u2014 Talonic MCP",
339
578
  description: "Omnisearch across documents, fields, sources, and schemas in the workspace. Supports conceptual and fuzzy queries.",
340
579
  content: [
341
- { type: "paragraph", text: "Omnisearch across documents, fields, sources, and schemas in the workspace. Use for conceptual or fuzzy queries." },
342
- { type: "param-table", params: [
343
- { name: "query", type: "string", required: true, description: "The search query. Supports fuzzy and conceptual matching." }
344
- ] }
345
- ],
346
- related: [
347
- { label: "talonic_filter", slug: "talonic-filter" }
580
+ {
581
+ type: "paragraph",
582
+ text: "Omnisearch across documents, fields, sources, and schemas in the workspace. Use for conceptual or fuzzy queries."
583
+ },
584
+ {
585
+ type: "param-table",
586
+ params: [
587
+ {
588
+ name: "query",
589
+ type: "string",
590
+ required: true,
591
+ description: "The search query. Supports fuzzy and conceptual matching."
592
+ },
593
+ {
594
+ name: "limit",
595
+ type: "integer",
596
+ description: "Maximum results per entity type. Default: 5."
597
+ }
598
+ ]
599
+ },
600
+ { type: "heading", level: 3, id: "search-example", text: "Example" },
601
+ {
602
+ type: "code",
603
+ language: "json",
604
+ title: "Tool input",
605
+ code: `{
606
+ "query": "indemnification clauses Acme",
607
+ "limit": 10
608
+ }`
609
+ },
610
+ {
611
+ type: "code",
612
+ language: "json",
613
+ title: "Tool response",
614
+ code: `{
615
+ "documents": [
616
+ {
617
+ "id": "doc_4e7b...",
618
+ "filename": "acme-services-agreement.pdf",
619
+ "type_detected": "Services Agreement",
620
+ "score": 0.92
621
+ }
622
+ ],
623
+ "fieldMatches": [
624
+ {
625
+ "fieldName": "indemnification.cap_amount",
626
+ "documentId": "doc_4e7b...",
627
+ "value": "2x annual fees",
628
+ "score": 0.88
629
+ }
630
+ ],
631
+ "schemas": [],
632
+ "sources": [],
633
+ "fields": [
634
+ { "canonicalName": "indemnification.cap_amount", "type": "string" }
635
+ ]
636
+ }`
637
+ }
348
638
  ],
639
+ related: [{ label: "talonic_filter", slug: "talonic-filter" }],
349
640
  faq: [
350
- { question: "What does talonic_search do?", answer: "It searches across documents, fields, sources, and schemas in the workspace using fuzzy and conceptual matching." }
641
+ {
642
+ question: "What does talonic_search do?",
643
+ answer: "It searches across documents, fields, sources, and schemas in the workspace using fuzzy and conceptual matching."
644
+ }
351
645
  ],
352
646
  mentions: ["search", "omnisearch", "fuzzy"]
353
647
  },
@@ -358,16 +652,95 @@ var sections3 = [
358
652
  seoTitle: "talonic_filter Tool \u2014 Talonic MCP",
359
653
  description: "Filter documents by extracted field values using composable conditions like eq, gt, between, and contains.",
360
654
  content: [
361
- { type: "paragraph", text: "Filter documents by extracted field values using composable conditions (`eq`, `gt`, `between`, `contains`, etc.)." },
362
- { type: "paragraph", text: "Accepts canonical field names (e.g. `vendor.name`, `policy.0_coverage_type`) which the Talonic API resolves to IDs server-side, or UUIDs directly." },
363
- { type: "callout", variant: "warning", text: "The `is_not_empty` operator currently underreports. Use specific operators (`eq`, `gt`, `contains`, etc.) against known values when possible." }
655
+ {
656
+ type: "paragraph",
657
+ text: "Filter documents by extracted field values using composable conditions (`eq`, `gt`, `between`, `contains`, etc.)."
658
+ },
659
+ {
660
+ type: "paragraph",
661
+ text: "Accepts canonical field names (e.g. `vendor.name`, `policy.0_coverage_type`) which the Talonic API resolves to IDs server-side, or UUIDs directly."
662
+ },
663
+ {
664
+ type: "param-table",
665
+ params: [
666
+ {
667
+ name: "conditions",
668
+ type: "array",
669
+ required: true,
670
+ description: "Filter conditions, AND-ed together. Each has `field` or `field_id`, `operator`, and `value`."
671
+ },
672
+ {
673
+ name: "search",
674
+ type: "string",
675
+ description: "Optional free-text search applied alongside filters."
676
+ },
677
+ {
678
+ name: "sort",
679
+ type: "object",
680
+ description: 'Sort by a field: `{ field, direction: "asc" | "desc" }`.'
681
+ },
682
+ { name: "page", type: "integer", description: "Page number for pagination." },
683
+ { name: "limit", type: "integer", description: "Results per page. Default: 50." }
684
+ ]
685
+ },
686
+ {
687
+ type: "callout",
688
+ variant: "warning",
689
+ text: "The `is_not_empty` operator currently underreports. Use specific operators (`eq`, `gt`, `contains`, etc.) against known values when possible."
690
+ },
691
+ { type: "heading", level: 3, id: "filter-example", text: "Example" },
692
+ {
693
+ type: "code",
694
+ language: "json",
695
+ title: "Tool input",
696
+ code: `{
697
+ "conditions": [
698
+ { "field": "vendor.name", "operator": "eq", "value": "Meridian Energy AG" },
699
+ { "field": "invoice.total_eur", "operator": "gt", "value": 1000 }
700
+ ],
701
+ "sort": { "field": "invoice.total_eur", "direction": "desc" },
702
+ "limit": 20
703
+ }`
704
+ },
705
+ {
706
+ type: "code",
707
+ language: "json",
708
+ title: "Tool response",
709
+ code: `{
710
+ "data": [
711
+ {
712
+ "document_id": "doc_8f3a...",
713
+ "filename": "invoice-2026-001.pdf",
714
+ "fields": {
715
+ "vendor.name": "Meridian Energy AG",
716
+ "invoice.total_eur": 1500.00,
717
+ "invoice.due_date": "2026-06-15"
718
+ }
719
+ },
720
+ {
721
+ "document_id": "doc_c2d9...",
722
+ "filename": "invoice-2026-003.pdf",
723
+ "fields": {
724
+ "vendor.name": "Meridian Energy AG",
725
+ "invoice.total_eur": 1200.00,
726
+ "invoice.due_date": "2026-04-30"
727
+ }
728
+ }
729
+ ],
730
+ "total": 2,
731
+ "page": 1
732
+ }`
733
+ }
364
734
  ],
365
735
  related: [
366
736
  { label: "talonic_search", slug: "talonic-search" },
367
737
  { label: "Known Limitations", slug: "known-limitations" }
368
738
  ],
369
739
  faq: [
370
- { question: "How do I filter documents by field value?", answer: "Use talonic_filter with canonical field names and operators like eq, gt, between, contains. The API resolves field names to IDs server-side." }
740
+ {
741
+ question: "How do I filter documents by field value?",
742
+ answer: "Use talonic_filter with canonical field names and operators like eq, gt, between, contains. The API resolves field names to IDs server-side."
743
+ }
371
744
  ],
372
745
  mentions: ["filter", "canonical field names", "operators"]
373
746
  },
@@ -378,17 +751,61 @@ var sections3 = [
378
751
  seoTitle: "talonic_get_document Tool \u2014 Talonic MCP",
379
752
  description: "Fetch full metadata for a single document by ID, including processing log and link URLs.",
380
753
  content: [
381
- { type: "paragraph", text: "Fetch full metadata for a single document by ID, including processing log and link URLs." },
382
- { type: "param-table", params: [
383
- { name: "document_id", type: "string", required: true, description: "The document UUID." }
384
- ] }
754
+ {
755
+ type: "paragraph",
756
+ text: "Fetch full metadata for a single document by ID, including processing log and link URLs."
757
+ },
758
+ {
759
+ type: "param-table",
760
+ params: [
761
+ {
762
+ name: "document_id",
763
+ type: "string",
764
+ required: true,
765
+ description: "The document UUID."
766
+ }
767
+ ]
768
+ },
769
+ { type: "heading", level: 3, id: "get-document-example", text: "Example" },
770
+ {
771
+ type: "code",
772
+ language: "json",
773
+ title: "Tool input",
774
+ code: `{
775
+ "document_id": "doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c"
776
+ }`
777
+ },
778
+ {
779
+ type: "code",
780
+ language: "json",
781
+ title: "Tool response",
782
+ code: `{
783
+ "id": "doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
784
+ "filename": "invoice-2026-001.pdf",
785
+ "status": "completed",
786
+ "pages": 2,
787
+ "size_bytes": 184320,
788
+ "mime_type": "application/pdf",
789
+ "type_detected": "Invoice",
790
+ "language_detected": "de",
791
+ "source": { "id": "src_a1b2...", "type": "api" },
792
+ "links": {
793
+ "self": "https://api.talonic.com/v1/documents/doc_8f3a...",
794
+ "extractions": "https://api.talonic.com/v1/documents/doc_8f3a.../extractions",
795
+ "dashboard": "https://app.talonic.com/documents/doc_8f3a..."
796
+ }
797
+ }`
798
+ }
385
799
  ],
386
800
  related: [
387
801
  { label: "talonic_to_markdown", slug: "talonic-to-markdown" },
388
802
  { label: "talonic_extract", slug: "talonic-extract" }
389
803
  ],
390
804
  faq: [
391
- { question: "How do I get document metadata via MCP?", answer: "Call talonic_get_document with the document UUID to get full metadata including processing log and link URLs." }
805
+ {
806
+ question: "How do I get document metadata via MCP?",
807
+ answer: "Call talonic_get_document with the document UUID to get full metadata including processing log and link URLs."
808
+ }
392
809
  ],
393
810
  mentions: ["document", "metadata", "processing log"]
394
811
  },
@@ -399,14 +816,69 @@ var sections3 = [
399
816
  seoTitle: "talonic_to_markdown Tool \u2014 Talonic MCP",
400
817
  description: "Get OCR-converted markdown for a document. Accepts document_id, file_data + filename, file_path, or file_url.",
401
818
  content: [
402
- { type: "paragraph", text: "Get OCR-converted markdown for a document. Accepts `document_id` (cheapest \u2014 no re-upload), `file_data` + `filename`, `file_path`, or `file_url`." }
819
+ {
820
+ type: "paragraph",
821
+ text: "Get OCR-converted markdown for a document. Accepts `document_id` (cheapest \u2014 no re-upload), `file_data` + `filename`, `file_path`, or `file_url`."
822
+ },
823
+ {
824
+ type: "param-table",
825
+ params: [
826
+ {
827
+ name: "document_id",
828
+ type: "string",
829
+ description: "ID of an already-ingested document (cheapest path)."
830
+ },
831
+ {
832
+ name: "file_data",
833
+ type: "string",
834
+ description: "Base64-encoded file bytes. Pair with `filename`."
835
+ },
836
+ { name: "filename", type: "string", description: "Original filename with extension." },
837
+ { name: "file_path", type: "string", description: "Local file path." },
838
+ {
839
+ name: "file_url",
840
+ type: "string",
841
+ description: "Remote URL the API fetches server-side."
842
+ }
843
+ ]
844
+ },
845
+ { type: "heading", level: 3, id: "to-markdown-example", text: "Example" },
846
+ {
847
+ type: "code",
848
+ language: "json",
849
+ title: "Tool input",
850
+ code: `{
851
+ "document_id": "doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c"
852
+ }`
853
+ },
854
+ {
855
+ type: "code",
856
+ language: "markdown",
857
+ title: "Tool response",
858
+ code: `# Invoice INV-2026-001
859
+
860
+ **Meridian Energy AG**
861
+ Musterstra\xDFe 42, 10115 Berlin
862
+
863
+ | Item | Amount |
864
+ |-----------------------|------------|
865
+ | Consulting \u2014 April | \u20AC1,200.00 |
866
+ | Travel expenses | \u20AC300.00 |
867
+ | **Total** | **\u20AC1,500.00** |
868
+
869
+ Due date: 15 June 2026
870
+ Payment terms: Net 30`
871
+ }
403
872
  ],
404
873
  related: [
405
874
  { label: "talonic_extract", slug: "talonic-extract" },
406
875
  { label: "Drag & Drop Files", slug: "drag-and-drop" }
407
876
  ],
408
877
  faq: [
409
- { question: "How do I get markdown from a document via MCP?", answer: "Call talonic_to_markdown with a document_id (cheapest), or provide the file directly via file_data, file_path, or file_url." }
878
+ {
879
+ question: "How do I get markdown from a document via MCP?",
880
+ answer: "Call talonic_to_markdown with a document_id (cheapest), or provide the file directly via file_data, file_path, or file_url."
881
+ }
410
882
  ],
411
883
  mentions: ["markdown", "OCR", "document_id"]
412
884
  },
@@ -417,15 +889,64 @@ var sections3 = [
417
889
  seoTitle: "talonic_list_schemas Tool \u2014 Talonic MCP",
418
890
  description: "List all saved schemas with their definitions in the workspace.",
419
891
  content: [
420
- { type: "paragraph", text: "List all saved schemas with their definitions. Returns schema IDs (both UUID and `SCH-XXXXXXXX` short format), names, and field definitions." },
421
- { type: "paragraph", text: "The `talonic://schemas` resource exposes the same data to clients that browse resources separately (Claude Desktop and Cowork render these in the UI)." }
892
+ {
893
+ type: "paragraph",
894
+ text: "List all saved schemas with their definitions. Returns schema IDs (both UUID and `SCH-XXXXXXXX` short format), names, and field definitions."
895
+ },
896
+ {
897
+ type: "paragraph",
898
+ text: "The `talonic://schemas` resource exposes the same data to clients that browse resources separately (Claude Desktop and Cowork render these in the UI)."
899
+ },
900
+ { type: "heading", level: 3, id: "list-schemas-example", text: "Example" },
901
+ { type: "paragraph", text: "No input parameters required." },
902
+ {
903
+ type: "code",
904
+ language: "json",
905
+ title: "Tool response",
906
+ code: `{
907
+ "schemas": [
908
+ {
909
+ "id": "sch_7a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
910
+ "short_id": "SCH-A1B2C3D4",
911
+ "name": "Standard Invoice",
912
+ "description": "Extracts vendor, line items, totals, and payment terms.",
913
+ "version": 3,
914
+ "field_count": 6,
915
+ "definition": {
916
+ "type": "object",
917
+ "properties": {
918
+ "vendor_name": { "type": "string" },
919
+ "invoice_number": { "type": "string" },
920
+ "total_amount": { "type": "number" },
921
+ "due_date": { "type": "string", "format": "date" },
922
+ "currency": { "type": "string" },
923
+ "line_items": { "type": "array" }
924
+ },
925
+ "required": ["vendor_name", "total_amount"]
926
+ }
927
+ },
928
+ {
929
+ "id": "sch_e5f6a7b8-c9d0-1e2f-3a4b-5c6d7e8f9a0b",
930
+ "short_id": "SCH-E5F6A7B8",
931
+ "name": "Certificate of Insurance",
932
+ "description": "Extracts insured party, coverage types, limits, and expiry.",
933
+ "version": 1,
934
+ "field_count": 8,
935
+ "definition": { "type": "object", "properties": { "..." : {} } }
936
+ }
937
+ ]
938
+ }`
939
+ }
422
940
  ],
423
941
  related: [
424
942
  { label: "talonic_save_schema", slug: "talonic-save-schema" },
425
943
  { label: "talonic_extract", slug: "talonic-extract" }
426
944
  ],
427
945
  faq: [
428
- { question: "How do I list schemas via MCP?", answer: "Call talonic_list_schemas to get all saved schemas with their definitions. The talonic://schemas resource also exposes this data." }
946
+ {
947
+ question: "How do I list schemas via MCP?",
948
+ answer: "Call talonic_list_schemas to get all saved schemas with their definitions. The talonic://schemas resource also exposes this data."
949
+ }
429
950
  ],
430
951
  mentions: ["schemas", "list", "SCH-XXXXXXXX"]
431
952
  },
@@ -436,15 +957,89 @@ var sections3 = [
436
957
  seoTitle: "talonic_save_schema Tool \u2014 Talonic MCP",
437
958
  description: "Save a schema definition to the workspace for reuse across extractions.",
438
959
  content: [
439
- { type: "paragraph", text: "Save a schema definition to the workspace for reuse. Returns a `schema_id` that can be passed to `talonic_extract`." },
440
- { type: "callout", text: 'Prefer full JSON Schema format with `type: "object"` and `properties`. The flat key-type map format is not fully supported server-side yet.' }
960
+ {
961
+ type: "paragraph",
962
+ text: "Save a schema definition to the workspace for reuse. Returns a `schema_id` that can be passed to `talonic_extract`."
963
+ },
964
+ {
965
+ type: "param-table",
966
+ params: [
967
+ {
968
+ name: "name",
969
+ type: "string",
970
+ required: true,
971
+ description: "Human-readable schema name."
972
+ },
973
+ {
974
+ name: "definition",
975
+ type: "object",
976
+ required: true,
977
+ description: 'Schema definition. Full JSON Schema `{type: "object", properties: {...}}` recommended.'
978
+ },
979
+ {
980
+ name: "description",
981
+ type: "string",
982
+ description: "What this schema extracts and when to use it."
983
+ }
984
+ ]
985
+ },
986
+ {
987
+ type: "callout",
988
+ text: 'Prefer full JSON Schema format with `type: "object"` and `properties`. The flat key-type map format is not fully supported server-side yet.'
989
+ },
990
+ { type: "heading", level: 3, id: "save-schema-example", text: "Example" },
991
+ {
992
+ type: "code",
993
+ language: "json",
994
+ title: "Tool input",
995
+ code: `{
996
+ "name": "Standard Invoice",
997
+ "description": "Extracts vendor, line items, totals, and payment terms from invoices.",
998
+ "definition": {
999
+ "type": "object",
1000
+ "properties": {
1001
+ "vendor_name": { "type": "string" },
1002
+ "invoice_number": { "type": "string" },
1003
+ "total_amount": { "type": "number" },
1004
+ "due_date": { "type": "string", "format": "date" },
1005
+ "line_items": {
1006
+ "type": "array",
1007
+ "items": {
1008
+ "type": "object",
1009
+ "properties": {
1010
+ "description": { "type": "string" },
1011
+ "amount": { "type": "number" }
1012
+ }
1013
+ }
1014
+ }
1015
+ },
1016
+ "required": ["vendor_name", "total_amount"]
1017
+ }
1018
+ }`
1019
+ },
1020
+ {
1021
+ type: "code",
1022
+ language: "json",
1023
+ title: "Tool response",
1024
+ code: `{
1025
+ "id": "sch_7a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
1026
+ "short_id": "SCH-A1B2C3D4",
1027
+ "name": "Standard Invoice",
1028
+ "description": "Extracts vendor, line items, totals, and payment terms from invoices.",
1029
+ "version": 1,
1030
+ "field_count": 5
1031
+ }`
1032
+ }
441
1033
  ],
442
1034
  related: [
443
1035
  { label: "talonic_list_schemas", slug: "talonic-list-schemas" },
444
1036
  { label: "talonic_extract", slug: "talonic-extract" }
445
1037
  ],
446
1038
  faq: [
447
- { question: "How do I save a schema via MCP?", answer: "Call talonic_save_schema with a name and JSON Schema definition. It returns a schema_id for reuse in talonic_extract calls." }
1039
+ {
1040
+ question: "How do I save a schema via MCP?",
1041
+ answer: "Call talonic_save_schema with a name and JSON Schema definition. It returns a schema_id for reuse in talonic_extract calls."
1042
+ }
448
1043
  ],
449
1044
  mentions: ["save schema", "JSON Schema", "reuse"]
450
1045
  }
@@ -459,16 +1054,28 @@ var sections4 = [
459
1054
  seoTitle: "Drag & Drop File Support \u2014 Talonic MCP",
460
1055
  description: "Drop PDFs and documents directly into Claude Desktop, Cursor, or Cowork and extract data without file path configuration.",
461
1056
  content: [
462
- { type: "paragraph", text: "When the user drag-drops a PDF (or any supported file) into a chat-style MCP host such as Claude Desktop, Cowork, or Cursor, the file lands in a host-owned sandbox directory the MCP server cannot read. The path the host hands the agent is meaningless to a separately-running `npx` MCP process." },
463
- { type: "paragraph", text: "`@talonic/mcp@0.1.4` and later solve this by accepting **`file_data`** (base64-encoded file bytes) and **`filename`** on `talonic_extract` and `talonic_to_markdown`. The agent reads the file bytes from the conversation, base64-encodes them, and passes them through the MCP tool call. The MCP server decodes, infers MIME type from the filename, and uploads to the Talonic API." },
464
- { type: "callout", text: "Tool descriptions advertise `file_data` as the recommended input for chat-style clients, so well-trained agents reach for it automatically. No client-side configuration required." }
1057
+ {
1058
+ type: "paragraph",
1059
+ text: "When the user drag-drops a PDF (or any supported file) into a chat-style MCP host such as Claude Desktop, Cowork, or Cursor, the file lands in a host-owned sandbox directory the MCP server cannot read. The path the host hands the agent is meaningless to a separately-running `npx` MCP process."
1060
+ },
1061
+ {
1062
+ type: "paragraph",
1063
+ text: "`@talonic/mcp@0.1.4` and later solve this by accepting **`file_data`** (base64-encoded file bytes) and **`filename`** on `talonic_extract` and `talonic_to_markdown`. The agent reads the file bytes from the conversation, base64-encodes them, and passes them through the MCP tool call. The MCP server decodes, infers MIME type from the filename, and uploads to the Talonic API."
1064
+ },
1065
+ {
1066
+ type: "callout",
1067
+ text: "Tool descriptions advertise `file_data` as the recommended input for chat-style clients, so well-trained agents reach for it automatically. No client-side configuration required."
1068
+ }
465
1069
  ],
466
1070
  related: [
467
1071
  { label: "talonic_extract", slug: "talonic-extract" },
468
1072
  { label: "talonic_to_markdown", slug: "talonic-to-markdown" }
469
1073
  ],
470
1074
  faq: [
471
- { question: "Can I drag and drop files into Claude Desktop with Talonic?", answer: "Yes. Since @talonic/mcp@0.1.4, talonic_extract and talonic_to_markdown accept base64 file data directly, so you can drop a PDF into Claude Desktop and extract data without file path setup." }
1075
+ {
1076
+ question: "Can I drag and drop files into Claude Desktop with Talonic?",
1077
+ answer: "Yes. Since @talonic/mcp@0.1.4, talonic_extract and talonic_to_markdown accept base64 file data directly, so you can drop a PDF into Claude Desktop and extract data without file path setup."
1078
+ }
472
1079
  ],
473
1080
  mentions: ["drag-and-drop", "file_data", "base64", "Claude Desktop"]
474
1081
  },
@@ -479,19 +1086,30 @@ var sections4 = [
479
1086
  seoTitle: "How Talonic MCP Works \u2014 Talonic Docs",
480
1087
  description: "Architecture of the Talonic MCP server: MCP protocol over stdio to the agent, HTTPS with Bearer auth to api.talonic.com.",
481
1088
  content: [
482
- { type: "code", language: "text", title: "Architecture", code: `Agent (Claude Desktop / Cursor / Cline / etc.)
1089
+ {
1090
+ type: "code",
1091
+ language: "text",
1092
+ title: "Architecture",
1093
+ code: `Agent (Claude Desktop / Cursor / Cline / etc.)
483
1094
  \u2193 MCP protocol over stdio
484
1095
  Talonic MCP server (this package)
485
1096
  \u2193 HTTPS, Bearer auth
486
- api.talonic.com` },
487
- { type: "paragraph", text: "Each tool call is one HTTP request to the Talonic API, using your API key. The server handles auth, retries on transient failures (429, 5xx), MIME-type detection on file uploads, multipart serialisation, and structured error formatting." }
1097
+ api.talonic.com`
1098
+ },
1099
+ {
1100
+ type: "paragraph",
1101
+ text: "Each tool call is one HTTP request to the Talonic API, using your API key. The server handles auth, retries on transient failures (429, 5xx), MIME-type detection on file uploads, multipart serialisation, and structured error formatting."
1102
+ }
488
1103
  ],
489
1104
  related: [
490
1105
  { label: "Environment Variables", slug: "env-variables" },
491
1106
  { label: "Node SDK", slug: "introduction" }
492
1107
  ],
493
1108
  faq: [
494
- { question: "How does the Talonic MCP server work?", answer: "The MCP server communicates with AI agents over stdio using the MCP protocol. Each tool call translates to one HTTPS request to api.talonic.com with automatic auth, retries, and error formatting." }
1109
+ {
1110
+ question: "How does the Talonic MCP server work?",
1111
+ answer: "The MCP server communicates with AI agents over stdio using the MCP protocol. Each tool call translates to one HTTPS request to api.talonic.com with automatic auth, retries, and error formatting."
1112
+ }
495
1113
  ],
496
1114
  mentions: ["stdio", "HTTPS", "Bearer auth", "architecture"]
497
1115
  }
@@ -507,17 +1125,33 @@ var sections5 = [
507
1125
  description: "Environment variables for configuring the Talonic MCP server: API key and optional base URL override.",
508
1126
  content: [
509
1127
  { type: "paragraph", text: "Set via the `env` block in your MCP client config:" },
510
- { type: "param-table", params: [
511
- { name: "TALONIC_API_KEY", type: "string", required: true, description: "Your Talonic API key. Starts with `tlnc_`." },
512
- { name: "TALONIC_BASE_URL", type: "string", description: "Override the API base URL.", default: "https://api.talonic.com" }
513
- ] }
1128
+ {
1129
+ type: "param-table",
1130
+ params: [
1131
+ {
1132
+ name: "TALONIC_API_KEY",
1133
+ type: "string",
1134
+ required: true,
1135
+ description: "Your Talonic API key. Starts with `tlnc_`."
1136
+ },
1137
+ {
1138
+ name: "TALONIC_BASE_URL",
1139
+ type: "string",
1140
+ description: "Override the API base URL.",
1141
+ default: "https://api.talonic.com"
1142
+ }
1143
+ ]
1144
+ }
514
1145
  ],
515
1146
  related: [
516
1147
  { label: "Install Overview", slug: "install-overview" },
517
1148
  { label: "Get an API Key", slug: "get-api-key" }
518
1149
  ],
519
1150
  faq: [
520
- { question: "What environment variables does the Talonic MCP server need?", answer: "TALONIC_API_KEY (required, starts with tlnc_) and optionally TALONIC_BASE_URL to override the API endpoint." }
1151
+ {
1152
+ question: "What environment variables does the Talonic MCP server need?",
1153
+ answer: "TALONIC_API_KEY (required, starts with tlnc_) and optionally TALONIC_BASE_URL to override the API endpoint."
1154
+ }
521
1155
  ],
522
1156
  mentions: ["TALONIC_API_KEY", "TALONIC_BASE_URL", "environment variables"]
523
1157
  }
@@ -532,25 +1166,76 @@ var sections6 = [
532
1166
  seoTitle: "Troubleshooting \u2014 Talonic MCP",
533
1167
  description: "Solutions for common Talonic MCP server issues: missing API key, server not appearing, extract errors, and filter validation.",
534
1168
  content: [
535
- { type: "heading", level: 3, id: "missing-api-key", text: "TALONIC_API_KEY environment variable is required" },
536
- { type: "paragraph", text: "The `env` block in your MCP client config is missing or not being read. Double-check the JSON shape. After editing the config, fully restart the client (not just the conversation)." },
537
- { type: "heading", level: 3, id: "server-not-found", text: "Talonic does not appear in connected servers" },
538
- { type: "paragraph", text: 'Make sure the `command` is `npx` and the `args` are exactly `["-y", "@talonic/mcp@latest"]`. Sanity check: run `npx -y @talonic/mcp@latest --version` in any terminal \u2014 it should print `talonic 0.1.6` (or newer).' },
539
- { type: "heading", level: 3, id: "extract-500", text: "talonic_extract returns 500 with auto-discovery" },
540
- { type: "paragraph", text: "Known limitation. Always provide either an inline `schema` or a `schema_id`. The auto-discovery code path is being stabilised." },
541
- { type: "heading", level: 3, id: "unsupported-file", text: "talonic_extract rejects with unsupported_file_type" },
542
- { type: "paragraph", text: "The MIME type was inferred as `application/octet-stream`. The SDK infers from common file extensions; if your filename has an unusual extension, this may occur. A future tool version will expose explicit `content_type` passthrough." },
543
- { type: "heading", level: 3, id: "filter-validation", text: 'talonic_filter VALIDATION_ERROR / "No field matches name"' },
544
- { type: "paragraph", text: "The field name is not in the API's field registry. Field names must be canonical names (e.g. `vendor.name`, `policy.0_term_end`). Call `talonic_search` first; canonical names appear in `fields[].canonicalName`." },
545
- { type: "heading", level: 3, id: "stale-descriptions", text: "Tool descriptions look wrong in my client" },
546
- { type: "paragraph", text: "Some MCP clients cache tool descriptions. Restart the client after a server update." }
1169
+ {
1170
+ type: "heading",
1171
+ level: 3,
1172
+ id: "missing-api-key",
1173
+ text: "TALONIC_API_KEY environment variable is required"
1174
+ },
1175
+ {
1176
+ type: "paragraph",
1177
+ text: "The `env` block in your MCP client config is missing or not being read. Double-check the JSON shape. After editing the config, fully restart the client (not just the conversation)."
1178
+ },
1179
+ {
1180
+ type: "heading",
1181
+ level: 3,
1182
+ id: "server-not-found",
1183
+ text: "Talonic does not appear in connected servers"
1184
+ },
1185
+ {
1186
+ type: "paragraph",
1187
+ text: 'Make sure the `command` is `npx` and the `args` are exactly `["-y", "@talonic/mcp@latest"]`. Sanity check: run `npx -y @talonic/mcp@latest --version` in any terminal \u2014 it should print a version number.'
1188
+ },
1189
+ {
1190
+ type: "heading",
1191
+ level: 3,
1192
+ id: "extract-500",
1193
+ text: "talonic_extract returns 500 with auto-discovery"
1194
+ },
1195
+ {
1196
+ type: "paragraph",
1197
+ text: "Known limitation. Always provide either an inline `schema` or a `schema_id`. The auto-discovery code path is being stabilised."
1198
+ },
1199
+ {
1200
+ type: "heading",
1201
+ level: 3,
1202
+ id: "unsupported-file",
1203
+ text: "talonic_extract rejects with unsupported_file_type"
1204
+ },
1205
+ {
1206
+ type: "paragraph",
1207
+ text: "The MIME type was inferred as `application/octet-stream`. The SDK infers from common file extensions; if your filename has an unusual extension, this may occur. A future tool version will expose explicit `content_type` passthrough."
1208
+ },
1209
+ {
1210
+ type: "heading",
1211
+ level: 3,
1212
+ id: "filter-validation",
1213
+ text: 'talonic_filter VALIDATION_ERROR / "No field matches name"'
1214
+ },
1215
+ {
1216
+ type: "paragraph",
1217
+ text: "The field name is not in the API's field registry. Field names must be canonical names (e.g. `vendor.name`, `policy.0_term_end`). Call `talonic_search` first; canonical names appear in `fields[].canonicalName`."
1218
+ },
1219
+ {
1220
+ type: "heading",
1221
+ level: 3,
1222
+ id: "stale-descriptions",
1223
+ text: "Tool descriptions look wrong in my client"
1224
+ },
1225
+ {
1226
+ type: "paragraph",
1227
+ text: "Some MCP clients cache tool descriptions. Restart the client after a server update."
1228
+ }
547
1229
  ],
548
1230
  related: [
549
1231
  { label: "Known Limitations", slug: "known-limitations" },
550
1232
  { label: "Upgrading", slug: "upgrading" }
551
1233
  ],
552
1234
  faq: [
553
- { question: "Why does Talonic MCP not appear in Claude Desktop?", answer: 'Check that command is "npx" and args are ["-y", "@talonic/mcp@latest"]. Run npx -y @talonic/mcp@latest --version in a terminal to verify. Fully restart Claude Desktop (Cmd+Q).' }
1235
+ {
1236
+ question: "Why does Talonic MCP not appear in Claude Desktop?",
1237
+ answer: 'Check that command is "npx" and args are ["-y", "@talonic/mcp@latest"]. Run npx -y @talonic/mcp@latest --version in a terminal to verify. Fully restart Claude Desktop (Cmd+Q).'
1238
+ }
554
1239
  ],
555
1240
  mentions: ["troubleshooting", "API key", "VALIDATION_ERROR"]
556
1241
  },
@@ -561,19 +1246,25 @@ var sections6 = [
561
1246
  seoTitle: "Known Limitations \u2014 Talonic MCP",
562
1247
  description: "Current limitations in the Talonic MCP server v0.1: auto-discovery, schema format, filter operators, and schema_id format.",
563
1248
  content: [
564
- { type: "list", items: [
565
- "**Auto-discovery extract (no schema) is not reliable on production.** Always pass a `schema` or `schema_id` to `talonic_extract`.",
566
- "**Schema definition: prefer full JSON Schema for now.** The flat key-type map is documented as supported but the server-side normaliser does not translate it yet.",
567
- "**`is_not_empty` filter currently underreports.** Use specific operators (`eq`, `gt`, `contains`, etc.) against known values instead.",
568
- "**`schema_id` on `talonic_extract` requires the UUID form.** Other endpoints accept either UUID or `SCH-XXXXXXXX`, but `/v1/extract` currently only accepts UUIDs. Pass the UUID from `talonic_list_schemas`."
569
- ] }
1249
+ {
1250
+ type: "list",
1251
+ items: [
1252
+ "**Auto-discovery extract (no schema) is not reliable on production.** Always pass a `schema` or `schema_id` to `talonic_extract`.",
1253
+ "**Schema definition: prefer full JSON Schema for now.** The flat key-type map is documented as supported but the server-side normaliser does not translate it yet.",
1254
+ "**`is_not_empty` filter currently underreports.** Use specific operators (`eq`, `gt`, `contains`, etc.) against known values instead.",
1255
+ "**`schema_id` on `talonic_extract` requires the UUID form.** Other endpoints accept either UUID or `SCH-XXXXXXXX`, but `/v1/extract` currently only accepts UUIDs. Pass the UUID from `talonic_list_schemas`."
1256
+ ]
1257
+ }
570
1258
  ],
571
1259
  related: [
572
1260
  { label: "Common Issues", slug: "common-issues" },
573
1261
  { label: "talonic_extract", slug: "talonic-extract" }
574
1262
  ],
575
1263
  faq: [
576
- { question: "What are the known limitations of Talonic MCP?", answer: "Auto-discovery extract without a schema is unreliable, flat key-type schema maps are not yet translated, is_not_empty filter underreports, and schema_id on extract requires UUID format." }
1264
+ {
1265
+ question: "What are the known limitations of Talonic MCP?",
1266
+ answer: "Auto-discovery extract without a schema is unreliable, flat key-type schema maps are not yet translated, is_not_empty filter underreports, and schema_id on extract requires UUID format."
1267
+ }
577
1268
  ],
578
1269
  mentions: ["limitations", "auto-discovery", "is_not_empty", "schema_id"]
579
1270
  },
@@ -584,8 +1275,14 @@ var sections6 = [
584
1275
  seoTitle: "Upgrading from Older Versions \u2014 Talonic MCP",
585
1276
  description: "How to upgrade from older @talonic/mcp versions that had the silent-bin bug affecting MCP client launches.",
586
1277
  content: [
587
- { type: "paragraph", text: "Versions before `0.1.3` had a bug where the bundled MCP server bin would exit silently when launched via the npm bin symlink, which is exactly how every MCP client invokes it. If you see no `talonic_*` tools despite correct config, you are hitting that bug." },
588
- { type: "paragraph", text: "The fix: point your `args` at `@latest` (or `@0.1.3` explicitly) and fully restart the client:" },
1278
+ {
1279
+ type: "paragraph",
1280
+ text: "Versions before `0.1.3` had a bug where the bundled MCP server bin would exit silently when launched via the npm bin symlink, which is exactly how every MCP client invokes it. If you see no `talonic_*` tools despite correct config, you are hitting that bug."
1281
+ },
1282
+ {
1283
+ type: "paragraph",
1284
+ text: "The fix: point your `args` at `@latest` (or `@0.1.3` explicitly) and fully restart the client:"
1285
+ },
589
1286
  { type: "code", language: "jsonc", code: '"args": ["-y", "@talonic/mcp@latest"]' }
590
1287
  ],
591
1288
  related: [
@@ -593,7 +1290,10 @@ var sections6 = [
593
1290
  { label: "Common Issues", slug: "common-issues" }
594
1291
  ],
595
1292
  faq: [
596
- { question: "How do I upgrade the Talonic MCP server?", answer: 'Set args to ["-y", "@talonic/mcp@latest"] in your MCP client config and fully restart the client. Versions before 0.1.3 had a silent-bin bug that prevented the server from booting.' }
1293
+ {
1294
+ question: "How do I upgrade the Talonic MCP server?",
1295
+ answer: 'Set args to ["-y", "@talonic/mcp@latest"] in your MCP client config and fully restart the client. Versions before 0.1.3 had a silent-bin bug that prevented the server from booting.'
1296
+ }
597
1297
  ],
598
1298
  mentions: ["upgrade", "silent-bin bug", "0.1.3"]
599
1299
  }