@talonic/mcp 0.1.26 → 0.1.28
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 +43 -12
- package/dist/content.js +1172 -35
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +1 -1
- package/dist/http-server.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/content.js
CHANGED
|
@@ -112,7 +112,49 @@ var sections = [
|
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
type: "paragraph",
|
|
115
|
-
text: "Installation takes under a minute
|
|
115
|
+
text: "Installation takes under a minute. The recommended path is the hosted endpoint at `mcp.talonic.com` connected via Claude.ai's custom-connector flow, which uses OAuth 2.1 with PKCE and Dynamic Client Registration so no API key is pasted into config. For IDE-style clients, the local `npx` option uses a `TALONIC_API_KEY` environment variable and runs on any machine with Node.js 18 or later. A third path keeps the hosted endpoint but supplies a `Bearer tlnc_\u2026` header for clients that do not yet handle the OAuth handshake."
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
type: "paragraph",
|
|
119
|
+
text: "A typical agent conversation with Talonic starts when the user drops a document into the chat or asks the agent to process a file from a URL. The agent calls `talonic_extract` with a schema describing the fields to pull out, and receives structured JSON within seconds. From there, the agent can present the data, answer follow-up questions, or feed the extracted values into downstream workflows \u2014 all without the user leaving the conversation."
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
type: "code",
|
|
123
|
+
language: "json",
|
|
124
|
+
title: "Quick-start: extract an invoice in one tool call",
|
|
125
|
+
code: `{
|
|
126
|
+
"file_url": "https://example.com/invoice.pdf",
|
|
127
|
+
"schema": {
|
|
128
|
+
"type": "object",
|
|
129
|
+
"properties": {
|
|
130
|
+
"vendor": { "type": "string" },
|
|
131
|
+
"total": { "type": "number" },
|
|
132
|
+
"due_date": { "type": "string", "format": "date" }
|
|
133
|
+
},
|
|
134
|
+
"required": ["vendor", "total"]
|
|
135
|
+
}
|
|
136
|
+
}`
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
type: "code",
|
|
140
|
+
language: "json",
|
|
141
|
+
title: "Response: structured data with confidence",
|
|
142
|
+
code: `{
|
|
143
|
+
"status": "complete",
|
|
144
|
+
"data": {
|
|
145
|
+
"vendor": "Acme Corp",
|
|
146
|
+
"total": 2450.00,
|
|
147
|
+
"due_date": "2026-07-01"
|
|
148
|
+
},
|
|
149
|
+
"confidence": {
|
|
150
|
+
"overall": 0.96,
|
|
151
|
+
"fields": { "vendor": 0.98, "total": 0.99, "due_date": 0.94 }
|
|
152
|
+
}
|
|
153
|
+
}`
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
type: "paragraph",
|
|
157
|
+
text: "The MCP server supports every major AI coding and chat client: Claude Desktop, Cursor, Cline, Continue, and Cowork. Each client has its own config format, but the setup pattern is the same \u2014 add a JSON entry pointing to the Talonic server (hosted URL or local npx command), supply your API key, and restart the client. The server then registers its tools and resources, which the agent can discover and invoke automatically during conversations."
|
|
116
158
|
},
|
|
117
159
|
{
|
|
118
160
|
type: "callout",
|
|
@@ -137,6 +179,14 @@ var sections = [
|
|
|
137
179
|
{
|
|
138
180
|
question: "Do I need to install anything to use the Talonic MCP server?",
|
|
139
181
|
answer: "Not necessarily. The hosted server at mcp.talonic.com requires zero local installation \u2014 just a URL and API key in your MCP client config. Alternatively, the local npx option requires Node.js 18+."
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
question: "What document types does the Talonic MCP server support?",
|
|
185
|
+
answer: "The server supports PDF, PNG, JPG, TIFF, DOCX, XLSX, and other common document formats. Documents can be invoices, contracts, receipts, forms, certificates, or any structured or semi-structured document. The extraction pipeline handles OCR, layout analysis, and field extraction server-side."
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
question: "How many tools does the Talonic MCP server expose?",
|
|
189
|
+
answer: "Eight tools and two resources. The tools are talonic_extract, talonic_search, talonic_filter, talonic_get_document, talonic_to_markdown, talonic_list_schemas, talonic_save_schema, and talonic_get_balance. The resources are talonic://schemas and talonic://webhooks/reference."
|
|
140
190
|
}
|
|
141
191
|
],
|
|
142
192
|
mentions: ["MCP", "Model Context Protocol", "AI agents", "document extraction"]
|
|
@@ -164,6 +214,40 @@ var sections = [
|
|
|
164
214
|
type: "paragraph",
|
|
165
215
|
text: "Because each extraction returns **per-field confidence scores**, agents can make informed decisions about when to trust extracted values and when to escalate to the user for review. This is especially valuable for high-stakes fields like financial amounts, legal terms, and dates where silent errors are costly."
|
|
166
216
|
},
|
|
217
|
+
{
|
|
218
|
+
type: "paragraph",
|
|
219
|
+
text: "Integration effort is minimal compared to building a custom extraction pipeline. A raw OCR + LLM approach requires choosing an OCR library, writing prompts for each document type, parsing unstructured LLM output into typed fields, implementing confidence estimation, and handling edge cases like rotated pages, multi-column layouts, and mixed languages. The Talonic MCP server replaces all of that with a single tool call that returns clean, validated JSON."
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
type: "code",
|
|
223
|
+
language: "json",
|
|
224
|
+
title: "Agent conversation: comparing raw OCR vs Talonic",
|
|
225
|
+
code: `// Without Talonic \u2014 agent must chain multiple steps:
|
|
226
|
+
// 1. OCR the PDF \u2192 raw text with layout errors
|
|
227
|
+
// 2. Prompt LLM to extract fields \u2192 unstructured output
|
|
228
|
+
// 3. Parse LLM output \u2192 fragile regex/JSON parsing
|
|
229
|
+
// 4. Validate types \u2192 manual type coercion
|
|
230
|
+
// 5. Estimate confidence \u2192 no signal available
|
|
231
|
+
|
|
232
|
+
// With Talonic \u2014 single tool call:
|
|
233
|
+
{
|
|
234
|
+
"file_url": "https://example.com/contract.pdf",
|
|
235
|
+
"schema": {
|
|
236
|
+
"type": "object",
|
|
237
|
+
"properties": {
|
|
238
|
+
"parties": { "type": "array", "items": { "type": "string" } },
|
|
239
|
+
"effective_date": { "type": "string", "format": "date" },
|
|
240
|
+
"term_months": { "type": "integer" },
|
|
241
|
+
"governing_law": { "type": "string" }
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
// \u2192 Returns validated JSON + confidence scores in ~3 seconds`
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
type: "paragraph",
|
|
249
|
+
text: "The workspace model is another key advantage. Every document processed through the MCP server is stored in your Talonic workspace with a stable `document_id`. This means an agent can extract an invoice today, and a week later the user can ask 'what was the total on that Meridian invoice?' \u2014 the agent searches the workspace, finds the document, and retrieves the previously extracted data without re-uploading or re-processing. This persistent workspace turns the MCP server from a one-shot tool into a long-term document intelligence layer."
|
|
250
|
+
},
|
|
167
251
|
{
|
|
168
252
|
type: "callout",
|
|
169
253
|
variant: "info",
|
|
@@ -186,6 +270,14 @@ var sections = [
|
|
|
186
270
|
{
|
|
187
271
|
question: "Can I re-extract a document with a different schema without re-uploading?",
|
|
188
272
|
answer: "Yes. Pass the document_id from a previous extraction to talonic_extract with a new schema. The server reuses the already-ingested document, which is faster and costs fewer credits."
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
question: "What confidence scores does Talonic provide?",
|
|
276
|
+
answer: "Every extraction includes confidence.overall (0 to 1) and confidence.fields with a per-field score. Agents can use these to decide when to trust values automatically and when to escalate to the user for review. Scores above 0.9 are highly reliable; below 0.7 warrants human verification."
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
question: "How does Talonic handle multi-language documents?",
|
|
280
|
+
answer: "The extraction pipeline auto-detects the document language and returns it in the language_detected field. OCR and field extraction work across Latin, Cyrillic, CJK, and Arabic scripts. No language configuration is needed \u2014 the server handles detection and adaptation automatically."
|
|
189
281
|
}
|
|
190
282
|
],
|
|
191
283
|
mentions: ["OCR", "schema-validated", "confidence scores", "structured data"]
|
|
@@ -325,6 +417,11 @@ var sections = [
|
|
|
325
417
|
type: "paragraph",
|
|
326
418
|
text: "Each user runs against their own isolated Talonic workspace. Your documents and schemas are private to you."
|
|
327
419
|
},
|
|
420
|
+
{
|
|
421
|
+
type: "callout",
|
|
422
|
+
variant: "info",
|
|
423
|
+
text: "If you are connecting from Claude.ai's custom-connector flow, you can skip the API-key steps below. The connector launches an OAuth 2.1 sign-in to `app.talonic.com` and the MCP server then uses a short-lived bearer token on your behalf. Get an API key when you want to install locally via `npx`, drive the hosted endpoint from a custom-header client, or use the Node SDK."
|
|
424
|
+
},
|
|
328
425
|
{
|
|
329
426
|
type: "list",
|
|
330
427
|
ordered: true,
|
|
@@ -346,6 +443,45 @@ var sections = [
|
|
|
346
443
|
type: "paragraph",
|
|
347
444
|
text: "The free tier includes 50 extractions per day, which is enough for development and testing. For production workloads or higher volume, upgrade your plan in the Talonic dashboard. All plans share the same API \u2014 the key determines your rate limits and quota."
|
|
348
445
|
},
|
|
446
|
+
{
|
|
447
|
+
type: "code",
|
|
448
|
+
language: "json",
|
|
449
|
+
title: "Local npx config with API key",
|
|
450
|
+
code: `{
|
|
451
|
+
"mcpServers": {
|
|
452
|
+
"talonic": {
|
|
453
|
+
"command": "npx",
|
|
454
|
+
"args": ["-y", "@talonic/mcp@latest"],
|
|
455
|
+
"env": {
|
|
456
|
+
"TALONIC_API_KEY": "tlnc_your_key_here"
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}`
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
type: "code",
|
|
464
|
+
language: "json",
|
|
465
|
+
title: "Hosted config with API key as Bearer token",
|
|
466
|
+
code: `{
|
|
467
|
+
"mcpServers": {
|
|
468
|
+
"talonic": {
|
|
469
|
+
"url": "https://mcp.talonic.com/mcp",
|
|
470
|
+
"headers": {
|
|
471
|
+
"Authorization": "Bearer tlnc_your_key_here"
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}`
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
type: "paragraph",
|
|
479
|
+
text: "After adding your API key to the config, verify the connection by asking your agent to call `talonic_list_schemas`. If the key is valid, the tool returns your saved schemas (or an empty list if you have not saved any yet). If the key is invalid or missing, the server returns a clear authentication error that tells the agent the key needs to be checked. This is the fastest way to confirm your setup is working end-to-end."
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
type: "paragraph",
|
|
483
|
+
text: "Each API key is scoped to a single workspace. If you work across multiple Talonic workspaces \u2014 for example, separate environments for development and production \u2014 you will need a different API key for each. You can create multiple keys within the same workspace for different team members or applications, and revoke them independently without affecting other keys."
|
|
484
|
+
},
|
|
349
485
|
{
|
|
350
486
|
type: "callout",
|
|
351
487
|
variant: "warning",
|
|
@@ -368,6 +504,14 @@ var sections = [
|
|
|
368
504
|
{
|
|
369
505
|
question: "What should I do if my API key is compromised?",
|
|
370
506
|
answer: "Revoke it immediately in the Talonic dashboard under Settings > API Keys, then generate a new one. Update your MCP client config with the new key and restart the client."
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
question: "Can I use the same API key across multiple MCP clients?",
|
|
510
|
+
answer: "Yes. The same tlnc_ key works in Claude Desktop, Cursor, Cline, Continue, Cowork, or any other MCP client simultaneously. The key is tied to your workspace, not to a specific client. Rate limits apply per-key across all clients."
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
question: "How do I verify my API key is working?",
|
|
514
|
+
answer: "After configuring your MCP client, ask the agent to call talonic_list_schemas. A successful response (even an empty list) confirms the key is valid and the server is connected. An authentication error means the key is missing, malformed, or revoked."
|
|
371
515
|
}
|
|
372
516
|
],
|
|
373
517
|
mentions: ["API key", "tlnc_", "free tier"]
|
|
@@ -406,28 +550,45 @@ var sections2 = [
|
|
|
406
550
|
content: [
|
|
407
551
|
{
|
|
408
552
|
type: "paragraph",
|
|
409
|
-
text: "
|
|
553
|
+
text: "Three ways to connect. The recommended path for Claude.ai users is the hosted MCP via the **OAuth connector flow**: paste one URL into Claude.ai's connector settings, sign in with your Talonic account, approve the consent screen. No API key in your config, ever. For IDE-style clients (Cursor, Cline, Continue, Cowork) and Claude Desktop, the local `npx` install is the canonical path. A third hosted option, with the Talonic API key in an `Authorization` header, exists for clients that support custom headers on remote MCP servers."
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
type: "heading",
|
|
557
|
+
level: 3,
|
|
558
|
+
id: "hosted-claude-ai",
|
|
559
|
+
text: "Hosted via Claude.ai connector (OAuth, recommended)"
|
|
410
560
|
},
|
|
411
|
-
{ type: "heading", level: 3, id: "hosted-recommended", text: "Hosted (recommended)" },
|
|
412
561
|
{
|
|
413
562
|
type: "paragraph",
|
|
414
|
-
text: "
|
|
563
|
+
text: "Claude.ai's `Add custom connector` flow does the OAuth 2.1 handshake for you. The MCP server lives at `https://mcp.talonic.com/mcp`; Claude.ai discovers the authorization server, registers itself dynamically (RFC 7591), and runs the PKCE authorization-code flow. The resulting access token is stored by Claude.ai and refreshed automatically (1-hour access token, 30-day refresh)."
|
|
415
564
|
},
|
|
416
565
|
{
|
|
417
|
-
type: "
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
566
|
+
type: "list",
|
|
567
|
+
ordered: true,
|
|
568
|
+
items: [
|
|
569
|
+
"Open `https://claude.ai/settings/connectors`.",
|
|
570
|
+
"Click **Add custom connector**.",
|
|
571
|
+
"URL: `https://mcp.talonic.com/mcp` \u2014 no query string, no headers.",
|
|
572
|
+
"Click **Connect**. You are redirected to Talonic to sign in.",
|
|
573
|
+
"Sign in with Google, Microsoft, or your company SSO.",
|
|
574
|
+
"Approve the consent screen. The requested scopes are `extract:write`, `documents:read`, and `schemas:read`. Pick a workspace if you have multiple.",
|
|
575
|
+
"You are returned to Claude.ai with the connector live. All eight tools are available in any new conversation."
|
|
576
|
+
]
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
type: "paragraph",
|
|
580
|
+
text: "No API key appears in the connector config or in any URL the browser navigates to. To revoke access, remove the connector in Claude.ai or revoke the OAuth client from your Talonic dashboard. Your tools and tokens are scoped to the workspace you picked at consent time."
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
type: "heading",
|
|
584
|
+
level: 3,
|
|
585
|
+
id: "local-npx",
|
|
586
|
+
text: "Local stdio (npx)"
|
|
424
587
|
},
|
|
425
588
|
{
|
|
426
589
|
type: "paragraph",
|
|
427
|
-
text: "
|
|
590
|
+
text: "Recommended for IDE-style clients (Cursor, Cline, Continue, Cowork) and Claude Desktop, where the MCP host spawns the server as a local child process. Requires Node.js 18+. Your API key lives in the client's `env` block."
|
|
428
591
|
},
|
|
429
|
-
{ type: "heading", level: 3, id: "local-npx", text: "Local (npx)" },
|
|
430
|
-
{ type: "paragraph", text: "Runs on your machine. Requires Node.js 18+:" },
|
|
431
592
|
{
|
|
432
593
|
type: "code",
|
|
433
594
|
language: "jsonc",
|
|
@@ -440,11 +601,72 @@ var sections2 = [
|
|
|
440
601
|
},
|
|
441
602
|
{
|
|
442
603
|
type: "paragraph",
|
|
443
|
-
text: "The `-y` flag skips the npm install prompt. Pinning to `@latest` means new versions are picked up on the next client restart."
|
|
604
|
+
text: "The `-y` flag skips the npm install prompt. Pinning to `@latest` means new versions are picked up on the next client restart. For production deployments and CI, pin to a specific version (e.g. `@talonic/mcp@0.1.27`) so a future release cannot silently change tool descriptions, validation rules, or response shapes."
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
type: "heading",
|
|
608
|
+
level: 3,
|
|
609
|
+
id: "hosted-bearer",
|
|
610
|
+
text: "Hosted with a Bearer header (custom-header clients)"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
type: "paragraph",
|
|
614
|
+
text: "For MCP clients that support remote servers with custom headers (mcp-inspector, custom integrations), connect to the hosted endpoint with the API key in an `Authorization` header. Claude.ai's connector UI does not currently support custom headers, which is why the OAuth flow above is the recommended path for Claude.ai users."
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
type: "code",
|
|
618
|
+
language: "jsonc",
|
|
619
|
+
title: "Hosted config (custom-header clients)",
|
|
620
|
+
code: `{
|
|
621
|
+
"url": "https://mcp.talonic.com/mcp",
|
|
622
|
+
"headers": { "Authorization": "Bearer tlnc_..." }
|
|
623
|
+
}`
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
type: "paragraph",
|
|
627
|
+
text: "All three install paths expose the same eight tools and two resources. The hosted server runs the latest version of `@talonic/mcp` automatically; the local `npx` install picks up the latest version on next client restart when pinned to `@latest`."
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
type: "heading",
|
|
631
|
+
level: 3,
|
|
632
|
+
id: "verify-install",
|
|
633
|
+
text: "Verify the connection"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
type: "paragraph",
|
|
637
|
+
text: "After adding the config and restarting your MCP client, verify the connection by asking the agent to list your schemas. This is a lightweight read-only call that confirms the API key is valid and the server is reachable. If the call succeeds, all eight tools are ready to use."
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
type: "code",
|
|
641
|
+
language: "json",
|
|
642
|
+
title: "Verification: ask the agent to call talonic_list_schemas",
|
|
643
|
+
code: `// Agent sends:
|
|
644
|
+
{ }
|
|
645
|
+
|
|
646
|
+
// Server responds (empty workspace):
|
|
647
|
+
{
|
|
648
|
+
"schemas": []
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
// Server responds (workspace with saved schemas):
|
|
652
|
+
{
|
|
653
|
+
"schemas": [
|
|
654
|
+
{
|
|
655
|
+
"id": "sch_7a1b...",
|
|
656
|
+
"short_id": "SCH-A1B2C3D4",
|
|
657
|
+
"name": "Standard Invoice",
|
|
658
|
+
"field_count": 6
|
|
659
|
+
}
|
|
660
|
+
]
|
|
661
|
+
}`
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
type: "paragraph",
|
|
665
|
+
text: "If the verification fails, check three things in order: (1) your JSON config is syntactically valid \u2014 a missing comma or bracket is the most common cause, (2) the API key starts with `tlnc_` and has not been revoked, and (3) you fully restarted the MCP client after editing the config. For the local npx option, you can also test the server standalone by running `npx -y @talonic/mcp@latest --version` in a terminal to confirm it installs and prints a version number."
|
|
444
666
|
},
|
|
445
667
|
{
|
|
446
668
|
type: "paragraph",
|
|
447
|
-
text: "
|
|
669
|
+
text: "The hosted and local options can be swapped at any time by editing your config. Some developers start with the hosted option for quick setup and switch to local npx when they need offline access or want to inspect server logs. The tools, parameters, and responses are identical regardless of which option you choose, so no agent-side changes are needed when switching."
|
|
448
670
|
},
|
|
449
671
|
{
|
|
450
672
|
type: "callout",
|
|
@@ -468,6 +690,14 @@ var sections2 = [
|
|
|
468
690
|
{
|
|
469
691
|
question: "Do I need to update the MCP server manually?",
|
|
470
692
|
answer: "With the hosted server, updates are automatic. With the local npx option, pinning to @latest means new versions are fetched on the next client restart."
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
question: "Can I switch between hosted and local without changing my workflow?",
|
|
696
|
+
answer: "Yes. Both options expose identical tools, parameters, and responses. Edit the config to swap between hosted URL and local npx command, restart the client, and everything works the same. No agent-side or schema changes needed."
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
question: "What Node.js version do I need for the local option?",
|
|
700
|
+
answer: "Node.js 18 or later. The npx command downloads and runs the MCP server package automatically. No global install is needed \u2014 npx handles it. Run node --version in a terminal to check your version."
|
|
471
701
|
}
|
|
472
702
|
],
|
|
473
703
|
mentions: ["npx", "npm", "MCP client", "install"]
|
|
@@ -499,6 +729,42 @@ var sections2 = [
|
|
|
499
729
|
type: "paragraph",
|
|
500
730
|
text: "After connecting, you can verify the setup by asking Claude to list your schemas (`talonic_list_schemas`) or extract data from a sample document. If the tools do not appear, check that your JSON is valid and the config file is in the correct directory for your operating system."
|
|
501
731
|
},
|
|
732
|
+
{
|
|
733
|
+
type: "heading",
|
|
734
|
+
level: 3,
|
|
735
|
+
id: "claude-desktop-verify",
|
|
736
|
+
text: "Verify the connection"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
type: "paragraph",
|
|
740
|
+
text: "After restarting Claude Desktop, open a new conversation and ask Claude to list your schemas. A successful response confirms the MCP server is connected and your API key is valid. You should see the Talonic tools in the connected servers panel on the left side of the Claude Desktop window."
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
type: "code",
|
|
744
|
+
language: "json",
|
|
745
|
+
title: "Verification prompt and expected response",
|
|
746
|
+
code: `// Ask Claude: "List my Talonic schemas"
|
|
747
|
+
// Claude calls talonic_list_schemas with: {}
|
|
748
|
+
|
|
749
|
+
// Expected response (new workspace):
|
|
750
|
+
{
|
|
751
|
+
"schemas": []
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
// If the key is invalid, you will see:
|
|
755
|
+
{
|
|
756
|
+
"error": "authentication_error",
|
|
757
|
+
"message": "Invalid or revoked API key. Check TALONIC_API_KEY in your config."
|
|
758
|
+
}`
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
type: "paragraph",
|
|
762
|
+
text: "Claude Desktop is the recommended client for document-heavy workflows because of its native file handling. When you drop a file into the chat, Claude reads the file bytes, base64-encodes them, and passes them to `talonic_extract` or `talonic_to_markdown` via the `file_data` parameter. This means you can go from a physical document scan to structured JSON in under ten seconds \u2014 drop the file, Claude picks the right tool, and the extracted data appears in the conversation."
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
type: "paragraph",
|
|
766
|
+
text: "For multi-document workflows, Claude Desktop maintains conversation context across tool calls. You can extract data from several invoices in sequence, and Claude remembers all previous results. Ask follow-up questions like 'which of those invoices had the highest total?' and Claude reasons over the extracted data without re-calling the tools. This makes Claude Desktop particularly effective for batch review and comparison tasks."
|
|
767
|
+
},
|
|
502
768
|
{
|
|
503
769
|
type: "callout",
|
|
504
770
|
variant: "info",
|
|
@@ -521,6 +787,14 @@ var sections2 = [
|
|
|
521
787
|
{
|
|
522
788
|
question: "Does Claude Desktop support drag-and-drop with Talonic?",
|
|
523
789
|
answer: "Yes. Claude Desktop natively supports drag-and-drop file uploads. When you drop a PDF, Claude base64-encodes it and passes it to talonic_extract via the file_data parameter."
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
question: "Where is the Claude Desktop config file on macOS vs Windows?",
|
|
793
|
+
answer: "On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows: %APPDATA%\\Claude\\claude_desktop_config.json. Create the file if it does not exist. The directory must already exist \u2014 Claude Desktop creates it on first launch."
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
question: "Can I use both hosted and local Talonic in Claude Desktop?",
|
|
797
|
+
answer: "You can configure either option, but not both simultaneously under the same server name. Choose hosted for zero-dependency setup or local npx for offline access. Switch by editing the config and restarting Claude Desktop."
|
|
524
798
|
}
|
|
525
799
|
],
|
|
526
800
|
mentions: ["Claude Desktop", "macOS", "Windows"]
|
|
@@ -552,6 +826,48 @@ var sections2 = [
|
|
|
552
826
|
type: "paragraph",
|
|
553
827
|
text: "Cursor caches MCP tool descriptions between sessions. If you upgrade the MCP server and notice outdated tool descriptions, restart Cursor to force a refresh of the tool metadata."
|
|
554
828
|
},
|
|
829
|
+
{
|
|
830
|
+
type: "heading",
|
|
831
|
+
level: 3,
|
|
832
|
+
id: "cursor-workflow-example",
|
|
833
|
+
text: "Example: extracting from a project file"
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
type: "code",
|
|
837
|
+
language: "json",
|
|
838
|
+
title: "Agent extracts data from a spec PDF in the workspace",
|
|
839
|
+
code: `// User: "Extract the requirements from docs/product-spec.pdf"
|
|
840
|
+
// Cursor agent calls talonic_extract with:
|
|
841
|
+
{
|
|
842
|
+
"file_path": "./docs/product-spec.pdf",
|
|
843
|
+
"schema": {
|
|
844
|
+
"type": "object",
|
|
845
|
+
"properties": {
|
|
846
|
+
"title": { "type": "string" },
|
|
847
|
+
"requirements": {
|
|
848
|
+
"type": "array",
|
|
849
|
+
"items": {
|
|
850
|
+
"type": "object",
|
|
851
|
+
"properties": {
|
|
852
|
+
"id": { "type": "string" },
|
|
853
|
+
"description": { "type": "string" },
|
|
854
|
+
"priority": { "type": "string" }
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
"deadline": { "type": "string", "format": "date" }
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
}`
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
type: "paragraph",
|
|
865
|
+
text: "Cursor's composer mode is particularly powerful with Talonic because the agent can extract data from a document and immediately use it to generate code. For example, you can ask Cursor to extract fields from an API specification PDF and then generate TypeScript interfaces matching the extracted schema. The agent chains `talonic_extract` with code generation in a single turn, eliminating manual data entry."
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
type: "paragraph",
|
|
869
|
+
text: "When using the hosted MCP option in Cursor, the connection is established over HTTPS with no local process. This means Cursor starts faster and there is no Node.js dependency. For teams sharing a Cursor workspace configuration, the hosted option is simpler to standardise because every developer only needs an API key \u2014 no local Node.js version management needed."
|
|
870
|
+
},
|
|
555
871
|
{
|
|
556
872
|
type: "callout",
|
|
557
873
|
variant: "info",
|
|
@@ -574,6 +890,10 @@ var sections2 = [
|
|
|
574
890
|
{
|
|
575
891
|
question: "Why are Talonic tool descriptions outdated in Cursor?",
|
|
576
892
|
answer: "Cursor caches MCP tool descriptions between sessions. Restart Cursor to force a refresh after upgrading the MCP server."
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
question: "Can Cursor chain extraction with code generation?",
|
|
896
|
+
answer: "Yes. In composer mode, Cursor can extract data from a document and immediately use the results to generate code \u2014 for example, extracting fields from an API spec PDF and generating TypeScript interfaces. The agent handles both steps in a single turn."
|
|
577
897
|
}
|
|
578
898
|
],
|
|
579
899
|
mentions: ["Cursor", "IDE"]
|
|
@@ -605,6 +925,38 @@ var sections2 = [
|
|
|
605
925
|
type: "paragraph",
|
|
606
926
|
text: "Because Cline operates within VS Code, it has access to your workspace file system. The `file_path` parameter on `talonic_extract` and `talonic_to_markdown` can reference any file in your open workspace, making it straightforward to process documents alongside code."
|
|
607
927
|
},
|
|
928
|
+
{
|
|
929
|
+
type: "heading",
|
|
930
|
+
level: 3,
|
|
931
|
+
id: "cline-auto-approve-example",
|
|
932
|
+
text: "Example: multi-step workflow with auto-approval"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
type: "code",
|
|
936
|
+
language: "json",
|
|
937
|
+
title: "Cline auto-approve config for Talonic read-only tools",
|
|
938
|
+
code: `// In Cline settings \u2192 Auto-approve, allow these tools:
|
|
939
|
+
// - talonic_list_schemas (read-only, no cost)
|
|
940
|
+
// - talonic_search (read-only, low cost)
|
|
941
|
+
// - talonic_get_document (read-only, no cost)
|
|
942
|
+
//
|
|
943
|
+
// Keep these requiring approval:
|
|
944
|
+
// - talonic_extract (costs credits)
|
|
945
|
+
// - talonic_save_schema (writes to workspace)
|
|
946
|
+
|
|
947
|
+
// Agent workflow in a single turn:
|
|
948
|
+
// 1. talonic_search \u2192 finds matching documents (auto-approved)
|
|
949
|
+
// 2. talonic_get_document \u2192 checks metadata (auto-approved)
|
|
950
|
+
// 3. talonic_extract \u2192 extracts data (user approves)`
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
type: "paragraph",
|
|
954
|
+
text: "Cline's strength with Talonic is its autonomous agent mode combined with granular auto-approval. By auto-approving read-only tools like `talonic_search`, `talonic_list_schemas`, and `talonic_get_document`, the agent can explore the workspace freely and only pause for user confirmation on credit-consuming operations like `talonic_extract`. This creates a smooth experience where the agent does the discovery work autonomously and only asks for permission when it matters."
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
type: "paragraph",
|
|
958
|
+
text: "For development teams using VS Code with Cline, the MCP server integrates naturally into code review workflows. A developer can ask the agent to extract data from a specification document, compare it against the implementation in the codebase, and flag any mismatches \u2014 all within the same VS Code window. The agent chains `talonic_extract` with file reads from the workspace to perform this cross-referencing automatically."
|
|
959
|
+
},
|
|
608
960
|
{
|
|
609
961
|
type: "callout",
|
|
610
962
|
variant: "info",
|
|
@@ -627,6 +979,10 @@ var sections2 = [
|
|
|
627
979
|
{
|
|
628
980
|
question: "Can Cline access local files for Talonic extraction?",
|
|
629
981
|
answer: "Yes. Cline runs inside VS Code and has access to your workspace file system, so you can use file_path to reference any file in the open workspace."
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
question: "Which Talonic tools should I auto-approve in Cline?",
|
|
985
|
+
answer: "Auto-approve read-only tools like talonic_list_schemas, talonic_search, and talonic_get_document. Keep talonic_extract and talonic_save_schema requiring manual approval since they consume credits or write to your workspace."
|
|
630
986
|
}
|
|
631
987
|
],
|
|
632
988
|
mentions: ["Cline", "VS Code"]
|
|
@@ -677,27 +1033,64 @@ var sections2 = [
|
|
|
677
1033
|
text: 'Continue\'s config format uses a `name` field instead of a key in the `mcpServers` object. Make sure to include `"name": "talonic"` in the entry. The rest of the config \u2014 `command`, `args`, `env` for local, or `url` and `headers` for hosted \u2014 follows the same pattern as other MCP clients.'
|
|
678
1034
|
},
|
|
679
1035
|
{
|
|
680
|
-
type: "
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
],
|
|
685
|
-
related: [
|
|
686
|
-
{ label: "Cowork", slug: "cowork" },
|
|
687
|
-
{ label: "Cline", slug: "cline" }
|
|
688
|
-
],
|
|
689
|
-
faq: [
|
|
690
|
-
{
|
|
691
|
-
question: "How do I add Talonic MCP to Continue?",
|
|
692
|
-
answer: "Edit ~/.continue/config.json and add a Talonic entry to the mcpServers array with your API key."
|
|
693
|
-
},
|
|
694
|
-
{
|
|
695
|
-
question: "Does Continue work with Talonic in JetBrains?",
|
|
696
|
-
answer: "Yes. Continue shares the same config file (~/.continue/config.json) across VS Code and JetBrains, so Talonic works identically in both editors."
|
|
1036
|
+
type: "heading",
|
|
1037
|
+
level: 3,
|
|
1038
|
+
id: "continue-verify",
|
|
1039
|
+
text: "Verify the connection"
|
|
697
1040
|
},
|
|
698
1041
|
{
|
|
699
|
-
|
|
700
|
-
|
|
1042
|
+
type: "code",
|
|
1043
|
+
language: "json",
|
|
1044
|
+
title: "Verification: ask the agent to call talonic_list_schemas",
|
|
1045
|
+
code: `// Agent sends (no parameters needed):
|
|
1046
|
+
{}
|
|
1047
|
+
|
|
1048
|
+
// Successful response confirms connection:
|
|
1049
|
+
{
|
|
1050
|
+
"schemas": [
|
|
1051
|
+
{
|
|
1052
|
+
"id": "sch_7a1b...",
|
|
1053
|
+
"short_id": "SCH-A1B2C3D4",
|
|
1054
|
+
"name": "Standard Invoice",
|
|
1055
|
+
"field_count": 6
|
|
1056
|
+
}
|
|
1057
|
+
]
|
|
1058
|
+
}`
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
type: "paragraph",
|
|
1062
|
+
text: "Continue is ideal for teams that use both VS Code and JetBrains IDEs and want a consistent Talonic experience across editors. Because the config file is shared, a schema saved from a Continue session in IntelliJ is immediately available in a VS Code session \u2014 no extra setup needed. This cross-editor consistency extends to all Talonic tools, not just schemas."
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
type: "paragraph",
|
|
1066
|
+
text: "When using Continue with the hosted Talonic server, the connection is established over HTTPS directly from the Continue extension. No local MCP process is spawned, which reduces resource usage in the IDE. For JetBrains users in particular, this avoids adding another background process alongside the already resource-intensive IDE. The local npx option remains available for offline work or when HTTPS connectivity is restricted."
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
type: "callout",
|
|
1070
|
+
variant: "info",
|
|
1071
|
+
text: "Continue's MCP support works identically in VS Code and JetBrains. The same `~/.continue/config.json` file is shared across both editors."
|
|
1072
|
+
}
|
|
1073
|
+
],
|
|
1074
|
+
related: [
|
|
1075
|
+
{ label: "Cowork", slug: "cowork" },
|
|
1076
|
+
{ label: "Cline", slug: "cline" }
|
|
1077
|
+
],
|
|
1078
|
+
faq: [
|
|
1079
|
+
{
|
|
1080
|
+
question: "How do I add Talonic MCP to Continue?",
|
|
1081
|
+
answer: "Edit ~/.continue/config.json and add a Talonic entry to the mcpServers array with your API key."
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
question: "Does Continue work with Talonic in JetBrains?",
|
|
1085
|
+
answer: "Yes. Continue shares the same config file (~/.continue/config.json) across VS Code and JetBrains, so Talonic works identically in both editors."
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
question: "Why does Continue use a different config format?",
|
|
1089
|
+
answer: 'Continue uses an mcpServers array with a name field instead of an object keyed by server name. Include "name": "talonic" in the entry alongside the standard command/args/env or url/headers fields.'
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
question: "Can I run Talonic alongside other MCP servers in Continue?",
|
|
1093
|
+
answer: "Yes. Continue's mcpServers array supports multiple entries. Talonic runs alongside any other MCP servers you have configured. Each server is discovered independently and all tools are available in the same conversation."
|
|
701
1094
|
}
|
|
702
1095
|
],
|
|
703
1096
|
mentions: ["Continue", "VS Code", "JetBrains"]
|
|
@@ -726,6 +1119,45 @@ var sections2 = [
|
|
|
726
1119
|
type: "paragraph",
|
|
727
1120
|
text: "After adding the config, restart Cowork to load the new MCP server. If you are using the hosted option, Cowork connects directly via HTTPS \u2014 no local process is spawned. For the local option, Cowork launches the `npx` command as a child process and communicates over stdio."
|
|
728
1121
|
},
|
|
1122
|
+
{
|
|
1123
|
+
type: "heading",
|
|
1124
|
+
level: 3,
|
|
1125
|
+
id: "cowork-workflow",
|
|
1126
|
+
text: "Example: browse schemas then extract"
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
type: "code",
|
|
1130
|
+
language: "json",
|
|
1131
|
+
title: "Agent workflow in Cowork",
|
|
1132
|
+
code: `// Step 1: User browses talonic://schemas in the resources panel
|
|
1133
|
+
// \u2192 Sees "Standard Invoice" (SCH-A1B2C3D4) with 6 fields
|
|
1134
|
+
|
|
1135
|
+
// Step 2: User drops invoice.pdf into the chat
|
|
1136
|
+
// Agent calls talonic_extract:
|
|
1137
|
+
{
|
|
1138
|
+
"file_data": "JVBERi0xLjQKJ...",
|
|
1139
|
+
"filename": "invoice.pdf",
|
|
1140
|
+
"schema_id": "SCH-A1B2C3D4"
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
// Step 3: Agent presents extracted data:
|
|
1144
|
+
{
|
|
1145
|
+
"data": {
|
|
1146
|
+
"vendor_name": "Meridian Energy AG",
|
|
1147
|
+
"total_amount": 1500.00,
|
|
1148
|
+
"due_date": "2026-06-15"
|
|
1149
|
+
},
|
|
1150
|
+
"confidence": { "overall": 0.97 }
|
|
1151
|
+
}`
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
type: "paragraph",
|
|
1155
|
+
text: "Cowork's resource browsing creates a natural workflow for Talonic users. Instead of asking the agent to list schemas via a tool call, you can visually browse the `talonic://schemas` resource in the sidebar, identify the right schema, and then ask the agent to extract using that schema by name or ID. This visual discovery step reduces back-and-forth in the conversation and helps users who are not familiar with their workspace's schema inventory."
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
type: "paragraph",
|
|
1159
|
+
text: "For teams onboarding new members, Cowork's visual schema browser is especially useful. A new team member can see all available extraction templates at a glance, understand what fields each schema extracts, and start processing documents immediately without needing to learn schema IDs or ask colleagues which templates exist. Combined with drag-and-drop file uploads, the barrier to entry is as low as it gets."
|
|
1160
|
+
},
|
|
729
1161
|
{
|
|
730
1162
|
type: "callout",
|
|
731
1163
|
variant: "info",
|
|
@@ -748,6 +1180,10 @@ var sections2 = [
|
|
|
748
1180
|
{
|
|
749
1181
|
question: "Does Cowork support drag-and-drop with Talonic?",
|
|
750
1182
|
answer: "Yes. Cowork supports drag-and-drop file uploads, which pairs with talonic_extract's file_data parameter for easy document extraction."
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
question: "How does Cowork compare to Claude Desktop for Talonic workflows?",
|
|
1186
|
+
answer: "Both support drag-and-drop and schema resource browsing. Cowork's resource panel provides a more visual schema discovery experience. Claude Desktop has deeper integration with Anthropic's Claude model. Choose based on your preferred chat interface and model provider."
|
|
751
1187
|
}
|
|
752
1188
|
],
|
|
753
1189
|
mentions: ["Cowork"]
|
|
@@ -1013,6 +1449,14 @@ var sections3 = [
|
|
|
1013
1449
|
}
|
|
1014
1450
|
]
|
|
1015
1451
|
},
|
|
1452
|
+
{
|
|
1453
|
+
type: "paragraph",
|
|
1454
|
+
text: "A common agent pattern is using `talonic_search` as a first step to orient within a workspace, then following up with more specific tools. For example, an agent might search for 'Acme contracts' to discover relevant documents, note the canonical field names in the response, and then use `talonic_filter` with those field names to narrow down to contracts expiring within a specific date range. This search-then-filter pattern is both efficient and reliable."
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
type: "paragraph",
|
|
1458
|
+
text: "Search results are scoped to the authenticated workspace. The query runs against all documents, extracted field values, schema definitions, and source metadata within that workspace. There is no cross-workspace search \u2014 each API key sees only its own data. The `limit` parameter controls how many results are returned per entity type (documents, fields, schemas, sources), with a default of 5. Increase the limit when the user needs a broader view of matching content."
|
|
1459
|
+
},
|
|
1016
1460
|
{
|
|
1017
1461
|
type: "callout",
|
|
1018
1462
|
variant: "info",
|
|
@@ -1054,6 +1498,38 @@ var sections3 = [
|
|
|
1054
1498
|
"fields": [
|
|
1055
1499
|
{ "canonicalName": "indemnification.cap_amount", "type": "string" }
|
|
1056
1500
|
]
|
|
1501
|
+
}`
|
|
1502
|
+
},
|
|
1503
|
+
{ type: "heading", level: 3, id: "search-then-filter", text: "Example: search then filter" },
|
|
1504
|
+
{
|
|
1505
|
+
type: "code",
|
|
1506
|
+
language: "json",
|
|
1507
|
+
title: "Step 1: discover field names with search",
|
|
1508
|
+
code: `// Agent calls talonic_search:
|
|
1509
|
+
{
|
|
1510
|
+
"query": "vendor invoices total amount",
|
|
1511
|
+
"limit": 5
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
// Response includes canonical field names:
|
|
1515
|
+
{
|
|
1516
|
+
"fields": [
|
|
1517
|
+
{ "canonicalName": "vendor.name", "type": "string", "filterable": true },
|
|
1518
|
+
{ "canonicalName": "invoice.total_eur", "type": "number", "filterable": true },
|
|
1519
|
+
{ "canonicalName": "invoice.due_date", "type": "string", "filterable": true }
|
|
1520
|
+
]
|
|
1521
|
+
}`
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
type: "code",
|
|
1525
|
+
language: "json",
|
|
1526
|
+
title: "Step 2: use discovered field names in talonic_filter",
|
|
1527
|
+
code: `// Agent uses canonical names from search to build a filter:
|
|
1528
|
+
{
|
|
1529
|
+
"conditions": [
|
|
1530
|
+
{ "field": "invoice.total_eur", "operator": "gt", "value": 500 }
|
|
1531
|
+
],
|
|
1532
|
+
"sort": { "field": "invoice.total_eur", "direction": "desc" }
|
|
1057
1533
|
}`
|
|
1058
1534
|
}
|
|
1059
1535
|
],
|
|
@@ -1074,6 +1550,14 @@ var sections3 = [
|
|
|
1074
1550
|
{
|
|
1075
1551
|
question: "What do the search scores mean?",
|
|
1076
1552
|
answer: "Each result includes a relevance score from 0 to 1. Scores above 0.7 are strong matches, 0.5-0.7 are partial matches, and below 0.5 are typically not relevant."
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
question: "Can I search for schemas by name?",
|
|
1556
|
+
answer: "Yes. talonic_search includes schemas in its results. If you search for 'invoice', any schema with 'invoice' in its name or description will appear in the schemas array of the response. This is useful for discovering existing templates before creating new ones."
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
question: "How do I use search results to build a filter?",
|
|
1560
|
+
answer: "The fields array in the search response includes canonicalName values with a filterable flag. Use canonicalName values where filterable is true as the field parameter in talonic_filter conditions. This search-then-filter pattern is the recommended workflow for precise queries."
|
|
1077
1561
|
}
|
|
1078
1562
|
],
|
|
1079
1563
|
mentions: ["search", "omnisearch", "fuzzy", "discovery"]
|
|
@@ -1171,6 +1655,39 @@ var sections3 = [
|
|
|
1171
1655
|
"total": 2,
|
|
1172
1656
|
"page": 1
|
|
1173
1657
|
}`
|
|
1658
|
+
},
|
|
1659
|
+
{ type: "heading", level: 3, id: "filter-operators", text: "Available operators" },
|
|
1660
|
+
{
|
|
1661
|
+
type: "paragraph",
|
|
1662
|
+
text: "The following operators are available for filter conditions: `eq` (equals), `neq` (not equals), `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), `between` (range, requires a two-element array as value), `contains` (substring match), `starts_with`, `ends_with`, and `is_empty` (checks for null or empty values). Numeric operators (`gt`, `gte`, `lt`, `lte`, `between`) only work on fields typed as `number` in the schema \u2014 using them on string fields silently returns zero results."
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
type: "heading",
|
|
1666
|
+
level: 3,
|
|
1667
|
+
id: "filter-combined-example",
|
|
1668
|
+
text: "Example: combined search and filter"
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
type: "code",
|
|
1672
|
+
language: "json",
|
|
1673
|
+
title: "Combining free-text search with field-value filters",
|
|
1674
|
+
code: `{
|
|
1675
|
+
"conditions": [
|
|
1676
|
+
{ "field": "invoice.due_date", "operator": "lte", "value": "2026-06-30" },
|
|
1677
|
+
{ "field": "invoice.total_eur", "operator": "gte", "value": 500 }
|
|
1678
|
+
],
|
|
1679
|
+
"search": "consulting services",
|
|
1680
|
+
"sort": { "field": "invoice.due_date", "direction": "asc" },
|
|
1681
|
+
"limit": 10
|
|
1682
|
+
}`
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
type: "paragraph",
|
|
1686
|
+
text: "Pagination is supported via the `page` and `limit` parameters. The default page size is 50 results. For large workspaces with many matching documents, iterate through pages by incrementing `page` from 1. The response includes a `total` field showing the total number of matches, so the agent can determine how many pages remain and communicate this to the user."
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
type: "paragraph",
|
|
1690
|
+
text: "When building filters dynamically from user requests, agents should validate field names against the workspace's field registry first. The most reliable way is to call `talonic_search` to discover available canonical field names and check the `filterable` flag. Attempting to filter on a field that does not exist or is not yet filterable returns a `VALIDATION_ERROR` with a descriptive message. The agent should catch this error and suggest alternative field names rather than failing silently."
|
|
1174
1691
|
}
|
|
1175
1692
|
],
|
|
1176
1693
|
related: [
|
|
@@ -1190,6 +1707,14 @@ var sections3 = [
|
|
|
1190
1707
|
{
|
|
1191
1708
|
question: "Can I combine free-text search with field filters?",
|
|
1192
1709
|
answer: "Yes. Pass the search parameter alongside conditions to combine fuzzy text matching with structured field-value filters in a single call."
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
question: "What operators are available for talonic_filter?",
|
|
1713
|
+
answer: "Supported operators include eq, neq, gt, gte, lt, lte, between, contains, starts_with, ends_with, and is_empty. Numeric operators (gt, gte, lt, lte, between) require the schema field to be typed as number. String operators work on all field types."
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
question: "Why does my filter return zero results even though matching documents exist?",
|
|
1717
|
+
answer: "The most common cause is using a numeric operator (gt, lt, between) on a field that is typed as string in the schema. Currency symbols, commas, or locale formatting in the value also cause mismatches. Ensure the schema defines numeric fields as type number and that values are stored without formatting."
|
|
1193
1718
|
}
|
|
1194
1719
|
],
|
|
1195
1720
|
mentions: ["filter", "canonical field names", "operators", "conditions"]
|
|
@@ -1262,6 +1787,39 @@ var sections3 = [
|
|
|
1262
1787
|
"dashboard": "https://app.talonic.com/documents/doc_8f3a..."
|
|
1263
1788
|
}
|
|
1264
1789
|
}`
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
type: "heading",
|
|
1793
|
+
level: 3,
|
|
1794
|
+
id: "get-document-workflow",
|
|
1795
|
+
text: "Example: human-in-the-loop verification"
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
type: "code",
|
|
1799
|
+
language: "json",
|
|
1800
|
+
title: "Agent uses dashboard link for user verification",
|
|
1801
|
+
code: `// After extracting data with low confidence on a critical field:
|
|
1802
|
+
// Agent calls talonic_get_document to get the dashboard link:
|
|
1803
|
+
{
|
|
1804
|
+
"document_id": "doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c"
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
// Agent presents to user:
|
|
1808
|
+
// "The total_amount field has confidence 0.68.
|
|
1809
|
+
// Please verify against the original document:
|
|
1810
|
+
// https://app.talonic.com/documents/doc_8f3a..."`
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
type: "paragraph",
|
|
1814
|
+
text: "The `status` field in the response indicates the document's processing state. Common values are `completed` (ready for extraction and markdown retrieval), `processing` (still being ingested), and `failed` (ingestion encountered an error). Agents should check the status before attempting follow-up operations \u2014 calling `talonic_extract` on a document that is still `processing` will either wait or fail depending on the API's current behaviour."
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
type: "paragraph",
|
|
1818
|
+
text: "The `source` object in the response tells you how the document was uploaded. A `type` of `api` means it was uploaded via the MCP server or REST API, while `dashboard` means it was uploaded through the Talonic web interface. The `source.id` can be useful for filtering documents by upload source when a workspace has documents from multiple integration points."
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
type: "paragraph",
|
|
1822
|
+
text: "This tool is free to call \u2014 it does not consume extraction credits. Agents can call it as often as needed to check document status, retrieve links, or verify metadata without any cost concern. This makes it safe for polling scenarios where an agent needs to wait for a document to finish processing before proceeding with extraction."
|
|
1265
1823
|
}
|
|
1266
1824
|
],
|
|
1267
1825
|
related: [
|
|
@@ -1280,6 +1838,14 @@ var sections3 = [
|
|
|
1280
1838
|
{
|
|
1281
1839
|
question: "How can I link the user to the original document?",
|
|
1282
1840
|
answer: "The response includes links.dashboard, which is a direct URL to view the document in the Talonic web interface. Present this to the user when they need to verify an extraction."
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
question: "Does talonic_get_document cost any credits?",
|
|
1844
|
+
answer: "No. It is a free metadata lookup that does not consume extraction credits. Agents can call it as often as needed to check document status, retrieve dashboard links, or verify metadata without cost concerns."
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
question: "What document statuses can talonic_get_document return?",
|
|
1848
|
+
answer: "Common statuses include completed (ready for extraction), processing (still being ingested), and failed (ingestion error). Check the status before attempting follow-up operations like extraction or markdown retrieval."
|
|
1283
1849
|
}
|
|
1284
1850
|
],
|
|
1285
1851
|
mentions: ["document", "metadata", "processing log", "dashboard link"]
|
|
@@ -1360,6 +1926,52 @@ Musterstra\xDFe 42, 10115 Berlin
|
|
|
1360
1926
|
|
|
1361
1927
|
Due date: 15 June 2026
|
|
1362
1928
|
Payment terms: Net 30`
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
type: "heading",
|
|
1932
|
+
level: 3,
|
|
1933
|
+
id: "to-markdown-url-example",
|
|
1934
|
+
text: "Example: convert from URL"
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
type: "code",
|
|
1938
|
+
language: "json",
|
|
1939
|
+
title: "Tool input: convert a remote PDF to markdown",
|
|
1940
|
+
code: `{
|
|
1941
|
+
"file_url": "https://example.com/annual-report-2025.pdf"
|
|
1942
|
+
}`
|
|
1943
|
+
},
|
|
1944
|
+
{
|
|
1945
|
+
type: "code",
|
|
1946
|
+
language: "markdown",
|
|
1947
|
+
title: "Tool response: structured markdown output",
|
|
1948
|
+
code: `# Annual Report 2025
|
|
1949
|
+
|
|
1950
|
+
## Financial Highlights
|
|
1951
|
+
|
|
1952
|
+
| Metric | 2025 | 2024 | Change |
|
|
1953
|
+
|---------------------|------------|------------|---------|
|
|
1954
|
+
| Revenue | \u20AC12.4M | \u20AC9.8M | +26.5% |
|
|
1955
|
+
| Net Income | \u20AC2.1M | \u20AC1.4M | +50.0% |
|
|
1956
|
+
| Employees | 142 | 98 | +44.9% |
|
|
1957
|
+
|
|
1958
|
+
## Board of Directors
|
|
1959
|
+
|
|
1960
|
+
- **Chair**: Dr. Maria Fischer
|
|
1961
|
+
- **CEO**: Thomas Bergmann
|
|
1962
|
+
- **CFO**: Sarah Lindqvist`
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
type: "paragraph",
|
|
1966
|
+
text: "The markdown output is designed to be LLM-friendly. Agents can feed the returned markdown directly into their context window for summarisation, translation, comparison, or question-answering tasks. Because the conversion preserves semantic structure (headings denote sections, tables retain rows and columns, lists maintain hierarchy), downstream LLM reasoning is significantly more accurate than working with raw OCR text that has lost all formatting cues."
|
|
1967
|
+
},
|
|
1968
|
+
{
|
|
1969
|
+
type: "paragraph",
|
|
1970
|
+
text: "For multi-page documents, the markdown includes page break indicators and preserves the reading order across pages. Headers, footers, and page numbers are typically stripped or de-duplicated to produce a clean reading experience. If the document contains images with embedded text (like scanned letterheads or stamps), the OCR engine extracts visible text from those regions as well, though image-only content without text is omitted from the markdown output."
|
|
1971
|
+
},
|
|
1972
|
+
{
|
|
1973
|
+
type: "paragraph",
|
|
1974
|
+
text: "When an agent needs to compare two versions of a document, `talonic_to_markdown` is the right starting point. Convert both documents to markdown, then use standard text diffing within the agent's context to identify changes. This is more reliable than visual comparison because the markdown normalises formatting differences and focuses on content. The stable document IDs make it easy to retrieve markdown for previously processed documents without re-uploading."
|
|
1363
1975
|
}
|
|
1364
1976
|
],
|
|
1365
1977
|
related: [
|
|
@@ -1378,6 +1990,14 @@ Payment terms: Net 30`
|
|
|
1378
1990
|
{
|
|
1379
1991
|
question: "Should I use talonic_to_markdown or talonic_extract with include_markdown?",
|
|
1380
1992
|
answer: "If you only need the text, use talonic_to_markdown. If you need both structured fields and the full text, use talonic_extract with include_markdown: true to avoid two separate calls."
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
question: "Can I use talonic_to_markdown for document comparison?",
|
|
1996
|
+
answer: "Yes. Convert both document versions to markdown, then diff the text in the agent's context. Markdown normalises formatting differences and focuses on content, making comparison more reliable than visual methods. Use document_id for previously processed files to avoid re-uploading."
|
|
1997
|
+
},
|
|
1998
|
+
{
|
|
1999
|
+
question: "Does talonic_to_markdown handle scanned documents?",
|
|
2000
|
+
answer: "Yes. The tool runs OCR on scanned PDFs, images (PNG, JPG, TIFF), and other image-based documents. Text is extracted from all visible regions including headers, stamps, and handwritten annotations where legible. The output is clean markdown regardless of whether the source is digital or scanned."
|
|
1381
2001
|
}
|
|
1382
2002
|
],
|
|
1383
2003
|
mentions: ["markdown", "OCR", "document_id", "tables"]
|
|
@@ -1449,6 +2069,53 @@ Payment terms: Net 30`
|
|
|
1449
2069
|
}
|
|
1450
2070
|
]
|
|
1451
2071
|
}`
|
|
2072
|
+
},
|
|
2073
|
+
{
|
|
2074
|
+
type: "heading",
|
|
2075
|
+
level: 3,
|
|
2076
|
+
id: "list-schemas-workflow",
|
|
2077
|
+
text: "Example: check for duplicates before saving"
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
type: "code",
|
|
2081
|
+
language: "json",
|
|
2082
|
+
title: "Agent checks existing schemas before creating a new one",
|
|
2083
|
+
code: `// User: "Create a schema for purchase orders"
|
|
2084
|
+
// Agent first checks existing schemas:
|
|
2085
|
+
// talonic_list_schemas \u2192 {}
|
|
2086
|
+
|
|
2087
|
+
// Response shows existing schemas:
|
|
2088
|
+
{
|
|
2089
|
+
"schemas": [
|
|
2090
|
+
{
|
|
2091
|
+
"id": "sch_7a1b...",
|
|
2092
|
+
"short_id": "SCH-A1B2C3D4",
|
|
2093
|
+
"name": "Standard Invoice",
|
|
2094
|
+
"field_count": 6
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
"id": "sch_c3d4...",
|
|
2098
|
+
"short_id": "SCH-C3D4E5F6",
|
|
2099
|
+
"name": "Purchase Order",
|
|
2100
|
+
"field_count": 7
|
|
2101
|
+
}
|
|
2102
|
+
]
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
// Agent: "You already have a 'Purchase Order' schema (SCH-C3D4E5F6)
|
|
2106
|
+
// with 7 fields. Would you like to use it, or create a new one?"`
|
|
2107
|
+
},
|
|
2108
|
+
{
|
|
2109
|
+
type: "paragraph",
|
|
2110
|
+
text: "Agents should call `talonic_list_schemas` proactively in several scenarios: before saving a new schema (to prevent duplicates), when the user asks about available extraction templates, and when starting a session that involves document extraction (to present schema options). The call is free and returns quickly, so there is no cost or latency penalty for checking frequently."
|
|
2111
|
+
},
|
|
2112
|
+
{
|
|
2113
|
+
type: "paragraph",
|
|
2114
|
+
text: "The `version` field on each schema tracks how many times it has been updated through the Talonic dashboard. A schema at version 1 has never been modified since creation. Higher versions indicate the schema has been refined \u2014 potentially adding new fields, changing types, or updating required fields. Agents can use this information to inform the user about schema maturity when choosing between multiple similar schemas."
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
type: "paragraph",
|
|
2118
|
+
text: "The `field_count` in the response is a quick indicator of schema complexity without needing to parse the full definition. Schemas with fewer fields are faster to extract and produce more focused results. Schemas with many fields (10+) cover more ground but may have lower per-field confidence on complex documents. Agents can use field count to help users choose between a detailed schema and a simpler one for quick extractions."
|
|
1452
2119
|
}
|
|
1453
2120
|
],
|
|
1454
2121
|
related: [
|
|
@@ -1467,6 +2134,14 @@ Payment terms: Net 30`
|
|
|
1467
2134
|
{
|
|
1468
2135
|
question: "Does talonic_list_schemas require any parameters?",
|
|
1469
2136
|
answer: "No. It takes no input parameters and returns all saved schemas in the workspace with their full definitions."
|
|
2137
|
+
},
|
|
2138
|
+
{
|
|
2139
|
+
question: "Is talonic_list_schemas free to call?",
|
|
2140
|
+
answer: "Yes. It is a read-only metadata call that does not consume extraction credits. Agents can call it as often as needed to check for existing schemas, present options to the user, or verify a schema exists before using it in an extraction."
|
|
2141
|
+
},
|
|
2142
|
+
{
|
|
2143
|
+
question: "How do I know which schema to use for a document?",
|
|
2144
|
+
answer: "Call talonic_list_schemas to see all available schemas with their names, descriptions, and field counts. Match the schema name and description to the document type. For example, use a 'Standard Invoice' schema for invoices and a 'Certificate of Insurance' schema for COIs. When unsure, start with an inline schema and save it after confirming the results."
|
|
1470
2145
|
}
|
|
1471
2146
|
],
|
|
1472
2147
|
mentions: ["schemas", "list", "SCH-XXXXXXXX", "resource"]
|
|
@@ -1562,6 +2237,82 @@ Payment terms: Net 30`
|
|
|
1562
2237
|
"version": 1,
|
|
1563
2238
|
"field_count": 5
|
|
1564
2239
|
}`
|
|
2240
|
+
},
|
|
2241
|
+
{
|
|
2242
|
+
type: "heading",
|
|
2243
|
+
level: 3,
|
|
2244
|
+
id: "save-schema-workflow",
|
|
2245
|
+
text: "Example: iterate inline then save"
|
|
2246
|
+
},
|
|
2247
|
+
{
|
|
2248
|
+
type: "code",
|
|
2249
|
+
language: "json",
|
|
2250
|
+
title: "Step 1: test the schema inline with talonic_extract",
|
|
2251
|
+
code: `// Agent extracts with inline schema first:
|
|
2252
|
+
{
|
|
2253
|
+
"file_url": "https://example.com/sample-po.pdf",
|
|
2254
|
+
"schema": {
|
|
2255
|
+
"type": "object",
|
|
2256
|
+
"properties": {
|
|
2257
|
+
"po_number": { "type": "string" },
|
|
2258
|
+
"vendor": { "type": "string" },
|
|
2259
|
+
"items": {
|
|
2260
|
+
"type": "array",
|
|
2261
|
+
"items": {
|
|
2262
|
+
"type": "object",
|
|
2263
|
+
"properties": {
|
|
2264
|
+
"description": { "type": "string" },
|
|
2265
|
+
"quantity": { "type": "integer" },
|
|
2266
|
+
"unit_price": { "type": "number" }
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2269
|
+
},
|
|
2270
|
+
"total": { "type": "number" },
|
|
2271
|
+
"delivery_date": { "type": "string", "format": "date" }
|
|
2272
|
+
},
|
|
2273
|
+
"required": ["po_number", "vendor", "total"]
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
// \u2192 User reviews results, confirms the schema looks right`
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
type: "code",
|
|
2280
|
+
language: "json",
|
|
2281
|
+
title: "Step 2: save the confirmed schema for reuse",
|
|
2282
|
+
code: `// Agent calls talonic_save_schema:
|
|
2283
|
+
{
|
|
2284
|
+
"name": "Purchase Order",
|
|
2285
|
+
"description": "Extracts PO number, vendor, line items, total, and delivery date.",
|
|
2286
|
+
"definition": {
|
|
2287
|
+
"type": "object",
|
|
2288
|
+
"properties": {
|
|
2289
|
+
"po_number": { "type": "string" },
|
|
2290
|
+
"vendor": { "type": "string" },
|
|
2291
|
+
"items": { "type": "array" },
|
|
2292
|
+
"total": { "type": "number" },
|
|
2293
|
+
"delivery_date": { "type": "string", "format": "date" }
|
|
2294
|
+
},
|
|
2295
|
+
"required": ["po_number", "vendor", "total"]
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
// Response:
|
|
2300
|
+
{
|
|
2301
|
+
"id": "sch_d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f9a",
|
|
2302
|
+
"short_id": "SCH-D4E5F6A7",
|
|
2303
|
+
"name": "Purchase Order",
|
|
2304
|
+
"version": 1,
|
|
2305
|
+
"field_count": 5
|
|
2306
|
+
}
|
|
2307
|
+
// \u2192 Future extractions use: { "schema_id": "SCH-D4E5F6A7" }`
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
type: "paragraph",
|
|
2311
|
+
text: "The `description` field is optional but strongly recommended. A clear description helps agents (and users) understand when to use a particular schema. Agents can read schema descriptions from `talonic_list_schemas` to auto-select the right schema based on the document type. For example, if the user drops a purchase order, the agent can scan saved schema descriptions for keywords like 'purchase order' or 'PO' and suggest the matching schema automatically."
|
|
2312
|
+
},
|
|
2313
|
+
{
|
|
2314
|
+
type: "paragraph",
|
|
2315
|
+
text: "Schema naming conventions matter for discoverability. Use descriptive, consistent names like 'Standard Invoice', 'Certificate of Insurance', or 'Employment Contract' rather than abbreviations or internal codes. These names appear in `talonic_list_schemas` results and the `talonic://schemas` resource, where users and agents browse them to find the right template. A well-named schema library reduces friction across the entire team."
|
|
1565
2316
|
}
|
|
1566
2317
|
],
|
|
1567
2318
|
related: [
|
|
@@ -1580,6 +2331,14 @@ Payment terms: Net 30`
|
|
|
1580
2331
|
{
|
|
1581
2332
|
question: "Can I update a saved schema?",
|
|
1582
2333
|
answer: "Schema updates are managed through the Talonic dashboard. The version field in the response tracks changes. Via MCP, you can save a new schema with a different name if the design changes significantly."
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
question: "What is the recommended workflow for schema design?",
|
|
2337
|
+
answer: "Iterate inline first: pass the schema directly to talonic_extract, review results with the user, adjust fields as needed. Once the user confirms the schema produces good results, call talonic_save_schema to persist it. This prevents cluttering the workspace with draft schemas that never get used."
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
question: "Should I include a description when saving a schema?",
|
|
2341
|
+
answer: "Yes. The description helps agents auto-select the right schema based on document type, and helps team members understand what each schema extracts. Use clear language like 'Extracts vendor, line items, totals, and payment terms from invoices' so both humans and AI agents can match schemas to documents."
|
|
1583
2342
|
}
|
|
1584
2343
|
],
|
|
1585
2344
|
mentions: ["save schema", "JSON Schema", "reuse", "version"]
|
|
@@ -1657,6 +2416,46 @@ Payment terms: Net 30`
|
|
|
1657
2416
|
"tier": "pro",
|
|
1658
2417
|
"tier_resets_at": "2026-06-01T00:00:00.000Z"
|
|
1659
2418
|
}`
|
|
2419
|
+
},
|
|
2420
|
+
{
|
|
2421
|
+
type: "heading",
|
|
2422
|
+
level: 3,
|
|
2423
|
+
id: "balance-budget-check",
|
|
2424
|
+
text: "Example: budget check before batch extraction"
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
type: "code",
|
|
2428
|
+
language: "json",
|
|
2429
|
+
title: "Agent checks balance before processing 50 documents",
|
|
2430
|
+
code: `// User: "Extract data from all 50 invoices in my workspace"
|
|
2431
|
+
// Agent first checks budget:
|
|
2432
|
+
// talonic_get_balance \u2192 {}
|
|
2433
|
+
|
|
2434
|
+
// Response:
|
|
2435
|
+
{
|
|
2436
|
+
"balance_credits": 120,
|
|
2437
|
+
"balance_eur": 0.60,
|
|
2438
|
+
"burn_rate_30d_credits": 360,
|
|
2439
|
+
"projected_runway_days": 10,
|
|
2440
|
+
"tier": "free",
|
|
2441
|
+
"tier_resets_at": "2026-06-01T00:00:00.000Z"
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2444
|
+
// Agent: "You have 120 credits remaining. Extracting 50 documents
|
|
2445
|
+
// will cost approximately 50 credits, leaving 70 credits.
|
|
2446
|
+
// Your tier resets on June 1st. Shall I proceed?"`
|
|
2447
|
+
},
|
|
2448
|
+
{
|
|
2449
|
+
type: "paragraph",
|
|
2450
|
+
text: "Budget-aware agents use `talonic_get_balance` to prevent unexpected credit depletion. Before starting a large batch extraction, the agent checks the remaining balance and estimates whether the batch will exceed available credits. If the balance is low, the agent can warn the user, suggest processing a subset, or recommend upgrading the plan. This proactive approach prevents mid-batch failures due to exhausted credits."
|
|
2451
|
+
},
|
|
2452
|
+
{
|
|
2453
|
+
type: "paragraph",
|
|
2454
|
+
text: "The `tier` field indicates the workspace's API plan: `free`, `pro`, or `enterprise`. Each tier has different daily extraction limits and credit allowances. The `tier_resets_at` timestamp shows when the monthly credit cycle resets, which helps agents answer questions like 'when will my credits refresh?' or 'should I wait for the reset before processing this batch?'. Agents can use this information to advise users on timing large extraction jobs."
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
type: "paragraph",
|
|
2458
|
+
text: "The `burn_rate_30d_credits` field shows total consumption over the trailing 30 days, not a daily average. Agents can divide by 30 to estimate daily usage. Combined with `balance_credits`, this provides a clear picture of workspace sustainability. A high burn rate with a low balance signals the need for a plan upgrade or reduced usage before the next tier reset."
|
|
1660
2459
|
}
|
|
1661
2460
|
],
|
|
1662
2461
|
related: [
|
|
@@ -1671,6 +2470,14 @@ Payment terms: Net 30`
|
|
|
1671
2470
|
{
|
|
1672
2471
|
question: "What does projected_runway_days = -1 mean?",
|
|
1673
2472
|
answer: "It means the workspace has had zero credit consumption in the trailing 30 days, so a meaningful runway projection cannot be computed. Treat -1 as 'unknown' rather than '0 days'."
|
|
2473
|
+
},
|
|
2474
|
+
{
|
|
2475
|
+
question: "Should the agent check balance before every extraction?",
|
|
2476
|
+
answer: "Not for single extractions \u2014 that would add unnecessary latency. Check the balance before batch operations (10+ documents) or when the user explicitly asks about credits. For single extractions, proceed directly and let the API return a quota error if the balance is exhausted."
|
|
2477
|
+
},
|
|
2478
|
+
{
|
|
2479
|
+
question: "How does the agent know the cost of an extraction?",
|
|
2480
|
+
answer: "Each talonic_extract response includes a cost field showing credits consumed for that extraction. Use talonic_get_balance before a batch to check available credits, and after to verify the remaining balance. Single extractions typically cost 1 credit each."
|
|
1674
2481
|
}
|
|
1675
2482
|
],
|
|
1676
2483
|
mentions: ["credits", "balance", "EUR", "burn rate", "runway", "tier", "budget"]
|
|
@@ -1702,6 +2509,63 @@ var sections4 = [
|
|
|
1702
2509
|
type: "paragraph",
|
|
1703
2510
|
text: "Supported file types include PDF, PNG, JPG, TIFF, DOCX, XLSX, and other common document formats. The MCP server infers the MIME type from the `filename` extension, so always include the original file extension when passing `file_data`. If the extension is missing or unusual, the server may reject the upload with an `unsupported_file_type` error."
|
|
1704
2511
|
},
|
|
2512
|
+
{
|
|
2513
|
+
type: "heading",
|
|
2514
|
+
level: 3,
|
|
2515
|
+
id: "drag-drop-example",
|
|
2516
|
+
text: "Example: drag-and-drop extraction flow"
|
|
2517
|
+
},
|
|
2518
|
+
{
|
|
2519
|
+
type: "code",
|
|
2520
|
+
language: "json",
|
|
2521
|
+
title: "What the agent sends when a user drops a PDF",
|
|
2522
|
+
code: `// User drops "receipt-2026-05.pdf" into the chat
|
|
2523
|
+
// The MCP client base64-encodes the file bytes automatically
|
|
2524
|
+
// Agent calls talonic_extract:
|
|
2525
|
+
{
|
|
2526
|
+
"file_data": "JVBERi0xLjQKJcOkw7zDtsO8...",
|
|
2527
|
+
"filename": "receipt-2026-05.pdf",
|
|
2528
|
+
"schema": {
|
|
2529
|
+
"type": "object",
|
|
2530
|
+
"properties": {
|
|
2531
|
+
"merchant": { "type": "string" },
|
|
2532
|
+
"date": { "type": "string", "format": "date" },
|
|
2533
|
+
"total": { "type": "number" },
|
|
2534
|
+
"payment_method": { "type": "string" }
|
|
2535
|
+
},
|
|
2536
|
+
"required": ["merchant", "total"]
|
|
2537
|
+
}
|
|
2538
|
+
}`
|
|
2539
|
+
},
|
|
2540
|
+
{
|
|
2541
|
+
type: "code",
|
|
2542
|
+
language: "json",
|
|
2543
|
+
title: "Extraction response from dropped file",
|
|
2544
|
+
code: `{
|
|
2545
|
+
"status": "complete",
|
|
2546
|
+
"document": {
|
|
2547
|
+
"id": "doc_f1e2...",
|
|
2548
|
+
"filename": "receipt-2026-05.pdf",
|
|
2549
|
+
"pages": 1,
|
|
2550
|
+
"type_detected": "receipt"
|
|
2551
|
+
},
|
|
2552
|
+
"data": {
|
|
2553
|
+
"merchant": "Coffee House Berlin",
|
|
2554
|
+
"date": "2026-05-07",
|
|
2555
|
+
"total": 14.80,
|
|
2556
|
+
"payment_method": "Visa ending 4242"
|
|
2557
|
+
},
|
|
2558
|
+
"confidence": { "overall": 0.95 }
|
|
2559
|
+
}`
|
|
2560
|
+
},
|
|
2561
|
+
{
|
|
2562
|
+
type: "paragraph",
|
|
2563
|
+
text: "The drag-and-drop flow works identically across Claude Desktop, Cowork, and other chat-style MCP clients that support file attachments. The key requirement is that the client encodes the file as base64 and passes it in the `file_data` parameter alongside the original `filename`. The MCP server uses the filename extension to determine the MIME type, decodes the base64 bytes, and uploads the file to the Talonic API in a single request."
|
|
2564
|
+
},
|
|
2565
|
+
{
|
|
2566
|
+
type: "paragraph",
|
|
2567
|
+
text: "For large files (over 10 MB), the base64 encoding increases the payload size by approximately 33%. Most MCP clients handle this transparently, but some hosted connectors (notably Claude.ai's web connector) have payload size limits that can truncate the encoded data. If you encounter issues with large files in a hosted connector, use `file_url` with a publicly reachable URL or upload the document through the Talonic dashboard and reference it by `document_id` instead."
|
|
2568
|
+
},
|
|
1705
2569
|
{
|
|
1706
2570
|
type: "callout",
|
|
1707
2571
|
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."
|
|
@@ -1724,6 +2588,14 @@ var sections4 = [
|
|
|
1724
2588
|
{
|
|
1725
2589
|
question: "Why does drag-and-drop fail with an unsupported_file_type error?",
|
|
1726
2590
|
answer: "The filename is missing a recognisable extension. Make sure the original filename with its extension is passed in the filename parameter alongside file_data."
|
|
2591
|
+
},
|
|
2592
|
+
{
|
|
2593
|
+
question: "What happens if the dropped file is too large?",
|
|
2594
|
+
answer: "Base64 encoding increases payload size by about 33%. Most local MCP clients handle this fine, but hosted connectors may have payload limits. For large files (over 10 MB), use file_url with a public URL or upload via the Talonic dashboard and reference by document_id instead."
|
|
2595
|
+
},
|
|
2596
|
+
{
|
|
2597
|
+
question: "Do I need to configure anything for drag-and-drop to work?",
|
|
2598
|
+
answer: "No. The file_data parameter is advertised in the tool descriptions, so MCP clients that support file attachments automatically encode and pass the file. Just drop the file into the chat and provide a schema \u2014 the agent handles the rest."
|
|
1727
2599
|
}
|
|
1728
2600
|
],
|
|
1729
2601
|
mentions: ["drag-and-drop", "file_data", "base64", "Claude Desktop"]
|
|
@@ -1761,6 +2633,54 @@ api.talonic.com`
|
|
|
1761
2633
|
type: "paragraph",
|
|
1762
2634
|
text: "Error handling is designed for agent consumption. API errors are reformatted into structured messages that include the error type, a human-readable description, and actionable next steps. For example, a missing schema error tells the agent to provide a `schema` or `schema_id`, rather than returning a raw 400 status code."
|
|
1763
2635
|
},
|
|
2636
|
+
{
|
|
2637
|
+
type: "heading",
|
|
2638
|
+
level: 3,
|
|
2639
|
+
id: "request-lifecycle",
|
|
2640
|
+
text: "Request lifecycle"
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
type: "code",
|
|
2644
|
+
language: "json",
|
|
2645
|
+
title: "What happens during a talonic_extract call",
|
|
2646
|
+
code: `// 1. Agent sends MCP tool call over stdio/HTTP:
|
|
2647
|
+
{
|
|
2648
|
+
"tool": "talonic_extract",
|
|
2649
|
+
"arguments": {
|
|
2650
|
+
"file_url": "https://example.com/invoice.pdf",
|
|
2651
|
+
"schema": { "type": "object", "properties": { "total": { "type": "number" } } }
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
|
|
2655
|
+
// 2. MCP server validates parameters, constructs API request:
|
|
2656
|
+
// POST https://api.talonic.com/v1/extract
|
|
2657
|
+
// Authorization: Bearer tlnc_...
|
|
2658
|
+
// Content-Type: multipart/form-data (for file uploads)
|
|
2659
|
+
|
|
2660
|
+
// 3. API processes: download file \u2192 OCR \u2192 extract fields \u2192 validate schema
|
|
2661
|
+
|
|
2662
|
+
// 4. MCP server formats response as MCP content:
|
|
2663
|
+
{
|
|
2664
|
+
"content": [
|
|
2665
|
+
{
|
|
2666
|
+
"type": "text",
|
|
2667
|
+
"text": "{ \\"status\\": \\"complete\\", \\"data\\": { \\"total\\": 1500.00 }, ... }"
|
|
2668
|
+
}
|
|
2669
|
+
]
|
|
2670
|
+
}`
|
|
2671
|
+
},
|
|
2672
|
+
{
|
|
2673
|
+
type: "paragraph",
|
|
2674
|
+
text: "The MCP server is stateless between tool calls. It does not cache documents, schemas, or extraction results locally. Every tool call is an independent HTTP request to the Talonic API, which means the server can be restarted at any time without losing state. All persistence \u2014 documents, schemas, extraction history \u2014 lives in the Talonic cloud workspace, accessible via your API key."
|
|
2675
|
+
},
|
|
2676
|
+
{
|
|
2677
|
+
type: "paragraph",
|
|
2678
|
+
text: "Authentication is handled transparently by the MCP server. For the local `npx` option, the server reads the `TALONIC_API_KEY` environment variable at startup and attaches it as a `Bearer` token to every API request. For the hosted option at `mcp.talonic.com`, the client passes the API key in the `Authorization` header, and the hosted server forwards it to the Talonic API. In neither case does the API key reach the AI agent \u2014 it stays within the MCP server process boundary."
|
|
2679
|
+
},
|
|
2680
|
+
{
|
|
2681
|
+
type: "paragraph",
|
|
2682
|
+
text: "Transport modes differ between local and hosted deployments. The local `npx` server communicates with the MCP client over **stdio** (standard input/output), which is the default transport for locally-spawned MCP servers. The hosted server at `mcp.talonic.com` uses **streamable HTTP**, where the client sends HTTP requests and receives streamed responses. Both transports implement the same MCP protocol, so tool behaviour is identical regardless of transport mode."
|
|
2683
|
+
},
|
|
1764
2684
|
{
|
|
1765
2685
|
type: "callout",
|
|
1766
2686
|
variant: "info",
|
|
@@ -1784,6 +2704,14 @@ api.talonic.com`
|
|
|
1784
2704
|
{
|
|
1785
2705
|
question: "How are errors returned to the agent?",
|
|
1786
2706
|
answer: "API errors are reformatted into structured messages with error type, description, and actionable next steps. The agent receives clear guidance instead of raw HTTP status codes."
|
|
2707
|
+
},
|
|
2708
|
+
{
|
|
2709
|
+
question: "Does the MCP server store any data locally?",
|
|
2710
|
+
answer: "No. The server is stateless between tool calls. It does not cache documents, schemas, or results locally. All persistence lives in the Talonic cloud workspace. The server can be restarted at any time without losing state."
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
question: "Is my API key exposed to the AI agent?",
|
|
2714
|
+
answer: "No. The API key stays within the MCP server process boundary. For local setups, it is read from the TALONIC_API_KEY environment variable. For hosted setups, it is passed in the Authorization header. In neither case does the key reach the AI agent's context window."
|
|
1787
2715
|
}
|
|
1788
2716
|
],
|
|
1789
2717
|
mentions: ["stdio", "HTTPS", "Bearer auth", "architecture", "retry", "error handling"]
|
|
@@ -1833,6 +2761,63 @@ var sections5 = [
|
|
|
1833
2761
|
type: "paragraph",
|
|
1834
2762
|
text: "If the MCP server cannot read the API key at startup, it exits with a descriptive error. Common causes include a malformed `env` block in the JSON config, a typo in the variable name, or the MCP client not passing environment variables through to the spawned process. Always fully restart the client after editing the config."
|
|
1835
2763
|
},
|
|
2764
|
+
{
|
|
2765
|
+
type: "heading",
|
|
2766
|
+
level: 3,
|
|
2767
|
+
id: "env-local-config",
|
|
2768
|
+
text: "Local npx configuration example"
|
|
2769
|
+
},
|
|
2770
|
+
{
|
|
2771
|
+
type: "code",
|
|
2772
|
+
language: "json",
|
|
2773
|
+
title: "Full MCP client config with environment variables",
|
|
2774
|
+
code: `{
|
|
2775
|
+
"mcpServers": {
|
|
2776
|
+
"talonic": {
|
|
2777
|
+
"command": "npx",
|
|
2778
|
+
"args": ["-y", "@talonic/mcp@latest"],
|
|
2779
|
+
"env": {
|
|
2780
|
+
"TALONIC_API_KEY": "tlnc_your_key_here"
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
}
|
|
2784
|
+
}`
|
|
2785
|
+
},
|
|
2786
|
+
{
|
|
2787
|
+
type: "heading",
|
|
2788
|
+
level: 3,
|
|
2789
|
+
id: "env-base-url-override",
|
|
2790
|
+
text: "Base URL override for enterprise deployments"
|
|
2791
|
+
},
|
|
2792
|
+
{
|
|
2793
|
+
type: "code",
|
|
2794
|
+
language: "json",
|
|
2795
|
+
title: "Config with custom base URL for a dedicated Talonic deployment",
|
|
2796
|
+
code: `{
|
|
2797
|
+
"mcpServers": {
|
|
2798
|
+
"talonic": {
|
|
2799
|
+
"command": "npx",
|
|
2800
|
+
"args": ["-y", "@talonic/mcp@latest"],
|
|
2801
|
+
"env": {
|
|
2802
|
+
"TALONIC_API_KEY": "tlnc_your_key_here",
|
|
2803
|
+
"TALONIC_BASE_URL": "https://api.talonic.yourcompany.com"
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
}`
|
|
2808
|
+
},
|
|
2809
|
+
{
|
|
2810
|
+
type: "paragraph",
|
|
2811
|
+
text: "For teams managing multiple environments (development, staging, production), each environment should use a separate API key pointing to a different Talonic workspace. This ensures that test documents and schemas do not mix with production data. Create separate config files or use environment-specific variable values to switch between workspaces. The `TALONIC_BASE_URL` override is only needed for enterprise customers with a dedicated Talonic deployment \u2014 all other users should leave it unset."
|
|
2812
|
+
},
|
|
2813
|
+
{
|
|
2814
|
+
type: "paragraph",
|
|
2815
|
+
text: "Some MCP clients support reading environment variables from the system shell rather than the config file. If your client supports this, you can set `TALONIC_API_KEY` in your shell profile (`.bashrc`, `.zshrc`, or equivalent) and omit the `env` block from the config. This approach is slightly more secure because the key is not stored in a JSON file that might be accidentally committed to version control. However, most MCP clients require the `env` block explicitly, so check your client's documentation."
|
|
2816
|
+
},
|
|
2817
|
+
{
|
|
2818
|
+
type: "paragraph",
|
|
2819
|
+
text: "When using the hosted server at `mcp.talonic.com`, environment variables are not used at all. Instead, the API key is passed in the `Authorization` header as a `Bearer` token. This means the `env` block is irrelevant for hosted configurations \u2014 only the `url` and `headers` fields matter. If you switch from local to hosted, remove the `env`, `command`, and `args` fields and replace them with `url` and `headers`."
|
|
2820
|
+
},
|
|
1836
2821
|
{
|
|
1837
2822
|
type: "callout",
|
|
1838
2823
|
variant: "warning",
|
|
@@ -1856,6 +2841,14 @@ var sections5 = [
|
|
|
1856
2841
|
{
|
|
1857
2842
|
question: "What happens if the API key is missing or invalid?",
|
|
1858
2843
|
answer: "The MCP server exits at startup with a descriptive error message. Check that the env block in your config is correctly formatted and the key starts with tlnc_. Restart the client after fixing."
|
|
2844
|
+
},
|
|
2845
|
+
{
|
|
2846
|
+
question: "Can I set the API key in my shell profile instead of the config file?",
|
|
2847
|
+
answer: "Some MCP clients support reading environment variables from the system shell. If yours does, set TALONIC_API_KEY in .bashrc or .zshrc and omit the env block from the config. However, most clients require the env block explicitly, so check your client documentation first."
|
|
2848
|
+
},
|
|
2849
|
+
{
|
|
2850
|
+
question: "Do I need TALONIC_BASE_URL for normal usage?",
|
|
2851
|
+
answer: "No. TALONIC_BASE_URL defaults to https://api.talonic.com and only needs to be overridden for enterprise customers with a dedicated Talonic deployment or developers testing against a staging environment. Leave it unset for standard usage."
|
|
1859
2852
|
}
|
|
1860
2853
|
],
|
|
1861
2854
|
mentions: ["TALONIC_API_KEY", "TALONIC_BASE_URL", "environment variables"]
|
|
@@ -1947,6 +2940,62 @@ var sections6 = [
|
|
|
1947
2940
|
type: "paragraph",
|
|
1948
2941
|
text: "Some MCP clients cache tool descriptions. Restart the client after a server update."
|
|
1949
2942
|
},
|
|
2943
|
+
{
|
|
2944
|
+
type: "heading",
|
|
2945
|
+
level: 3,
|
|
2946
|
+
id: "auth-error",
|
|
2947
|
+
text: "Authentication error on every tool call"
|
|
2948
|
+
},
|
|
2949
|
+
{
|
|
2950
|
+
type: "paragraph",
|
|
2951
|
+
text: "If every tool call returns an authentication error, the credential the server is using is missing, malformed, or revoked. For the local npx option, check that the `env` block in your config has the correct variable name (`TALONIC_API_KEY`, not `TALONIC_KEY` or `API_KEY`) and that the value starts with `tlnc_`. For the hosted server with a custom-header client, verify the `Authorization` header is formatted as `Bearer tlnc_...` with a space after `Bearer`. For the Claude.ai connector OAuth flow, see the OAuth-specific entry below."
|
|
2952
|
+
},
|
|
2953
|
+
{
|
|
2954
|
+
type: "heading",
|
|
2955
|
+
level: 3,
|
|
2956
|
+
id: "oauth-flow",
|
|
2957
|
+
text: "Claude.ai connector: stuck on sign-in or callback"
|
|
2958
|
+
},
|
|
2959
|
+
{
|
|
2960
|
+
type: "paragraph",
|
|
2961
|
+
text: "The Claude.ai custom-connector flow uses OAuth 2.1 with PKCE against `app.talonic.com`. If the sign-in window opens but does not return to Claude.ai, or the connector reports `disconnected` after authorising, walk through these checks. Make sure you are signed in to the same Talonic account in `app.talonic.com` that owns the workspace you want to use. Allow third-party cookies for `app.talonic.com` and `claude.ai`; some browsers block the post-consent redirect otherwise. After granting consent, you should be redirected back to Claude.ai automatically; if the tab stays on `app.talonic.com`, click the Talonic logo or close the tab and reopen the connector to retry. If you have multiple Talonic accounts, sign out of `app.talonic.com` first, then start the connector flow again so the right account is used. As a last resort, remove the connector in Claude.ai and add it again with `https://mcp.talonic.com/mcp` as the URL."
|
|
2962
|
+
},
|
|
2963
|
+
{
|
|
2964
|
+
type: "heading",
|
|
2965
|
+
level: 3,
|
|
2966
|
+
id: "timeout-errors",
|
|
2967
|
+
text: "Tool calls time out on large documents"
|
|
2968
|
+
},
|
|
2969
|
+
{
|
|
2970
|
+
type: "paragraph",
|
|
2971
|
+
text: "Large documents (20+ pages) may take longer than some MCP clients' default timeout. The Talonic API processes documents up to 100 pages, but extraction time scales with page count. If you experience timeouts, try splitting large documents into smaller sections before uploading. Alternatively, check if your MCP client has a configurable timeout setting \u2014 increasing it to 60 seconds should accommodate most documents."
|
|
2972
|
+
},
|
|
2973
|
+
{
|
|
2974
|
+
type: "heading",
|
|
2975
|
+
level: 3,
|
|
2976
|
+
id: "debug-checklist",
|
|
2977
|
+
text: "Debug checklist"
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
type: "code",
|
|
2981
|
+
language: "json",
|
|
2982
|
+
title: "Step-by-step debug commands",
|
|
2983
|
+
code: `// 1. Verify the MCP server installs and runs:
|
|
2984
|
+
// Terminal: npx -y @talonic/mcp@latest --version
|
|
2985
|
+
// Expected: prints version number (e.g., 0.1.6)
|
|
2986
|
+
|
|
2987
|
+
// 2. Verify your API key is valid:
|
|
2988
|
+
// Terminal: curl -H "Authorization: Bearer tlnc_your_key" https://api.talonic.com/v1/schemas
|
|
2989
|
+
// Expected: JSON response (even if empty schemas array)
|
|
2990
|
+
|
|
2991
|
+
// 3. Validate your config JSON:
|
|
2992
|
+
// Paste your config into https://jsonlint.com
|
|
2993
|
+
// Common errors: trailing commas, missing quotes, wrong brackets
|
|
2994
|
+
|
|
2995
|
+
// 4. Verify client picked up the config:
|
|
2996
|
+
// Check the connected servers list in your MCP client
|
|
2997
|
+
// If Talonic is missing, the config is not being read`
|
|
2998
|
+
},
|
|
1950
2999
|
{
|
|
1951
3000
|
type: "callout",
|
|
1952
3001
|
variant: "info",
|
|
@@ -1970,6 +3019,14 @@ var sections6 = [
|
|
|
1970
3019
|
{
|
|
1971
3020
|
question: "How do I debug MCP server connection issues?",
|
|
1972
3021
|
answer: "First verify the server runs standalone: npx -y @talonic/mcp@latest --version. Then check your config JSON is valid, the API key starts with tlnc_, and you have fully restarted your MCP client."
|
|
3022
|
+
},
|
|
3023
|
+
{
|
|
3024
|
+
question: "Why do all tool calls return authentication errors?",
|
|
3025
|
+
answer: "The API key is missing, malformed, or revoked. Verify the key starts with tlnc_ in your config. For local setups, check the env block uses TALONIC_API_KEY (exact name). For hosted setups, check the Authorization header format is 'Bearer tlnc_...' with a space after Bearer. Regenerate the key in the dashboard if it was revoked."
|
|
3026
|
+
},
|
|
3027
|
+
{
|
|
3028
|
+
question: "What should I do if large documents time out?",
|
|
3029
|
+
answer: "Documents over 20 pages may exceed some MCP clients' default timeout. Try splitting the document into smaller sections, or increase your MCP client's timeout setting to 60 seconds. The Talonic API supports documents up to 100 pages but processing time scales with page count."
|
|
1973
3030
|
}
|
|
1974
3031
|
],
|
|
1975
3032
|
mentions: ["troubleshooting", "API key", "VALIDATION_ERROR"]
|
|
@@ -2009,6 +3066,39 @@ var sections6 = [
|
|
|
2009
3066
|
type: "paragraph",
|
|
2010
3067
|
text: "For the `is_not_empty` filter gap, the recommended workaround is to use `is_empty` and invert the logic client-side, or filter against a known value with `eq`, `gt`, or `contains`. This is a server-side issue that will be resolved in a future API version."
|
|
2011
3068
|
},
|
|
3069
|
+
{
|
|
3070
|
+
type: "heading",
|
|
3071
|
+
level: 3,
|
|
3072
|
+
id: "limitations-workarounds",
|
|
3073
|
+
text: "Workarounds summary"
|
|
3074
|
+
},
|
|
3075
|
+
{
|
|
3076
|
+
type: "code",
|
|
3077
|
+
language: "json",
|
|
3078
|
+
title: "Quick reference: limitation \u2192 workaround",
|
|
3079
|
+
code: `// Schema required on talonic_extract
|
|
3080
|
+
// \u2192 Always pass schema (JSON Schema) or schema_id
|
|
3081
|
+
|
|
3082
|
+
// is_not_empty filter not available
|
|
3083
|
+
// \u2192 Use is_empty and invert client-side, or filter with eq/contains
|
|
3084
|
+
|
|
3085
|
+
// Drag-and-drop stalls on Claude.ai (hosted connector)
|
|
3086
|
+
// \u2192 Use file_url, document_id, or local stdio install
|
|
3087
|
+
|
|
3088
|
+
// Numeric filter on string-typed field returns zero results
|
|
3089
|
+
// \u2192 Define numeric fields as type "number" in the schema
|
|
3090
|
+
|
|
3091
|
+
// Filter on non-filterable field returns VALIDATION_ERROR
|
|
3092
|
+
// \u2192 Call talonic_search first, use fields where filterable: true`
|
|
3093
|
+
},
|
|
3094
|
+
{
|
|
3095
|
+
type: "paragraph",
|
|
3096
|
+
text: "When building agent workflows that will run unattended, design for these limitations explicitly. Check that every `talonic_extract` call includes a schema or schema_id. Validate filter field names against `talonic_search` results before constructing conditions. For file uploads in hosted connectors with size limits, prefer `file_url` or `document_id` over `file_data`. These defensive patterns ensure the agent handles edge cases gracefully instead of failing with cryptic errors."
|
|
3097
|
+
},
|
|
3098
|
+
{
|
|
3099
|
+
type: "paragraph",
|
|
3100
|
+
text: "The Talonic team actively tracks these limitations and publishes fixes in minor version updates. Subscribe to the `@talonic/mcp` npm package changelog or watch the GitHub repository for release notes. Limitations that are resolved in newer versions are removed from this list. If you encounter a limitation not documented here, report it via GitHub issues with the MCP server version and a minimal reproduction case."
|
|
3101
|
+
},
|
|
2012
3102
|
{
|
|
2013
3103
|
type: "callout",
|
|
2014
3104
|
variant: "warning",
|
|
@@ -2032,6 +3122,14 @@ var sections6 = [
|
|
|
2032
3122
|
{
|
|
2033
3123
|
question: "How do I check my credit balance or costs?",
|
|
2034
3124
|
answer: "Cost information is not surfaced in v0.1 tool responses. Check your credit balance and usage in the Talonic dashboard at app.talonic.com."
|
|
3125
|
+
},
|
|
3126
|
+
{
|
|
3127
|
+
question: "How do I report a new limitation or bug?",
|
|
3128
|
+
answer: "Open an issue on the @talonic/mcp GitHub repository with the MCP server version (npx -y @talonic/mcp@latest --version), your MCP client name and version, and a minimal reproduction case. Include the full error message if applicable."
|
|
3129
|
+
},
|
|
3130
|
+
{
|
|
3131
|
+
question: "How do I work around the Claude.ai drag-and-drop limitation?",
|
|
3132
|
+
answer: "Claude.ai's hosted connector truncates large tool-call arguments, which breaks base64 file uploads. Use file_url with a publicly reachable URL, upload the file via the Talonic dashboard and use document_id, or switch to a local stdio install (Claude Desktop, Cursor, Cline) which has no parameter size cap."
|
|
2035
3133
|
}
|
|
2036
3134
|
],
|
|
2037
3135
|
mentions: [
|
|
@@ -2067,6 +3165,37 @@ var sections6 = [
|
|
|
2067
3165
|
type: "paragraph",
|
|
2068
3166
|
text: "After updating the `args` in your MCP client config, you must fully restart the client application. Simply starting a new conversation is not enough \u2014 the MCP server process must be terminated and re-spawned. On Claude Desktop, use Cmd+Q (macOS) or close from the system tray (Windows). On Cursor and VS Code-based clients, reload the window."
|
|
2069
3167
|
},
|
|
3168
|
+
{
|
|
3169
|
+
type: "heading",
|
|
3170
|
+
level: 3,
|
|
3171
|
+
id: "upgrade-verify",
|
|
3172
|
+
text: "Verify the upgrade"
|
|
3173
|
+
},
|
|
3174
|
+
{
|
|
3175
|
+
type: "code",
|
|
3176
|
+
language: "json",
|
|
3177
|
+
title: "Check the installed version after upgrading",
|
|
3178
|
+
code: `// In a terminal, verify the latest version installs:
|
|
3179
|
+
// npx -y @talonic/mcp@latest --version
|
|
3180
|
+
// Expected output: 0.1.6 (or the latest published version)
|
|
3181
|
+
|
|
3182
|
+
// In your MCP client, verify tools are available:
|
|
3183
|
+
// Ask the agent: "What version of Talonic MCP are you using?"
|
|
3184
|
+
// Or call talonic_list_schemas \u2014 a successful response
|
|
3185
|
+
// confirms the server is running the updated version.`
|
|
3186
|
+
},
|
|
3187
|
+
{
|
|
3188
|
+
type: "paragraph",
|
|
3189
|
+
text: "When upgrading between minor versions, tool parameters and response shapes remain backward-compatible. New versions may add optional parameters to existing tools or introduce new tools, but they will not remove or change existing parameters. This means your existing agent workflows and saved schemas continue to work without modification after an upgrade."
|
|
3190
|
+
},
|
|
3191
|
+
{
|
|
3192
|
+
type: "paragraph",
|
|
3193
|
+
text: "If you are running a pinned version and want to check whether a newer version is available, run `npm view @talonic/mcp version` in a terminal. This shows the latest published version on npm without installing it. Compare this against your pinned version to decide whether to upgrade. The changelog in the npm package description summarises what changed between versions."
|
|
3194
|
+
},
|
|
3195
|
+
{
|
|
3196
|
+
type: "paragraph",
|
|
3197
|
+
text: "For teams with multiple developers using the Talonic MCP server, coordinate upgrades by updating the shared MCP config file or template. If different team members run different versions, tool descriptions and capabilities may vary, leading to inconsistent agent behaviour. Using `@latest` for all team members ensures everyone has the same tools and avoids version-related debugging sessions."
|
|
3198
|
+
},
|
|
2070
3199
|
{
|
|
2071
3200
|
type: "callout",
|
|
2072
3201
|
variant: "info",
|
|
@@ -2089,6 +3218,14 @@ var sections6 = [
|
|
|
2089
3218
|
{
|
|
2090
3219
|
question: "Should I pin to a specific version or use @latest?",
|
|
2091
3220
|
answer: "Use @latest for development and most use cases \u2014 it picks up fixes automatically. Pin to a specific version (e.g., @0.1.6) only if you need strict version stability in production workflows."
|
|
3221
|
+
},
|
|
3222
|
+
{
|
|
3223
|
+
question: "Are upgrades backward-compatible?",
|
|
3224
|
+
answer: "Yes. Minor version upgrades maintain backward compatibility \u2014 existing tool parameters and response shapes are preserved. New versions may add optional parameters or new tools, but will not break existing workflows, schemas, or agent integrations."
|
|
3225
|
+
},
|
|
3226
|
+
{
|
|
3227
|
+
question: "How do I check if a newer version is available?",
|
|
3228
|
+
answer: "Run npm view @talonic/mcp version in a terminal to see the latest published version on npm. Compare against your pinned version or run npx -y @talonic/mcp@latest --version to see what @latest resolves to."
|
|
2092
3229
|
}
|
|
2093
3230
|
],
|
|
2094
3231
|
mentions: ["upgrade", "silent-bin bug", "0.1.3", "@latest"]
|