@talonic/mcp 0.1.10 → 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,19 +159,29 @@ 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
  }
@@ -187,28 +217,50 @@ var sections2 = [
187
217
  seoTitle: "Install Talonic MCP \u2014 Talonic Docs",
188
218
  description: "Install the Talonic MCP server with a one-line npx invocation. No clone, no build. Works with every MCP client.",
189
219
  content: [
190
- { type: "paragraph", 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." },
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
+ },
191
224
  { type: "heading", level: 3, id: "hosted-recommended", text: "Hosted (recommended)" },
192
- { type: "paragraph", text: "No install, no Node.js required. Works with every MCP client that supports remote servers:" },
193
- { type: "code", language: "jsonc", title: "Hosted config", code: `{
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: `{
194
234
  "url": "https://mcp.talonic.com/mcp",
195
235
  "headers": { "Authorization": "Bearer tlnc_..." }
196
- }` },
236
+ }`
237
+ },
197
238
  { type: "heading", level: 3, id: "local-npx", text: "Local (npx)" },
198
239
  { type: "paragraph", text: "Runs on your machine. Requires Node.js 18+:" },
199
- { type: "code", language: "jsonc", title: "Local config", code: `{
240
+ {
241
+ type: "code",
242
+ language: "jsonc",
243
+ title: "Local config",
244
+ code: `{
200
245
  "command": "npx",
201
246
  "args": ["-y", "@talonic/mcp@latest"],
202
247
  "env": { "TALONIC_API_KEY": "tlnc_..." }
203
- }` },
204
- { 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." }
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
+ }
205
254
  ],
206
255
  related: [
207
256
  { label: "Claude Desktop", slug: "claude-desktop" },
208
257
  { label: "Cursor", slug: "cursor" }
209
258
  ],
210
259
  faq: [
211
- { question: "How do I install the Talonic MCP server?", 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." }
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
+ }
212
264
  ],
213
265
  mentions: ["npx", "npm", "MCP client", "install"]
214
266
  },
@@ -219,19 +271,28 @@ var sections2 = [
219
271
  seoTitle: "Claude Desktop Setup \u2014 Talonic MCP",
220
272
  description: "Configure the Talonic MCP server in Claude Desktop on macOS and Windows.",
221
273
  content: [
222
- { 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
+ },
223
278
  { type: "heading", level: 3, id: "claude-desktop-hosted", text: "Hosted (recommended)" },
224
279
  { type: "code", language: "json", code: MCP_HOSTED_SNIPPET },
225
280
  { type: "heading", level: 3, id: "claude-desktop-local", text: "Local (npx)" },
226
281
  { type: "code", language: "json", code: MCP_CONFIG_SNIPPET },
227
- { 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
+ }
228
286
  ],
229
287
  related: [
230
288
  { label: "Cursor", slug: "cursor" },
231
289
  { label: "Tool Reference", slug: "talonic-extract" }
232
290
  ],
233
291
  faq: [
234
- { 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
+ }
235
296
  ],
236
297
  mentions: ["Claude Desktop", "macOS", "Windows"]
237
298
  },
@@ -242,7 +303,10 @@ var sections2 = [
242
303
  seoTitle: "Cursor Setup \u2014 Talonic MCP",
243
304
  description: "Configure the Talonic MCP server in Cursor IDE.",
244
305
  content: [
245
- { 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
+ },
246
310
  { type: "heading", level: 3, id: "cursor-hosted", text: "Hosted (recommended)" },
247
311
  { type: "code", language: "json", code: MCP_HOSTED_SNIPPET },
248
312
  { type: "heading", level: 3, id: "cursor-local", text: "Local (npx)" },
@@ -253,7 +317,10 @@ var sections2 = [
253
317
  { label: "Cline", slug: "cline" }
254
318
  ],
255
319
  faq: [
256
- { 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
+ }
257
324
  ],
258
325
  mentions: ["Cursor", "IDE"]
259
326
  },
@@ -264,7 +331,10 @@ var sections2 = [
264
331
  seoTitle: "Cline Setup \u2014 Talonic MCP",
265
332
  description: "Configure the Talonic MCP server in the Cline VS Code extension.",
266
333
  content: [
267
- { type: "paragraph", text: "Open the Cline panel \u2192 settings (gear icon) \u2192 MCP Servers \u2192 Edit. 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
+ },
268
338
  { type: "heading", level: 3, id: "cline-hosted", text: "Hosted (recommended)" },
269
339
  { type: "code", language: "json", code: MCP_HOSTED_SNIPPET },
270
340
  { type: "heading", level: 3, id: "cline-local", text: "Local (npx)" },
@@ -275,7 +345,10 @@ var sections2 = [
275
345
  { label: "Cursor", slug: "cursor" }
276
346
  ],
277
347
  faq: [
278
- { 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
+ }
279
352
  ],
280
353
  mentions: ["Cline", "VS Code"]
281
354
  },
@@ -288,29 +361,40 @@ var sections2 = [
288
361
  content: [
289
362
  { type: "paragraph", text: "Edit `~/.continue/config.json`. Add to the `mcpServers` array:" },
290
363
  { type: "heading", level: 3, id: "continue-hosted", text: "Hosted (recommended)" },
291
- { type: "code", language: "json", code: `{
364
+ {
365
+ type: "code",
366
+ language: "json",
367
+ code: `{
292
368
  "name": "talonic",
293
369
  "url": "https://mcp.talonic.com/mcp",
294
370
  "headers": {
295
371
  "Authorization": "Bearer tlnc_your_key_here"
296
372
  }
297
- }` },
373
+ }`
374
+ },
298
375
  { type: "heading", level: 3, id: "continue-local", text: "Local (npx)" },
299
- { type: "code", language: "json", code: `{
376
+ {
377
+ type: "code",
378
+ language: "json",
379
+ code: `{
300
380
  "name": "talonic",
301
381
  "command": "npx",
302
382
  "args": ["-y", "@talonic/mcp@latest"],
303
383
  "env": {
304
384
  "TALONIC_API_KEY": "tlnc_your_key_here"
305
385
  }
306
- }` }
386
+ }`
387
+ }
307
388
  ],
308
389
  related: [
309
390
  { label: "Cowork", slug: "cowork" },
310
391
  { label: "Cline", slug: "cline" }
311
392
  ],
312
393
  faq: [
313
- { 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
+ }
314
398
  ],
315
399
  mentions: ["Continue", "VS Code", "JetBrains"]
316
400
  },
@@ -332,7 +416,10 @@ var sections2 = [
332
416
  { label: "Tool Reference", slug: "talonic-extract" }
333
417
  ],
334
418
  faq: [
335
- { 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
+ }
336
423
  ],
337
424
  mentions: ["Cowork"]
338
425
  }
@@ -348,21 +435,63 @@ var sections3 = [
348
435
  description: "Extract structured, schema-validated data from a document. Returns clean JSON with per-field confidence scores.",
349
436
  content: [
350
437
  { type: "paragraph", text: "Extract structured, schema-validated data from a document." },
351
- { 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." },
352
- { type: "param-table", params: [
353
- { name: "file_data", type: "string", description: "Base64-encoded file bytes. Recommended for chat clients (drag-and-drop)." },
354
- { name: "filename", type: "string", description: "Original filename (used for MIME type inference when using `file_data`)." },
355
- { name: "file_path", type: "string", description: "Local file path." },
356
- { name: "file_url", type: "string", description: "Remote file URL." },
357
- { name: "document_id", type: "string", description: "ID of a previously uploaded document." },
358
- { name: "schema", type: "object", description: "Inline schema definition (JSON Schema or flat key-type map)." },
359
- { name: "schema_id", type: "string", description: "UUID or SCH-XXXXXXXX short ID of a saved schema." },
360
- { name: "instructions", type: "string", description: "Natural-language guidance for the extractor." },
361
- { name: "include_markdown", type: "boolean", description: "Include OCR markdown alongside structured data." }
362
- ] },
363
- { 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
+ },
364
489
  { type: "heading", level: 3, id: "extract-inline-schema", text: "Example: inline schema" },
365
- { type: "code", language: "json", title: "Tool input", code: `{
490
+ {
491
+ type: "code",
492
+ language: "json",
493
+ title: "Tool input",
494
+ code: `{
366
495
  "file_url": "https://example.com/invoice-2026-001.pdf",
367
496
  "schema": {
368
497
  "type": "object",
@@ -385,8 +514,13 @@ var sections3 = [
385
514
  "required": ["vendor_name", "total_amount"]
386
515
  },
387
516
  "instructions": "Amounts are in EUR. Focus on the billing section."
388
- }` },
389
- { type: "code", language: "json", title: "Tool response", code: `{
517
+ }`
518
+ },
519
+ {
520
+ type: "code",
521
+ language: "json",
522
+ title: "Tool response",
523
+ code: `{
390
524
  "document_id": "doc_8f3a...",
391
525
  "data": {
392
526
  "vendor_name": "Meridian Energy AG",
@@ -410,12 +544,18 @@ var sections3 = [
410
544
  "type_detected": "Invoice",
411
545
  "language_detected": "de"
412
546
  }
413
- }` },
547
+ }`
548
+ },
414
549
  { type: "heading", level: 3, id: "extract-schema-id", text: "Example: saved schema" },
415
- { type: "code", language: "json", title: "Tool input", code: `{
550
+ {
551
+ type: "code",
552
+ language: "json",
553
+ title: "Tool input",
554
+ code: `{
416
555
  "file_path": "./contracts/lease-agreement.pdf",
417
556
  "schema_id": "SCH-A1B2C3D4"
418
- }` }
557
+ }`
558
+ }
419
559
  ],
420
560
  related: [
421
561
  { label: "talonic_to_markdown", slug: "talonic-to-markdown" },
@@ -423,7 +563,10 @@ var sections3 = [
423
563
  { label: "Drag & Drop Files", slug: "drag-and-drop" }
424
564
  ],
425
565
  faq: [
426
- { 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
+ }
427
570
  ],
428
571
  mentions: ["extract", "schema", "confidence scores", "file_data"]
429
572
  },
@@ -434,17 +577,41 @@ var sections3 = [
434
577
  seoTitle: "talonic_search Tool \u2014 Talonic MCP",
435
578
  description: "Omnisearch across documents, fields, sources, and schemas in the workspace. Supports conceptual and fuzzy queries.",
436
579
  content: [
437
- { type: "paragraph", text: "Omnisearch across documents, fields, sources, and schemas in the workspace. Use for conceptual or fuzzy queries." },
438
- { type: "param-table", params: [
439
- { name: "query", type: "string", required: true, description: "The search query. Supports fuzzy and conceptual matching." },
440
- { name: "limit", type: "integer", description: "Maximum results per entity type. Default: 5." }
441
- ] },
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
+ },
442
600
  { type: "heading", level: 3, id: "search-example", text: "Example" },
443
- { type: "code", language: "json", title: "Tool input", code: `{
601
+ {
602
+ type: "code",
603
+ language: "json",
604
+ title: "Tool input",
605
+ code: `{
444
606
  "query": "indemnification clauses Acme",
445
607
  "limit": 10
446
- }` },
447
- { type: "code", language: "json", title: "Tool response", code: `{
608
+ }`
609
+ },
610
+ {
611
+ type: "code",
612
+ language: "json",
613
+ title: "Tool response",
614
+ code: `{
448
615
  "documents": [
449
616
  {
450
617
  "id": "doc_4e7b...",
@@ -466,13 +633,15 @@ var sections3 = [
466
633
  "fields": [
467
634
  { "canonicalName": "indemnification.cap_amount", "type": "string" }
468
635
  ]
469
- }` }
470
- ],
471
- related: [
472
- { label: "talonic_filter", slug: "talonic-filter" }
636
+ }`
637
+ }
473
638
  ],
639
+ related: [{ label: "talonic_filter", slug: "talonic-filter" }],
474
640
  faq: [
475
- { 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
+ }
476
645
  ],
477
646
  mentions: ["search", "omnisearch", "fuzzy"]
478
647
  },
@@ -483,26 +652,61 @@ var sections3 = [
483
652
  seoTitle: "talonic_filter Tool \u2014 Talonic MCP",
484
653
  description: "Filter documents by extracted field values using composable conditions like eq, gt, between, and contains.",
485
654
  content: [
486
- { type: "paragraph", text: "Filter documents by extracted field values using composable conditions (`eq`, `gt`, `between`, `contains`, etc.)." },
487
- { 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." },
488
- { type: "param-table", params: [
489
- { name: "conditions", type: "array", required: true, description: "Filter conditions, AND-ed together. Each has `field` or `field_id`, `operator`, and `value`." },
490
- { name: "search", type: "string", description: "Optional free-text search applied alongside filters." },
491
- { name: "sort", type: "object", description: 'Sort by a field: `{ field, direction: "asc" | "desc" }`.' },
492
- { name: "page", type: "integer", description: "Page number for pagination." },
493
- { name: "limit", type: "integer", description: "Results per page. Default: 50." }
494
- ] },
495
- { 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
+ },
496
691
  { type: "heading", level: 3, id: "filter-example", text: "Example" },
497
- { type: "code", language: "json", title: "Tool input", code: `{
692
+ {
693
+ type: "code",
694
+ language: "json",
695
+ title: "Tool input",
696
+ code: `{
498
697
  "conditions": [
499
698
  { "field": "vendor.name", "operator": "eq", "value": "Meridian Energy AG" },
500
699
  { "field": "invoice.total_eur", "operator": "gt", "value": 1000 }
501
700
  ],
502
701
  "sort": { "field": "invoice.total_eur", "direction": "desc" },
503
702
  "limit": 20
504
- }` },
505
- { type: "code", language: "json", title: "Tool response", code: `{
703
+ }`
704
+ },
705
+ {
706
+ type: "code",
707
+ language: "json",
708
+ title: "Tool response",
709
+ code: `{
506
710
  "data": [
507
711
  {
508
712
  "document_id": "doc_8f3a...",
@@ -525,14 +729,18 @@ var sections3 = [
525
729
  ],
526
730
  "total": 2,
527
731
  "page": 1
528
- }` }
732
+ }`
733
+ }
529
734
  ],
530
735
  related: [
531
736
  { label: "talonic_search", slug: "talonic-search" },
532
737
  { label: "Known Limitations", slug: "known-limitations" }
533
738
  ],
534
739
  faq: [
535
- { 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
+ }
536
744
  ],
537
745
  mentions: ["filter", "canonical field names", "operators"]
538
746
  },
@@ -543,15 +751,35 @@ var sections3 = [
543
751
  seoTitle: "talonic_get_document Tool \u2014 Talonic MCP",
544
752
  description: "Fetch full metadata for a single document by ID, including processing log and link URLs.",
545
753
  content: [
546
- { type: "paragraph", text: "Fetch full metadata for a single document by ID, including processing log and link URLs." },
547
- { type: "param-table", params: [
548
- { name: "document_id", type: "string", required: true, description: "The document UUID." }
549
- ] },
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
+ },
550
769
  { type: "heading", level: 3, id: "get-document-example", text: "Example" },
551
- { type: "code", language: "json", title: "Tool input", code: `{
770
+ {
771
+ type: "code",
772
+ language: "json",
773
+ title: "Tool input",
774
+ code: `{
552
775
  "document_id": "doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c"
553
- }` },
554
- { type: "code", language: "json", title: "Tool response", code: `{
776
+ }`
777
+ },
778
+ {
779
+ type: "code",
780
+ language: "json",
781
+ title: "Tool response",
782
+ code: `{
555
783
  "id": "doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
556
784
  "filename": "invoice-2026-001.pdf",
557
785
  "status": "completed",
@@ -566,14 +794,18 @@ var sections3 = [
566
794
  "extractions": "https://api.talonic.com/v1/documents/doc_8f3a.../extractions",
567
795
  "dashboard": "https://app.talonic.com/documents/doc_8f3a..."
568
796
  }
569
- }` }
797
+ }`
798
+ }
570
799
  ],
571
800
  related: [
572
801
  { label: "talonic_to_markdown", slug: "talonic-to-markdown" },
573
802
  { label: "talonic_extract", slug: "talonic-extract" }
574
803
  ],
575
804
  faq: [
576
- { 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
+ }
577
809
  ],
578
810
  mentions: ["document", "metadata", "processing log"]
579
811
  },
@@ -584,19 +816,46 @@ var sections3 = [
584
816
  seoTitle: "talonic_to_markdown Tool \u2014 Talonic MCP",
585
817
  description: "Get OCR-converted markdown for a document. Accepts document_id, file_data + filename, file_path, or file_url.",
586
818
  content: [
587
- { 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`." },
588
- { type: "param-table", params: [
589
- { name: "document_id", type: "string", description: "ID of an already-ingested document (cheapest path)." },
590
- { name: "file_data", type: "string", description: "Base64-encoded file bytes. Pair with `filename`." },
591
- { name: "filename", type: "string", description: "Original filename with extension." },
592
- { name: "file_path", type: "string", description: "Local file path." },
593
- { name: "file_url", type: "string", description: "Remote URL the API fetches server-side." }
594
- ] },
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
+ },
595
845
  { type: "heading", level: 3, id: "to-markdown-example", text: "Example" },
596
- { type: "code", language: "json", title: "Tool input", code: `{
846
+ {
847
+ type: "code",
848
+ language: "json",
849
+ title: "Tool input",
850
+ code: `{
597
851
  "document_id": "doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c"
598
- }` },
599
- { type: "code", language: "markdown", title: "Tool response", code: `# Invoice INV-2026-001
852
+ }`
853
+ },
854
+ {
855
+ type: "code",
856
+ language: "markdown",
857
+ title: "Tool response",
858
+ code: `# Invoice INV-2026-001
600
859
 
601
860
  **Meridian Energy AG**
602
861
  Musterstra\xDFe 42, 10115 Berlin
@@ -608,14 +867,18 @@ Musterstra\xDFe 42, 10115 Berlin
608
867
  | **Total** | **\u20AC1,500.00** |
609
868
 
610
869
  Due date: 15 June 2026
611
- Payment terms: Net 30` }
870
+ Payment terms: Net 30`
871
+ }
612
872
  ],
613
873
  related: [
614
874
  { label: "talonic_extract", slug: "talonic-extract" },
615
875
  { label: "Drag & Drop Files", slug: "drag-and-drop" }
616
876
  ],
617
877
  faq: [
618
- { 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
+ }
619
882
  ],
620
883
  mentions: ["markdown", "OCR", "document_id"]
621
884
  },
@@ -626,11 +889,21 @@ Payment terms: Net 30` }
626
889
  seoTitle: "talonic_list_schemas Tool \u2014 Talonic MCP",
627
890
  description: "List all saved schemas with their definitions in the workspace.",
628
891
  content: [
629
- { type: "paragraph", text: "List all saved schemas with their definitions. Returns schema IDs (both UUID and `SCH-XXXXXXXX` short format), names, and field definitions." },
630
- { 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
+ },
631
900
  { type: "heading", level: 3, id: "list-schemas-example", text: "Example" },
632
901
  { type: "paragraph", text: "No input parameters required." },
633
- { type: "code", language: "json", title: "Tool response", code: `{
902
+ {
903
+ type: "code",
904
+ language: "json",
905
+ title: "Tool response",
906
+ code: `{
634
907
  "schemas": [
635
908
  {
636
909
  "id": "sch_7a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
@@ -662,14 +935,18 @@ Payment terms: Net 30` }
662
935
  "definition": { "type": "object", "properties": { "..." : {} } }
663
936
  }
664
937
  ]
665
- }` }
938
+ }`
939
+ }
666
940
  ],
667
941
  related: [
668
942
  { label: "talonic_save_schema", slug: "talonic-save-schema" },
669
943
  { label: "talonic_extract", slug: "talonic-extract" }
670
944
  ],
671
945
  faq: [
672
- { 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
+ }
673
950
  ],
674
951
  mentions: ["schemas", "list", "SCH-XXXXXXXX"]
675
952
  },
@@ -680,15 +957,42 @@ Payment terms: Net 30` }
680
957
  seoTitle: "talonic_save_schema Tool \u2014 Talonic MCP",
681
958
  description: "Save a schema definition to the workspace for reuse across extractions.",
682
959
  content: [
683
- { type: "paragraph", text: "Save a schema definition to the workspace for reuse. Returns a `schema_id` that can be passed to `talonic_extract`." },
684
- { type: "param-table", params: [
685
- { name: "name", type: "string", required: true, description: "Human-readable schema name." },
686
- { name: "definition", type: "object", required: true, description: 'Schema definition. Full JSON Schema `{type: "object", properties: {...}}` recommended.' },
687
- { name: "description", type: "string", description: "What this schema extracts and when to use it." }
688
- ] },
689
- { 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
+ },
690
990
  { type: "heading", level: 3, id: "save-schema-example", text: "Example" },
691
- { type: "code", language: "json", title: "Tool input", code: `{
991
+ {
992
+ type: "code",
993
+ language: "json",
994
+ title: "Tool input",
995
+ code: `{
692
996
  "name": "Standard Invoice",
693
997
  "description": "Extracts vendor, line items, totals, and payment terms from invoices.",
694
998
  "definition": {
@@ -711,22 +1015,31 @@ Payment terms: Net 30` }
711
1015
  },
712
1016
  "required": ["vendor_name", "total_amount"]
713
1017
  }
714
- }` },
715
- { type: "code", language: "json", title: "Tool response", code: `{
1018
+ }`
1019
+ },
1020
+ {
1021
+ type: "code",
1022
+ language: "json",
1023
+ title: "Tool response",
1024
+ code: `{
716
1025
  "id": "sch_7a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
717
1026
  "short_id": "SCH-A1B2C3D4",
718
1027
  "name": "Standard Invoice",
719
1028
  "description": "Extracts vendor, line items, totals, and payment terms from invoices.",
720
1029
  "version": 1,
721
1030
  "field_count": 5
722
- }` }
1031
+ }`
1032
+ }
723
1033
  ],
724
1034
  related: [
725
1035
  { label: "talonic_list_schemas", slug: "talonic-list-schemas" },
726
1036
  { label: "talonic_extract", slug: "talonic-extract" }
727
1037
  ],
728
1038
  faq: [
729
- { 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
+ }
730
1043
  ],
731
1044
  mentions: ["save schema", "JSON Schema", "reuse"]
732
1045
  }
@@ -741,16 +1054,28 @@ var sections4 = [
741
1054
  seoTitle: "Drag & Drop File Support \u2014 Talonic MCP",
742
1055
  description: "Drop PDFs and documents directly into Claude Desktop, Cursor, or Cowork and extract data without file path configuration.",
743
1056
  content: [
744
- { 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." },
745
- { 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." },
746
- { 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
+ }
747
1069
  ],
748
1070
  related: [
749
1071
  { label: "talonic_extract", slug: "talonic-extract" },
750
1072
  { label: "talonic_to_markdown", slug: "talonic-to-markdown" }
751
1073
  ],
752
1074
  faq: [
753
- { 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
+ }
754
1079
  ],
755
1080
  mentions: ["drag-and-drop", "file_data", "base64", "Claude Desktop"]
756
1081
  },
@@ -761,19 +1086,30 @@ var sections4 = [
761
1086
  seoTitle: "How Talonic MCP Works \u2014 Talonic Docs",
762
1087
  description: "Architecture of the Talonic MCP server: MCP protocol over stdio to the agent, HTTPS with Bearer auth to api.talonic.com.",
763
1088
  content: [
764
- { 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.)
765
1094
  \u2193 MCP protocol over stdio
766
1095
  Talonic MCP server (this package)
767
1096
  \u2193 HTTPS, Bearer auth
768
- api.talonic.com` },
769
- { 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
+ }
770
1103
  ],
771
1104
  related: [
772
1105
  { label: "Environment Variables", slug: "env-variables" },
773
1106
  { label: "Node SDK", slug: "introduction" }
774
1107
  ],
775
1108
  faq: [
776
- { 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
+ }
777
1113
  ],
778
1114
  mentions: ["stdio", "HTTPS", "Bearer auth", "architecture"]
779
1115
  }
@@ -789,17 +1125,33 @@ var sections5 = [
789
1125
  description: "Environment variables for configuring the Talonic MCP server: API key and optional base URL override.",
790
1126
  content: [
791
1127
  { type: "paragraph", text: "Set via the `env` block in your MCP client config:" },
792
- { type: "param-table", params: [
793
- { name: "TALONIC_API_KEY", type: "string", required: true, description: "Your Talonic API key. Starts with `tlnc_`." },
794
- { name: "TALONIC_BASE_URL", type: "string", description: "Override the API base URL.", default: "https://api.talonic.com" }
795
- ] }
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
+ }
796
1145
  ],
797
1146
  related: [
798
1147
  { label: "Install Overview", slug: "install-overview" },
799
1148
  { label: "Get an API Key", slug: "get-api-key" }
800
1149
  ],
801
1150
  faq: [
802
- { 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
+ }
803
1155
  ],
804
1156
  mentions: ["TALONIC_API_KEY", "TALONIC_BASE_URL", "environment variables"]
805
1157
  }
@@ -814,25 +1166,76 @@ var sections6 = [
814
1166
  seoTitle: "Troubleshooting \u2014 Talonic MCP",
815
1167
  description: "Solutions for common Talonic MCP server issues: missing API key, server not appearing, extract errors, and filter validation.",
816
1168
  content: [
817
- { type: "heading", level: 3, id: "missing-api-key", text: "TALONIC_API_KEY environment variable is required" },
818
- { 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)." },
819
- { type: "heading", level: 3, id: "server-not-found", text: "Talonic does not appear in connected servers" },
820
- { 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 a version number.' },
821
- { type: "heading", level: 3, id: "extract-500", text: "talonic_extract returns 500 with auto-discovery" },
822
- { type: "paragraph", text: "Known limitation. Always provide either an inline `schema` or a `schema_id`. The auto-discovery code path is being stabilised." },
823
- { type: "heading", level: 3, id: "unsupported-file", text: "talonic_extract rejects with unsupported_file_type" },
824
- { 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." },
825
- { type: "heading", level: 3, id: "filter-validation", text: 'talonic_filter VALIDATION_ERROR / "No field matches name"' },
826
- { 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`." },
827
- { type: "heading", level: 3, id: "stale-descriptions", text: "Tool descriptions look wrong in my client" },
828
- { 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
+ }
829
1229
  ],
830
1230
  related: [
831
1231
  { label: "Known Limitations", slug: "known-limitations" },
832
1232
  { label: "Upgrading", slug: "upgrading" }
833
1233
  ],
834
1234
  faq: [
835
- { 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
+ }
836
1239
  ],
837
1240
  mentions: ["troubleshooting", "API key", "VALIDATION_ERROR"]
838
1241
  },
@@ -843,19 +1246,25 @@ var sections6 = [
843
1246
  seoTitle: "Known Limitations \u2014 Talonic MCP",
844
1247
  description: "Current limitations in the Talonic MCP server v0.1: auto-discovery, schema format, filter operators, and schema_id format.",
845
1248
  content: [
846
- { type: "list", items: [
847
- "**Auto-discovery extract (no schema) is not reliable on production.** Always pass a `schema` or `schema_id` to `talonic_extract`.",
848
- "**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.",
849
- "**`is_not_empty` filter currently underreports.** Use specific operators (`eq`, `gt`, `contains`, etc.) against known values instead.",
850
- "**`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`."
851
- ] }
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
+ }
852
1258
  ],
853
1259
  related: [
854
1260
  { label: "Common Issues", slug: "common-issues" },
855
1261
  { label: "talonic_extract", slug: "talonic-extract" }
856
1262
  ],
857
1263
  faq: [
858
- { 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
+ }
859
1268
  ],
860
1269
  mentions: ["limitations", "auto-discovery", "is_not_empty", "schema_id"]
861
1270
  },
@@ -866,8 +1275,14 @@ var sections6 = [
866
1275
  seoTitle: "Upgrading from Older Versions \u2014 Talonic MCP",
867
1276
  description: "How to upgrade from older @talonic/mcp versions that had the silent-bin bug affecting MCP client launches.",
868
1277
  content: [
869
- { 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." },
870
- { 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
+ },
871
1286
  { type: "code", language: "jsonc", code: '"args": ["-y", "@talonic/mcp@latest"]' }
872
1287
  ],
873
1288
  related: [
@@ -875,7 +1290,10 @@ var sections6 = [
875
1290
  { label: "Common Issues", slug: "common-issues" }
876
1291
  ],
877
1292
  faq: [
878
- { 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
+ }
879
1297
  ],
880
1298
  mentions: ["upgrade", "silent-bin bug", "0.1.3"]
881
1299
  }