@talonic/mcp 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/content.js +300 -18
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +70 -1
- package/dist/http-server.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +57 -1
- package/dist/index.js.map +1 -1
- package/dist/server.js +57 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Official Talonic MCP server. Lets AI agents extract structured, schema-validated data from any document via the [Model Context Protocol](https://modelcontextprotocol.io).
|
|
4
4
|
|
|
5
|
-
> **Status:**
|
|
5
|
+
> **Status:** Listed on the [official MCP Registry](https://registry.modelcontextprotocol.io/) as `io.github.talonicdev/talonic-mcp`. Seven tools and one resource live: `talonic_extract`, `talonic_search`, `talonic_filter`, `talonic_get_document`, `talonic_to_markdown`, `talonic_list_schemas`, `talonic_save_schema`, plus the `talonic://schemas` resource. Verified end-to-end against production.
|
|
6
6
|
|
|
7
7
|
## Why an agent should use this
|
|
8
8
|
|
|
@@ -30,7 +30,7 @@ The package is on npm. Every MCP client launches it the same way: a one-line `np
|
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
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.
|
|
33
|
+
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 the version number (e.g. `@0.1.10`).
|
|
34
34
|
|
|
35
35
|
Per-client snippets are below.
|
|
36
36
|
|
|
@@ -146,7 +146,7 @@ Set via the `env` block in your MCP client config:
|
|
|
146
146
|
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).
|
|
147
147
|
|
|
148
148
|
**Talonic does not appear in the connected servers list.**
|
|
149
|
-
Make sure the `command` is `npx` and the `args` are exactly `["-y", "@talonic/mcp@latest"]`. As a sanity check, in any terminal run `npx -y @talonic/mcp@latest --version`; it should print
|
|
149
|
+
Make sure the `command` is `npx` and the `args` are exactly `["-y", "@talonic/mcp@latest"]`. As a sanity check, in any terminal run `npx -y @talonic/mcp@latest --version`; it should print a version number. If you are on an older `0.1.x` and see no output at all, you are hitting the silent-bin bug fixed in `0.1.3`; upgrade by setting the args to `["-y", "@talonic/mcp@latest"]` and restarting the client.
|
|
150
150
|
|
|
151
151
|
**`talonic_extract` returns 500 INTERNAL_ERROR with auto-discovery.**
|
|
152
152
|
Known limitation. Always provide either an inline `schema` or a `schema_id`. The platform team is stabilising the auto-discovery code path.
|
package/dist/content.js
CHANGED
|
@@ -158,6 +158,16 @@ var sections = [
|
|
|
158
158
|
];
|
|
159
159
|
|
|
160
160
|
// src/content/sections/install.ts
|
|
161
|
+
var MCP_HOSTED_SNIPPET = `{
|
|
162
|
+
"mcpServers": {
|
|
163
|
+
"talonic": {
|
|
164
|
+
"url": "https://mcp.talonic.com/mcp",
|
|
165
|
+
"headers": {
|
|
166
|
+
"Authorization": "Bearer tlnc_your_key_here"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}`;
|
|
161
171
|
var MCP_CONFIG_SNIPPET = `{
|
|
162
172
|
"mcpServers": {
|
|
163
173
|
"talonic": {
|
|
@@ -177,20 +187,28 @@ var sections2 = [
|
|
|
177
187
|
seoTitle: "Install Talonic MCP \u2014 Talonic Docs",
|
|
178
188
|
description: "Install the Talonic MCP server with a one-line npx invocation. No clone, no build. Works with every MCP client.",
|
|
179
189
|
content: [
|
|
180
|
-
{ type: "paragraph", text: "
|
|
181
|
-
{ type: "
|
|
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." },
|
|
191
|
+
{ 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: `{
|
|
194
|
+
"url": "https://mcp.talonic.com/mcp",
|
|
195
|
+
"headers": { "Authorization": "Bearer tlnc_..." }
|
|
196
|
+
}` },
|
|
197
|
+
{ type: "heading", level: 3, id: "local-npx", text: "Local (npx)" },
|
|
198
|
+
{ type: "paragraph", text: "Runs on your machine. Requires Node.js 18+:" },
|
|
199
|
+
{ type: "code", language: "jsonc", title: "Local config", code: `{
|
|
182
200
|
"command": "npx",
|
|
183
201
|
"args": ["-y", "@talonic/mcp@latest"],
|
|
184
202
|
"env": { "TALONIC_API_KEY": "tlnc_..." }
|
|
185
203
|
}` },
|
|
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.
|
|
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." }
|
|
187
205
|
],
|
|
188
206
|
related: [
|
|
189
207
|
{ label: "Claude Desktop", slug: "claude-desktop" },
|
|
190
208
|
{ label: "Cursor", slug: "cursor" }
|
|
191
209
|
],
|
|
192
210
|
faq: [
|
|
193
|
-
{ question: "How do I install the Talonic MCP server?", answer:
|
|
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." }
|
|
194
212
|
],
|
|
195
213
|
mentions: ["npx", "npm", "MCP client", "install"]
|
|
196
214
|
},
|
|
@@ -201,7 +219,10 @@ var sections2 = [
|
|
|
201
219
|
seoTitle: "Claude Desktop Setup \u2014 Talonic MCP",
|
|
202
220
|
description: "Configure the Talonic MCP server in Claude Desktop on macOS and Windows.",
|
|
203
221
|
content: [
|
|
204
|
-
{ type: "paragraph", text: "Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\\Claude\\claude_desktop_config.json` (Windows)
|
|
222
|
+
{ type: "paragraph", text: "Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\\Claude\\claude_desktop_config.json` (Windows)." },
|
|
223
|
+
{ type: "heading", level: 3, id: "claude-desktop-hosted", text: "Hosted (recommended)" },
|
|
224
|
+
{ type: "code", language: "json", code: MCP_HOSTED_SNIPPET },
|
|
225
|
+
{ type: "heading", level: 3, id: "claude-desktop-local", text: "Local (npx)" },
|
|
205
226
|
{ type: "code", language: "json", code: MCP_CONFIG_SNIPPET },
|
|
206
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." }
|
|
207
228
|
],
|
|
@@ -222,6 +243,9 @@ var sections2 = [
|
|
|
222
243
|
description: "Configure the Talonic MCP server in Cursor IDE.",
|
|
223
244
|
content: [
|
|
224
245
|
{ type: "paragraph", text: "Edit `~/.cursor/mcp.json` (or open Cursor settings \u2192 MCP \u2192 edit config):" },
|
|
246
|
+
{ type: "heading", level: 3, id: "cursor-hosted", text: "Hosted (recommended)" },
|
|
247
|
+
{ type: "code", language: "json", code: MCP_HOSTED_SNIPPET },
|
|
248
|
+
{ type: "heading", level: 3, id: "cursor-local", text: "Local (npx)" },
|
|
225
249
|
{ type: "code", language: "json", code: MCP_CONFIG_SNIPPET }
|
|
226
250
|
],
|
|
227
251
|
related: [
|
|
@@ -240,7 +264,10 @@ var sections2 = [
|
|
|
240
264
|
seoTitle: "Cline Setup \u2014 Talonic MCP",
|
|
241
265
|
description: "Configure the Talonic MCP server in the Cline VS Code extension.",
|
|
242
266
|
content: [
|
|
243
|
-
{ type: "paragraph", text: "Open the Cline panel \u2192 settings (gear icon) \u2192 MCP Servers \u2192 Edit.
|
|
267
|
+
{ type: "paragraph", text: "Open the Cline panel \u2192 settings (gear icon) \u2192 MCP Servers \u2192 Edit. Save and restart the panel." },
|
|
268
|
+
{ type: "heading", level: 3, id: "cline-hosted", text: "Hosted (recommended)" },
|
|
269
|
+
{ type: "code", language: "json", code: MCP_HOSTED_SNIPPET },
|
|
270
|
+
{ type: "heading", level: 3, id: "cline-local", text: "Local (npx)" },
|
|
244
271
|
{ type: "code", language: "json", code: MCP_CONFIG_SNIPPET }
|
|
245
272
|
],
|
|
246
273
|
related: [
|
|
@@ -260,6 +287,15 @@ var sections2 = [
|
|
|
260
287
|
description: "Configure the Talonic MCP server in Continue for VS Code and JetBrains.",
|
|
261
288
|
content: [
|
|
262
289
|
{ type: "paragraph", text: "Edit `~/.continue/config.json`. Add to the `mcpServers` array:" },
|
|
290
|
+
{ type: "heading", level: 3, id: "continue-hosted", text: "Hosted (recommended)" },
|
|
291
|
+
{ type: "code", language: "json", code: `{
|
|
292
|
+
"name": "talonic",
|
|
293
|
+
"url": "https://mcp.talonic.com/mcp",
|
|
294
|
+
"headers": {
|
|
295
|
+
"Authorization": "Bearer tlnc_your_key_here"
|
|
296
|
+
}
|
|
297
|
+
}` },
|
|
298
|
+
{ type: "heading", level: 3, id: "continue-local", text: "Local (npx)" },
|
|
263
299
|
{ type: "code", language: "json", code: `{
|
|
264
300
|
"name": "talonic",
|
|
265
301
|
"command": "npx",
|
|
@@ -285,7 +321,10 @@ var sections2 = [
|
|
|
285
321
|
seoTitle: "Cowork Setup \u2014 Talonic MCP",
|
|
286
322
|
description: "Configure the Talonic MCP server in Cowork.",
|
|
287
323
|
content: [
|
|
288
|
-
{ type: "paragraph", text: "Open Cowork settings \u2192 MCP Servers \u2192 Add.
|
|
324
|
+
{ type: "paragraph", text: "Open Cowork settings \u2192 MCP Servers \u2192 Add." },
|
|
325
|
+
{ type: "heading", level: 3, id: "cowork-hosted", text: "Hosted (recommended)" },
|
|
326
|
+
{ type: "code", language: "json", code: MCP_HOSTED_SNIPPET },
|
|
327
|
+
{ type: "heading", level: 3, id: "cowork-local", text: "Local (npx)" },
|
|
289
328
|
{ type: "code", language: "json", code: MCP_CONFIG_SNIPPET }
|
|
290
329
|
],
|
|
291
330
|
related: [
|
|
@@ -316,10 +355,67 @@ var sections3 = [
|
|
|
316
355
|
{ name: "file_path", type: "string", description: "Local file path." },
|
|
317
356
|
{ name: "file_url", type: "string", description: "Remote file URL." },
|
|
318
357
|
{ 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." }
|
|
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." }
|
|
321
362
|
] },
|
|
322
|
-
{ type: "callout", variant: "warning", text: "Always provide a `schema` or `schema_id`. Auto-discovery extract (no schema) is not reliable in v0.1." }
|
|
363
|
+
{ type: "callout", variant: "warning", text: "Always provide a `schema` or `schema_id`. Auto-discovery extract (no schema) is not reliable in v0.1." },
|
|
364
|
+
{ type: "heading", level: 3, id: "extract-inline-schema", text: "Example: inline schema" },
|
|
365
|
+
{ type: "code", language: "json", title: "Tool input", code: `{
|
|
366
|
+
"file_url": "https://example.com/invoice-2026-001.pdf",
|
|
367
|
+
"schema": {
|
|
368
|
+
"type": "object",
|
|
369
|
+
"properties": {
|
|
370
|
+
"vendor_name": { "type": "string" },
|
|
371
|
+
"invoice_number": { "type": "string" },
|
|
372
|
+
"total_amount": { "type": "number" },
|
|
373
|
+
"due_date": { "type": "string", "format": "date" },
|
|
374
|
+
"line_items": {
|
|
375
|
+
"type": "array",
|
|
376
|
+
"items": {
|
|
377
|
+
"type": "object",
|
|
378
|
+
"properties": {
|
|
379
|
+
"description": { "type": "string" },
|
|
380
|
+
"amount": { "type": "number" }
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"required": ["vendor_name", "total_amount"]
|
|
386
|
+
},
|
|
387
|
+
"instructions": "Amounts are in EUR. Focus on the billing section."
|
|
388
|
+
}` },
|
|
389
|
+
{ type: "code", language: "json", title: "Tool response", code: `{
|
|
390
|
+
"document_id": "doc_8f3a...",
|
|
391
|
+
"data": {
|
|
392
|
+
"vendor_name": "Meridian Energy AG",
|
|
393
|
+
"invoice_number": "INV-2026-001",
|
|
394
|
+
"total_amount": 1500.00,
|
|
395
|
+
"due_date": "2026-06-15",
|
|
396
|
+
"line_items": [
|
|
397
|
+
{ "description": "Consulting \u2014 April", "amount": 1200.00 },
|
|
398
|
+
{ "description": "Travel expenses", "amount": 300.00 }
|
|
399
|
+
]
|
|
400
|
+
},
|
|
401
|
+
"confidence": {
|
|
402
|
+
"vendor_name": 0.98,
|
|
403
|
+
"invoice_number": 0.95,
|
|
404
|
+
"total_amount": 0.99,
|
|
405
|
+
"due_date": 0.97
|
|
406
|
+
},
|
|
407
|
+
"document": {
|
|
408
|
+
"filename": "invoice-2026-001.pdf",
|
|
409
|
+
"pages": 2,
|
|
410
|
+
"type_detected": "Invoice",
|
|
411
|
+
"language_detected": "de"
|
|
412
|
+
}
|
|
413
|
+
}` },
|
|
414
|
+
{ type: "heading", level: 3, id: "extract-schema-id", text: "Example: saved schema" },
|
|
415
|
+
{ type: "code", language: "json", title: "Tool input", code: `{
|
|
416
|
+
"file_path": "./contracts/lease-agreement.pdf",
|
|
417
|
+
"schema_id": "SCH-A1B2C3D4"
|
|
418
|
+
}` }
|
|
323
419
|
],
|
|
324
420
|
related: [
|
|
325
421
|
{ label: "talonic_to_markdown", slug: "talonic-to-markdown" },
|
|
@@ -340,8 +436,37 @@ var sections3 = [
|
|
|
340
436
|
content: [
|
|
341
437
|
{ type: "paragraph", text: "Omnisearch across documents, fields, sources, and schemas in the workspace. Use for conceptual or fuzzy queries." },
|
|
342
438
|
{ type: "param-table", params: [
|
|
343
|
-
{ name: "query", type: "string", required: true, description: "The search query. Supports fuzzy and conceptual matching." }
|
|
344
|
-
|
|
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
|
+
] },
|
|
442
|
+
{ type: "heading", level: 3, id: "search-example", text: "Example" },
|
|
443
|
+
{ type: "code", language: "json", title: "Tool input", code: `{
|
|
444
|
+
"query": "indemnification clauses Acme",
|
|
445
|
+
"limit": 10
|
|
446
|
+
}` },
|
|
447
|
+
{ type: "code", language: "json", title: "Tool response", code: `{
|
|
448
|
+
"documents": [
|
|
449
|
+
{
|
|
450
|
+
"id": "doc_4e7b...",
|
|
451
|
+
"filename": "acme-services-agreement.pdf",
|
|
452
|
+
"type_detected": "Services Agreement",
|
|
453
|
+
"score": 0.92
|
|
454
|
+
}
|
|
455
|
+
],
|
|
456
|
+
"fieldMatches": [
|
|
457
|
+
{
|
|
458
|
+
"fieldName": "indemnification.cap_amount",
|
|
459
|
+
"documentId": "doc_4e7b...",
|
|
460
|
+
"value": "2x annual fees",
|
|
461
|
+
"score": 0.88
|
|
462
|
+
}
|
|
463
|
+
],
|
|
464
|
+
"schemas": [],
|
|
465
|
+
"sources": [],
|
|
466
|
+
"fields": [
|
|
467
|
+
{ "canonicalName": "indemnification.cap_amount", "type": "string" }
|
|
468
|
+
]
|
|
469
|
+
}` }
|
|
345
470
|
],
|
|
346
471
|
related: [
|
|
347
472
|
{ label: "talonic_filter", slug: "talonic-filter" }
|
|
@@ -360,7 +485,47 @@ var sections3 = [
|
|
|
360
485
|
content: [
|
|
361
486
|
{ type: "paragraph", text: "Filter documents by extracted field values using composable conditions (`eq`, `gt`, `between`, `contains`, etc.)." },
|
|
362
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." },
|
|
363
|
-
{ type: "
|
|
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." },
|
|
496
|
+
{ type: "heading", level: 3, id: "filter-example", text: "Example" },
|
|
497
|
+
{ type: "code", language: "json", title: "Tool input", code: `{
|
|
498
|
+
"conditions": [
|
|
499
|
+
{ "field": "vendor.name", "operator": "eq", "value": "Meridian Energy AG" },
|
|
500
|
+
{ "field": "invoice.total_eur", "operator": "gt", "value": 1000 }
|
|
501
|
+
],
|
|
502
|
+
"sort": { "field": "invoice.total_eur", "direction": "desc" },
|
|
503
|
+
"limit": 20
|
|
504
|
+
}` },
|
|
505
|
+
{ type: "code", language: "json", title: "Tool response", code: `{
|
|
506
|
+
"data": [
|
|
507
|
+
{
|
|
508
|
+
"document_id": "doc_8f3a...",
|
|
509
|
+
"filename": "invoice-2026-001.pdf",
|
|
510
|
+
"fields": {
|
|
511
|
+
"vendor.name": "Meridian Energy AG",
|
|
512
|
+
"invoice.total_eur": 1500.00,
|
|
513
|
+
"invoice.due_date": "2026-06-15"
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"document_id": "doc_c2d9...",
|
|
518
|
+
"filename": "invoice-2026-003.pdf",
|
|
519
|
+
"fields": {
|
|
520
|
+
"vendor.name": "Meridian Energy AG",
|
|
521
|
+
"invoice.total_eur": 1200.00,
|
|
522
|
+
"invoice.due_date": "2026-04-30"
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
],
|
|
526
|
+
"total": 2,
|
|
527
|
+
"page": 1
|
|
528
|
+
}` }
|
|
364
529
|
],
|
|
365
530
|
related: [
|
|
366
531
|
{ label: "talonic_search", slug: "talonic-search" },
|
|
@@ -381,7 +546,27 @@ var sections3 = [
|
|
|
381
546
|
{ type: "paragraph", text: "Fetch full metadata for a single document by ID, including processing log and link URLs." },
|
|
382
547
|
{ type: "param-table", params: [
|
|
383
548
|
{ name: "document_id", type: "string", required: true, description: "The document UUID." }
|
|
384
|
-
] }
|
|
549
|
+
] },
|
|
550
|
+
{ type: "heading", level: 3, id: "get-document-example", text: "Example" },
|
|
551
|
+
{ type: "code", language: "json", title: "Tool input", code: `{
|
|
552
|
+
"document_id": "doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c"
|
|
553
|
+
}` },
|
|
554
|
+
{ type: "code", language: "json", title: "Tool response", code: `{
|
|
555
|
+
"id": "doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
|
|
556
|
+
"filename": "invoice-2026-001.pdf",
|
|
557
|
+
"status": "completed",
|
|
558
|
+
"pages": 2,
|
|
559
|
+
"size_bytes": 184320,
|
|
560
|
+
"mime_type": "application/pdf",
|
|
561
|
+
"type_detected": "Invoice",
|
|
562
|
+
"language_detected": "de",
|
|
563
|
+
"source": { "id": "src_a1b2...", "type": "api" },
|
|
564
|
+
"links": {
|
|
565
|
+
"self": "https://api.talonic.com/v1/documents/doc_8f3a...",
|
|
566
|
+
"extractions": "https://api.talonic.com/v1/documents/doc_8f3a.../extractions",
|
|
567
|
+
"dashboard": "https://app.talonic.com/documents/doc_8f3a..."
|
|
568
|
+
}
|
|
569
|
+
}` }
|
|
385
570
|
],
|
|
386
571
|
related: [
|
|
387
572
|
{ label: "talonic_to_markdown", slug: "talonic-to-markdown" },
|
|
@@ -399,7 +584,31 @@ var sections3 = [
|
|
|
399
584
|
seoTitle: "talonic_to_markdown Tool \u2014 Talonic MCP",
|
|
400
585
|
description: "Get OCR-converted markdown for a document. Accepts document_id, file_data + filename, file_path, or file_url.",
|
|
401
586
|
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`." }
|
|
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
|
+
] },
|
|
595
|
+
{ type: "heading", level: 3, id: "to-markdown-example", text: "Example" },
|
|
596
|
+
{ type: "code", language: "json", title: "Tool input", code: `{
|
|
597
|
+
"document_id": "doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c"
|
|
598
|
+
}` },
|
|
599
|
+
{ type: "code", language: "markdown", title: "Tool response", code: `# Invoice INV-2026-001
|
|
600
|
+
|
|
601
|
+
**Meridian Energy AG**
|
|
602
|
+
Musterstra\xDFe 42, 10115 Berlin
|
|
603
|
+
|
|
604
|
+
| Item | Amount |
|
|
605
|
+
|-----------------------|------------|
|
|
606
|
+
| Consulting \u2014 April | \u20AC1,200.00 |
|
|
607
|
+
| Travel expenses | \u20AC300.00 |
|
|
608
|
+
| **Total** | **\u20AC1,500.00** |
|
|
609
|
+
|
|
610
|
+
Due date: 15 June 2026
|
|
611
|
+
Payment terms: Net 30` }
|
|
403
612
|
],
|
|
404
613
|
related: [
|
|
405
614
|
{ label: "talonic_extract", slug: "talonic-extract" },
|
|
@@ -418,7 +627,42 @@ var sections3 = [
|
|
|
418
627
|
description: "List all saved schemas with their definitions in the workspace.",
|
|
419
628
|
content: [
|
|
420
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." },
|
|
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)." }
|
|
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)." },
|
|
631
|
+
{ type: "heading", level: 3, id: "list-schemas-example", text: "Example" },
|
|
632
|
+
{ type: "paragraph", text: "No input parameters required." },
|
|
633
|
+
{ type: "code", language: "json", title: "Tool response", code: `{
|
|
634
|
+
"schemas": [
|
|
635
|
+
{
|
|
636
|
+
"id": "sch_7a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
|
|
637
|
+
"short_id": "SCH-A1B2C3D4",
|
|
638
|
+
"name": "Standard Invoice",
|
|
639
|
+
"description": "Extracts vendor, line items, totals, and payment terms.",
|
|
640
|
+
"version": 3,
|
|
641
|
+
"field_count": 6,
|
|
642
|
+
"definition": {
|
|
643
|
+
"type": "object",
|
|
644
|
+
"properties": {
|
|
645
|
+
"vendor_name": { "type": "string" },
|
|
646
|
+
"invoice_number": { "type": "string" },
|
|
647
|
+
"total_amount": { "type": "number" },
|
|
648
|
+
"due_date": { "type": "string", "format": "date" },
|
|
649
|
+
"currency": { "type": "string" },
|
|
650
|
+
"line_items": { "type": "array" }
|
|
651
|
+
},
|
|
652
|
+
"required": ["vendor_name", "total_amount"]
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"id": "sch_e5f6a7b8-c9d0-1e2f-3a4b-5c6d7e8f9a0b",
|
|
657
|
+
"short_id": "SCH-E5F6A7B8",
|
|
658
|
+
"name": "Certificate of Insurance",
|
|
659
|
+
"description": "Extracts insured party, coverage types, limits, and expiry.",
|
|
660
|
+
"version": 1,
|
|
661
|
+
"field_count": 8,
|
|
662
|
+
"definition": { "type": "object", "properties": { "..." : {} } }
|
|
663
|
+
}
|
|
664
|
+
]
|
|
665
|
+
}` }
|
|
422
666
|
],
|
|
423
667
|
related: [
|
|
424
668
|
{ label: "talonic_save_schema", slug: "talonic-save-schema" },
|
|
@@ -437,7 +681,45 @@ var sections3 = [
|
|
|
437
681
|
description: "Save a schema definition to the workspace for reuse across extractions.",
|
|
438
682
|
content: [
|
|
439
683
|
{ 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: "
|
|
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.' },
|
|
690
|
+
{ type: "heading", level: 3, id: "save-schema-example", text: "Example" },
|
|
691
|
+
{ type: "code", language: "json", title: "Tool input", code: `{
|
|
692
|
+
"name": "Standard Invoice",
|
|
693
|
+
"description": "Extracts vendor, line items, totals, and payment terms from invoices.",
|
|
694
|
+
"definition": {
|
|
695
|
+
"type": "object",
|
|
696
|
+
"properties": {
|
|
697
|
+
"vendor_name": { "type": "string" },
|
|
698
|
+
"invoice_number": { "type": "string" },
|
|
699
|
+
"total_amount": { "type": "number" },
|
|
700
|
+
"due_date": { "type": "string", "format": "date" },
|
|
701
|
+
"line_items": {
|
|
702
|
+
"type": "array",
|
|
703
|
+
"items": {
|
|
704
|
+
"type": "object",
|
|
705
|
+
"properties": {
|
|
706
|
+
"description": { "type": "string" },
|
|
707
|
+
"amount": { "type": "number" }
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
"required": ["vendor_name", "total_amount"]
|
|
713
|
+
}
|
|
714
|
+
}` },
|
|
715
|
+
{ type: "code", language: "json", title: "Tool response", code: `{
|
|
716
|
+
"id": "sch_7a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
|
|
717
|
+
"short_id": "SCH-A1B2C3D4",
|
|
718
|
+
"name": "Standard Invoice",
|
|
719
|
+
"description": "Extracts vendor, line items, totals, and payment terms from invoices.",
|
|
720
|
+
"version": 1,
|
|
721
|
+
"field_count": 5
|
|
722
|
+
}` }
|
|
441
723
|
],
|
|
442
724
|
related: [
|
|
443
725
|
{ label: "talonic_list_schemas", slug: "talonic-list-schemas" },
|
|
@@ -535,7 +817,7 @@ var sections6 = [
|
|
|
535
817
|
{ type: "heading", level: 3, id: "missing-api-key", text: "TALONIC_API_KEY environment variable is required" },
|
|
536
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)." },
|
|
537
819
|
{ 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
|
|
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.' },
|
|
539
821
|
{ type: "heading", level: 3, id: "extract-500", text: "talonic_extract returns 500 with auto-discovery" },
|
|
540
822
|
{ type: "paragraph", text: "Known limitation. Always provide either an inline `schema` or a `schema_id`. The auto-discovery code path is being stabilised." },
|
|
541
823
|
{ type: "heading", level: 3, id: "unsupported-file", text: "talonic_extract rejects with unsupported_file_type" },
|