@talonic/mcp 0.1.25 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/content.js CHANGED
@@ -105,6 +105,19 @@ var sections = [
105
105
  {
106
106
  type: "paragraph",
107
107
  text: "Listed on the [official MCP Registry](https://registry.modelcontextprotocol.io/) as `io.github.talonicdev/talonic-mcp`. Verified end-to-end against production."
108
+ },
109
+ {
110
+ type: "paragraph",
111
+ text: "The MCP server acts as a bridge between your AI agent and the Talonic document extraction API. Instead of writing custom HTTP integration code, agent developers get a standards-compliant MCP interface that any compatible client can discover and invoke automatically. The server handles authentication, file upload serialisation, retry logic, and structured error formatting so the agent can focus on the user's task."
112
+ },
113
+ {
114
+ type: "paragraph",
115
+ text: "Installation takes under a minute: paste a JSON snippet into your MCP client config, supply a `tlnc_` API key, and restart the client. The hosted option at `mcp.talonic.com` requires zero local dependencies \u2014 no Node.js, no npm, no build step. The local `npx` option is equally simple and runs on any machine with Node.js 18 or later."
116
+ },
117
+ {
118
+ type: "callout",
119
+ variant: "info",
120
+ text: "The MCP server is open-source and published to npm as `@talonic/mcp`. You can inspect the source, report issues, and contribute on GitHub."
108
121
  }
109
122
  ],
110
123
  related: [
@@ -120,6 +133,10 @@ var sections = [
120
133
  {
121
134
  question: "Is the Talonic MCP server on the official MCP Registry?",
122
135
  answer: "Yes. It is listed as io.github.talonicdev/talonic-mcp on registry.modelcontextprotocol.io, maintained by Anthropic and the MCP steering group."
136
+ },
137
+ {
138
+ question: "Do I need to install anything to use the Talonic MCP server?",
139
+ 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+."
123
140
  }
124
141
  ],
125
142
  mentions: ["MCP", "Model Context Protocol", "AI agents", "document extraction"]
@@ -138,6 +155,19 @@ var sections = [
138
155
  {
139
156
  type: "paragraph",
140
157
  text: "With this MCP server installed, the agent has a `talonic_extract` tool that returns schema-validated JSON with per-field confidence scores, a detected document type, and stable IDs for follow-up calls. Seven other tools cover the rest of the workflow: searching the workspace, filtering by extracted field values, fetching a document's metadata, getting OCR markdown, listing saved schemas, saving new ones, and reading the workspace credit balance for budget-aware behaviour."
158
+ },
159
+ {
160
+ type: "paragraph",
161
+ text: "The extraction pipeline runs server-side on Talonic's infrastructure, which means the agent does not need to manage OCR libraries, prompt engineering for data extraction, or post-processing heuristics. A single tool call replaces what would otherwise be a multi-step chain of OCR, schema validation, and confidence estimation inside the agent's own context window."
162
+ },
163
+ {
164
+ type: "paragraph",
165
+ 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
+ },
167
+ {
168
+ type: "callout",
169
+ variant: "info",
170
+ text: "Every document processed through the MCP server is stored in your Talonic workspace with a stable `document_id`. Subsequent operations \u2014 re-extraction with a different schema, markdown retrieval, metadata lookup \u2014 reuse that ID without re-uploading the file, saving both time and credits."
141
171
  }
142
172
  ],
143
173
  related: [
@@ -148,6 +178,14 @@ var sections = [
148
178
  {
149
179
  question: "Why use Talonic MCP instead of OCR + LLM?",
150
180
  answer: "Raw OCR + LLM calls produce unreliable results \u2014 mangled tables, misread dates, drifting totals. Talonic returns schema-validated JSON with per-field confidence scores and stable IDs for follow-up calls."
181
+ },
182
+ {
183
+ question: "Does the MCP server handle retries and errors automatically?",
184
+ answer: "Yes. The server retries on transient failures (429 rate limits, 5xx server errors) and returns structured error messages the agent can reason about, rather than raw HTTP status codes."
185
+ },
186
+ {
187
+ question: "Can I re-extract a document with a different schema without re-uploading?",
188
+ 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."
151
189
  }
152
190
  ],
153
191
  mentions: ["OCR", "schema-validated", "confidence scores", "structured data"]
@@ -163,6 +201,18 @@ var sections = [
163
201
  type: "paragraph",
164
202
  text: "Use this guide to pick the right Talonic tool for the user's request. Match the user's intent to one of the scenarios below before calling a tool. The wrong tool returns the wrong data, costs unnecessary credits, and slows the conversation."
165
203
  },
204
+ {
205
+ type: "paragraph",
206
+ text: "The seven tools are designed for distinct use cases with minimal overlap. **`talonic_extract`** is for structured field extraction with a schema, **`talonic_to_markdown`** is for full-text conversion, **`talonic_search`** handles fuzzy discovery, **`talonic_filter`** handles precise field-value queries, **`talonic_get_document`** returns metadata, and the schema tools (**`talonic_list_schemas`**, **`talonic_save_schema`**) manage reusable extraction templates."
207
+ },
208
+ {
209
+ type: "paragraph",
210
+ text: "A well-built agent should check conversation history before making any tool call. If the user already extracted data from a document in an earlier turn, re-use that result rather than calling `talonic_extract` again. Repeat calls cost credits and add latency without providing new information."
211
+ },
212
+ {
213
+ type: "paragraph",
214
+ text: "When in doubt about which tool to use, consider the user's underlying intent: do they want specific field values (extract), the full document text (to_markdown), to find documents (search/filter), or to manage extraction templates (schema tools)? This mental model covers every scenario."
215
+ },
166
216
  {
167
217
  type: "heading",
168
218
  level: 3,
@@ -283,6 +333,23 @@ var sections = [
283
333
  "Settings \u2192 API Keys \u2192 Create New Key.",
284
334
  "Copy the `tlnc_` value into your MCP client config (snippets below)."
285
335
  ]
336
+ },
337
+ {
338
+ type: "paragraph",
339
+ text: "The API key authenticates every tool call the MCP server makes on your behalf. It is passed as a `TALONIC_API_KEY` environment variable in the local `npx` setup, or as a `Bearer` token in the `Authorization` header for the hosted server. The key is never sent to the AI agent itself \u2014 it stays within the MCP server process."
340
+ },
341
+ {
342
+ type: "paragraph",
343
+ text: "Keep your API key private. Do not commit it to version control or share it in public MCP config examples. If a key is compromised, revoke it immediately in the Talonic dashboard under Settings \u2192 API Keys and generate a new one."
344
+ },
345
+ {
346
+ type: "paragraph",
347
+ 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
+ },
349
+ {
350
+ type: "callout",
351
+ variant: "warning",
352
+ text: "Never hardcode your `tlnc_` key in source code or share it in screenshots. Use environment variables or your MCP client's config file, which is typically stored in a user-specific directory."
286
353
  }
287
354
  ],
288
355
  related: [
@@ -293,6 +360,14 @@ var sections = [
293
360
  {
294
361
  question: "How do I get a Talonic API key for MCP?",
295
362
  answer: "Sign up at app.talonic.com (free, no credit card), go to Settings > API Keys > Create New Key, and copy the tlnc_ value into your MCP client config."
363
+ },
364
+ {
365
+ question: "Is the free tier enough for development?",
366
+ answer: "Yes. The free tier includes 50 extractions per day with no credit card required, which is sufficient for development and testing. Upgrade in the dashboard for production workloads."
367
+ },
368
+ {
369
+ question: "What should I do if my API key is compromised?",
370
+ 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."
296
371
  }
297
372
  ],
298
373
  mentions: ["API key", "tlnc_", "free tier"]
@@ -347,6 +422,10 @@ var sections2 = [
347
422
  "headers": { "Authorization": "Bearer tlnc_..." }
348
423
  }`
349
424
  },
425
+ {
426
+ type: "paragraph",
427
+ text: "The hosted server is maintained by Talonic and always runs the latest version. It communicates over HTTPS with streamable HTTP transport, so there is no local process to manage. Latency is comparable to the local option because the MCP server still makes the same HTTPS call to `api.talonic.com` either way."
428
+ },
350
429
  { type: "heading", level: 3, id: "local-npx", text: "Local (npx)" },
351
430
  { type: "paragraph", text: "Runs on your machine. Requires Node.js 18+:" },
352
431
  {
@@ -362,6 +441,15 @@ var sections2 = [
362
441
  {
363
442
  type: "paragraph",
364
443
  text: "The `-y` flag skips the npm install prompt. Pinning to `@latest` means new versions are picked up on the next client restart."
444
+ },
445
+ {
446
+ type: "paragraph",
447
+ text: "Both options expose the same seven tools and one resource. The hosted option is recommended for most users because it eliminates Node.js as a dependency, simplifies debugging (no local process to inspect), and receives updates without any action on your part."
448
+ },
449
+ {
450
+ type: "callout",
451
+ variant: "info",
452
+ text: "If you are behind a corporate proxy or firewall that blocks outbound HTTPS to `mcp.talonic.com`, use the local `npx` option and configure your proxy via standard `HTTPS_PROXY` environment variables."
365
453
  }
366
454
  ],
367
455
  related: [
@@ -372,6 +460,14 @@ var sections2 = [
372
460
  {
373
461
  question: "How do I install the Talonic MCP server?",
374
462
  answer: "Use the hosted server at mcp.talonic.com/mcp \u2014 just set the URL and your API key in any MCP client config. No install needed. Alternatively, run locally via npx @talonic/mcp."
463
+ },
464
+ {
465
+ question: "What is the difference between hosted and local MCP server?",
466
+ answer: "Both expose the same tools and resource. Hosted requires zero local dependencies and auto-updates. Local runs on your machine via npx and requires Node.js 18+. Latency is comparable since both call the same API."
467
+ },
468
+ {
469
+ question: "Do I need to update the MCP server manually?",
470
+ 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."
375
471
  }
376
472
  ],
377
473
  mentions: ["npx", "npm", "MCP client", "install"]
@@ -394,6 +490,19 @@ var sections2 = [
394
490
  {
395
491
  type: "paragraph",
396
492
  text: "Fully restart Claude Desktop (Cmd+Q on macOS, not just close the window). Talonic appears in the connected servers list with all eight tools."
493
+ },
494
+ {
495
+ type: "paragraph",
496
+ text: "Claude Desktop is the most popular MCP client for Talonic. It natively supports drag-and-drop file uploads, which pairs well with `talonic_extract` via the `file_data` parameter. When you drop a PDF into the chat, Claude automatically base64-encodes it and passes it to the MCP tool."
497
+ },
498
+ {
499
+ type: "paragraph",
500
+ 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
+ },
502
+ {
503
+ type: "callout",
504
+ variant: "info",
505
+ text: "Claude Desktop also renders the `talonic://schemas` resource in its UI, letting you browse saved schemas without making a tool call."
397
506
  }
398
507
  ],
399
508
  related: [
@@ -404,6 +513,14 @@ var sections2 = [
404
513
  {
405
514
  question: "How do I add Talonic to Claude Desktop?",
406
515
  answer: "Edit claude_desktop_config.json, add the Talonic MCP server config with your API key, and fully restart Claude Desktop (Cmd+Q on macOS)."
516
+ },
517
+ {
518
+ question: "Why don't Talonic tools appear after adding the config?",
519
+ answer: "Make sure you fully restart Claude Desktop (Cmd+Q, not just close the window). Also verify your JSON syntax is valid and the config file is in the correct directory for your OS."
520
+ },
521
+ {
522
+ question: "Does Claude Desktop support drag-and-drop with Talonic?",
523
+ 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."
407
524
  }
408
525
  ],
409
526
  mentions: ["Claude Desktop", "macOS", "Windows"]
@@ -422,7 +539,24 @@ var sections2 = [
422
539
  { type: "heading", level: 3, id: "cursor-hosted", text: "Hosted (recommended)" },
423
540
  { type: "code", language: "json", code: MCP_HOSTED_SNIPPET },
424
541
  { type: "heading", level: 3, id: "cursor-local", text: "Local (npx)" },
425
- { type: "code", language: "json", code: MCP_CONFIG_SNIPPET }
542
+ { type: "code", language: "json", code: MCP_CONFIG_SNIPPET },
543
+ {
544
+ type: "paragraph",
545
+ text: "After saving the config, restart Cursor or reload the window. The Talonic tools appear in the MCP tool list and can be invoked from Cursor's AI chat panel. Cursor's agent mode is particularly effective with Talonic because it can read local files from your project and pass them directly to `talonic_extract` via `file_path`."
546
+ },
547
+ {
548
+ type: "paragraph",
549
+ text: "A common Cursor workflow is extracting data from documents within a codebase \u2014 for example, parsing specification PDFs, extracting configuration from scanned documents, or converting legacy documentation to structured data. The `file_path` input works directly with paths relative to your Cursor workspace."
550
+ },
551
+ {
552
+ type: "paragraph",
553
+ 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
+ },
555
+ {
556
+ type: "callout",
557
+ variant: "info",
558
+ text: "Cursor supports both the hosted and local MCP options. The hosted option is simpler since Cursor can connect directly via HTTPS without spawning a local process."
559
+ }
426
560
  ],
427
561
  related: [
428
562
  { label: "Claude Desktop", slug: "claude-desktop" },
@@ -432,6 +566,14 @@ var sections2 = [
432
566
  {
433
567
  question: "How do I add Talonic MCP to Cursor?",
434
568
  answer: "Edit ~/.cursor/mcp.json and add the Talonic MCP server config with your API key."
569
+ },
570
+ {
571
+ question: "Can Cursor read local files for extraction?",
572
+ answer: "Yes. Cursor's agent mode can read files from your project and pass them to talonic_extract via the file_path parameter, making it easy to extract data from documents within your codebase."
573
+ },
574
+ {
575
+ question: "Why are Talonic tool descriptions outdated in Cursor?",
576
+ answer: "Cursor caches MCP tool descriptions between sessions. Restart Cursor to force a refresh after upgrading the MCP server."
435
577
  }
436
578
  ],
437
579
  mentions: ["Cursor", "IDE"]
@@ -450,7 +592,24 @@ var sections2 = [
450
592
  { type: "heading", level: 3, id: "cline-hosted", text: "Hosted (recommended)" },
451
593
  { type: "code", language: "json", code: MCP_HOSTED_SNIPPET },
452
594
  { type: "heading", level: 3, id: "cline-local", text: "Local (npx)" },
453
- { type: "code", language: "json", code: MCP_CONFIG_SNIPPET }
595
+ { type: "code", language: "json", code: MCP_CONFIG_SNIPPET },
596
+ {
597
+ type: "paragraph",
598
+ text: "Cline runs inside VS Code and communicates with MCP servers over stdio (local) or HTTP (hosted). After adding the config, the Talonic tools become available in Cline's autonomous agent mode, where it can chain multiple tool calls without manual approval for each step."
599
+ },
600
+ {
601
+ type: "paragraph",
602
+ text: "Cline's auto-approval feature works well with Talonic workflows. For example, the agent can search for documents, filter results, and extract data from the top match in a single turn. Configure Cline's auto-approve settings to control which Talonic tools run without confirmation."
603
+ },
604
+ {
605
+ type: "paragraph",
606
+ 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
+ },
608
+ {
609
+ type: "callout",
610
+ variant: "info",
611
+ text: "If Cline shows the MCP server as disconnected after a VS Code update, re-open the Cline panel settings and verify the config is still present. Some VS Code updates can reset extension state."
612
+ }
454
613
  ],
455
614
  related: [
456
615
  { label: "Continue", slug: "continue" },
@@ -460,6 +619,14 @@ var sections2 = [
460
619
  {
461
620
  question: "How do I add Talonic MCP to Cline?",
462
621
  answer: "Open the Cline panel settings, go to MCP Servers, click Edit, and add the Talonic config entry."
622
+ },
623
+ {
624
+ question: "Does Cline support auto-approval for Talonic tools?",
625
+ answer: "Yes. Configure Cline's auto-approve settings to allow specific Talonic tools to run without manual confirmation, enabling multi-step workflows in a single turn."
626
+ },
627
+ {
628
+ question: "Can Cline access local files for Talonic extraction?",
629
+ 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."
463
630
  }
464
631
  ],
465
632
  mentions: ["Cline", "VS Code"]
@@ -496,6 +663,23 @@ var sections2 = [
496
663
  "TALONIC_API_KEY": "tlnc_your_key_here"
497
664
  }
498
665
  }`
666
+ },
667
+ {
668
+ type: "paragraph",
669
+ text: "Continue works across both VS Code and JetBrains IDEs, making Talonic tools available regardless of your editor choice. The `mcpServers` array in Continue's config supports multiple MCP servers, so Talonic runs alongside any other MCP tools you have configured."
670
+ },
671
+ {
672
+ type: "paragraph",
673
+ text: "After saving the config, reload your IDE window to pick up the changes. Continue discovers Talonic's seven tools and one resource automatically. You can verify the connection by asking the agent to call `talonic_list_schemas` \u2014 it should return your saved schemas or an empty list."
674
+ },
675
+ {
676
+ type: "paragraph",
677
+ 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
+ },
679
+ {
680
+ type: "callout",
681
+ variant: "info",
682
+ text: "Continue's MCP support works identically in VS Code and JetBrains. The same `~/.continue/config.json` file is shared across both editors."
499
683
  }
500
684
  ],
501
685
  related: [
@@ -506,6 +690,14 @@ var sections2 = [
506
690
  {
507
691
  question: "How do I add Talonic MCP to Continue?",
508
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."
697
+ },
698
+ {
699
+ question: "Why does Continue use a different config format?",
700
+ 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.'
509
701
  }
510
702
  ],
511
703
  mentions: ["Continue", "VS Code", "JetBrains"]
@@ -521,7 +713,24 @@ var sections2 = [
521
713
  { type: "heading", level: 3, id: "cowork-hosted", text: "Hosted (recommended)" },
522
714
  { type: "code", language: "json", code: MCP_HOSTED_SNIPPET },
523
715
  { type: "heading", level: 3, id: "cowork-local", text: "Local (npx)" },
524
- { type: "code", language: "json", code: MCP_CONFIG_SNIPPET }
716
+ { type: "code", language: "json", code: MCP_CONFIG_SNIPPET },
717
+ {
718
+ type: "paragraph",
719
+ text: "Cowork is a chat-style MCP client that supports drag-and-drop file uploads and resource browsing. After adding the Talonic config, the seven tools appear in the tool picker and the `talonic://schemas` resource is browseable in the resources panel."
720
+ },
721
+ {
722
+ type: "paragraph",
723
+ text: "Like Claude Desktop, Cowork renders MCP resources in its UI. This means your saved schemas are visible without making a tool call, which helps when you want to browse available schemas before starting an extraction workflow."
724
+ },
725
+ {
726
+ type: "paragraph",
727
+ 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
+ },
729
+ {
730
+ type: "callout",
731
+ variant: "info",
732
+ text: "Cowork's resource panel lets you browse `talonic://schemas` visually, making it easy to discover existing schemas before designing new ones."
733
+ }
525
734
  ],
526
735
  related: [
527
736
  { label: "Claude Desktop", slug: "claude-desktop" },
@@ -531,6 +740,14 @@ var sections2 = [
531
740
  {
532
741
  question: "How do I add Talonic MCP to Cowork?",
533
742
  answer: "Open Cowork settings, go to MCP Servers, click Add, and paste the standard Talonic config with your API key."
743
+ },
744
+ {
745
+ question: "Does Cowork support the talonic://schemas resource?",
746
+ answer: "Yes. Cowork renders MCP resources in its UI, so you can browse your saved schemas visually in the resources panel without making a tool call."
747
+ },
748
+ {
749
+ question: "Does Cowork support drag-and-drop with Talonic?",
750
+ answer: "Yes. Cowork supports drag-and-drop file uploads, which pairs with talonic_extract's file_data parameter for easy document extraction."
534
751
  }
535
752
  ],
536
753
  mentions: ["Cowork"]
@@ -551,6 +768,14 @@ var sections3 = [
551
768
  type: "paragraph",
552
769
  text: "Inputs: one of `file_data` + `filename` (recommended for chat clients), `file_path`, `file_url`, or `document_id`, plus a `schema` (or `schema_id`). Returns clean JSON with per-field confidence scores."
553
770
  },
771
+ {
772
+ type: "paragraph",
773
+ text: "This is the primary tool in the Talonic MCP server. When an agent calls **`talonic_extract`**, the MCP server uploads the document to the Talonic API, runs OCR and field extraction against the provided schema, and returns structured JSON with confidence metadata. The entire pipeline \u2014 upload, OCR, extraction, validation \u2014 runs server-side in a single request."
774
+ },
775
+ {
776
+ type: "paragraph",
777
+ text: "The response includes a `document.id` that persists in your workspace. Subsequent calls can reference this ID via the `document_id` parameter to re-extract with a different schema, retrieve markdown, or fetch metadata \u2014 all without re-uploading the file. This is both faster and cheaper than sending the file again."
778
+ },
554
779
  {
555
780
  type: "param-table",
556
781
  params: [
@@ -737,6 +962,14 @@ var sections3 = [
737
962
  {
738
963
  question: "How does talonic_extract work?",
739
964
  answer: "Send a document (file_data, file_path, file_url, or document_id) with a schema or schema_id. The tool returns schema-validated JSON with per-field confidence scores."
965
+ },
966
+ {
967
+ question: "What is the fastest way to extract data from a document?",
968
+ answer: "If the document is already in your workspace, pass its document_id instead of re-uploading. For new documents in chat clients, use file_data with base64-encoded bytes. For files on the web, use file_url to avoid downloading locally first."
969
+ },
970
+ {
971
+ question: "How long does an extraction typically take?",
972
+ answer: "Processing time depends on document size. A 2-page invoice typically completes in 2-4 seconds. Larger documents (8+ pages) may take 4-8 seconds. The processing.duration_ms field in the response shows the exact server-side duration."
740
973
  }
741
974
  ],
742
975
  mentions: ["extract", "schema", "confidence scores", "file_data"]
@@ -752,6 +985,18 @@ var sections3 = [
752
985
  type: "paragraph",
753
986
  text: "Omnisearch across documents, fields, sources, and schemas in the workspace. Use for conceptual or fuzzy queries."
754
987
  },
988
+ {
989
+ type: "paragraph",
990
+ text: "**`talonic_search`** is designed for discovery. When a user asks a question like 'do I have any contracts about indemnification?' or 'find documents from Acme', this is the right tool. It searches across document filenames, extracted field values, schema names, and source metadata using semantic and fuzzy matching."
991
+ },
992
+ {
993
+ type: "paragraph",
994
+ text: "The response is grouped by entity type: `documents`, `fieldMatches`, `schemas`, `sources`, and `fields`. Each result includes a relevance `score` (0..1) so the agent can assess match quality. Results with scores below 0.5 are typically not relevant and can be omitted when presenting to the user."
995
+ },
996
+ {
997
+ type: "paragraph",
998
+ text: "For queries that require exact field-value matching (like 'invoices over 1000 EUR'), use **`talonic_filter`** instead. Search is for exploration and discovery; filter is for precision queries against structured data."
999
+ },
755
1000
  {
756
1001
  type: "param-table",
757
1002
  params: [
@@ -768,6 +1013,11 @@ var sections3 = [
768
1013
  }
769
1014
  ]
770
1015
  },
1016
+ {
1017
+ type: "callout",
1018
+ variant: "info",
1019
+ text: "Search results include canonical field names in `fields[].canonicalName`. These names can be used directly in `talonic_filter` conditions, making search a good first step before building precise filters."
1020
+ },
771
1021
  { type: "heading", level: 3, id: "search-example", text: "Example" },
772
1022
  {
773
1023
  type: "code",
@@ -807,14 +1057,26 @@ var sections3 = [
807
1057
  }`
808
1058
  }
809
1059
  ],
810
- related: [{ label: "talonic_filter", slug: "talonic-filter" }],
1060
+ related: [
1061
+ { label: "talonic_filter", slug: "talonic-filter" },
1062
+ { label: "talonic_extract", slug: "talonic-extract" },
1063
+ { label: "Agent Decision Guide", slug: "agent-decision-guide" }
1064
+ ],
811
1065
  faq: [
812
1066
  {
813
1067
  question: "What does talonic_search do?",
814
1068
  answer: "It searches across documents, fields, sources, and schemas in the workspace using fuzzy and conceptual matching."
1069
+ },
1070
+ {
1071
+ question: "When should I use talonic_search vs talonic_filter?",
1072
+ answer: "Use search for discovery and fuzzy queries ('find Acme contracts'). Use filter for precise field-value conditions ('invoices over 1000 EUR'). Search is exploration; filter is precision."
1073
+ },
1074
+ {
1075
+ question: "What do the search scores mean?",
1076
+ 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."
815
1077
  }
816
1078
  ],
817
- mentions: ["search", "omnisearch", "fuzzy"]
1079
+ mentions: ["search", "omnisearch", "fuzzy", "discovery"]
818
1080
  },
819
1081
  {
820
1082
  slug: "talonic-filter",
@@ -831,6 +1093,14 @@ var sections3 = [
831
1093
  type: "paragraph",
832
1094
  text: "Accepts canonical field names (e.g. `vendor.name`, `policy.0_coverage_type`) which the Talonic API resolves to IDs server-side, or UUIDs directly."
833
1095
  },
1096
+ {
1097
+ type: "paragraph",
1098
+ text: "**`talonic_filter`** is the precision counterpart to **`talonic_search`**. While search uses fuzzy matching for discovery, filter applies exact conditions against extracted field values. This makes it ideal for queries like 'show me all invoices from vendor X over 1000 EUR' or 'contracts expiring before 2026-12-31'."
1099
+ },
1100
+ {
1101
+ type: "paragraph",
1102
+ text: "Multiple conditions are AND-ed together, allowing you to build precise queries that narrow results progressively. The optional `search` parameter lets you combine free-text search with structured filters in a single call, and `sort` controls the result ordering."
1103
+ },
834
1104
  {
835
1105
  type: "param-table",
836
1106
  params: [
@@ -905,15 +1175,24 @@ var sections3 = [
905
1175
  ],
906
1176
  related: [
907
1177
  { label: "talonic_search", slug: "talonic-search" },
908
- { label: "Known Limitations", slug: "known-limitations" }
1178
+ { label: "Known Limitations", slug: "known-limitations" },
1179
+ { label: "Agent Decision Guide", slug: "agent-decision-guide" }
909
1180
  ],
910
1181
  faq: [
911
1182
  {
912
1183
  question: "How do I filter documents by field value?",
913
1184
  answer: "Use talonic_filter with canonical field names and operators like eq, gt, between, contains. The API resolves field names to IDs server-side."
1185
+ },
1186
+ {
1187
+ question: "How do I find the correct canonical field names for filtering?",
1188
+ answer: "Call talonic_search first \u2014 canonical field names appear in the fields[].canonicalName array. You can also inspect previously extracted documents to see their field structure."
1189
+ },
1190
+ {
1191
+ question: "Can I combine free-text search with field filters?",
1192
+ answer: "Yes. Pass the search parameter alongside conditions to combine fuzzy text matching with structured field-value filters in a single call."
914
1193
  }
915
1194
  ],
916
- mentions: ["filter", "canonical field names", "operators"]
1195
+ mentions: ["filter", "canonical field names", "operators", "conditions"]
917
1196
  },
918
1197
  {
919
1198
  slug: "talonic-get-document",
@@ -926,6 +1205,18 @@ var sections3 = [
926
1205
  type: "paragraph",
927
1206
  text: "Fetch full metadata for a single document by ID, including processing log and link URLs."
928
1207
  },
1208
+ {
1209
+ type: "paragraph",
1210
+ text: "**`talonic_get_document`** retrieves comprehensive information about a document that has already been ingested into your Talonic workspace. This includes the file's status, page count, size, detected document type and language, the source that uploaded it, and direct links to the document in the Talonic dashboard and API."
1211
+ },
1212
+ {
1213
+ type: "paragraph",
1214
+ text: "This tool is useful when the agent needs to check whether a document has finished processing, verify its detected type, or retrieve the dashboard link so the user can view the original. It does not return extracted data \u2014 for that, use **`talonic_extract`** with the same `document_id`."
1215
+ },
1216
+ {
1217
+ type: "paragraph",
1218
+ text: "The `links.dashboard` URL in the response is particularly valuable for human-in-the-loop workflows. When the agent needs the user to verify an extraction against the original document, it can present this link as a direct way to view the source in the Talonic web interface."
1219
+ },
929
1220
  {
930
1221
  type: "param-table",
931
1222
  params: [
@@ -937,6 +1228,11 @@ var sections3 = [
937
1228
  }
938
1229
  ]
939
1230
  },
1231
+ {
1232
+ type: "callout",
1233
+ variant: "info",
1234
+ text: "The `document_id` returned by `talonic_extract` and other tools is stable. You can call `talonic_get_document` at any time to check the document's current status and metadata."
1235
+ },
940
1236
  { type: "heading", level: 3, id: "get-document-example", text: "Example" },
941
1237
  {
942
1238
  type: "code",
@@ -976,9 +1272,17 @@ var sections3 = [
976
1272
  {
977
1273
  question: "How do I get document metadata via MCP?",
978
1274
  answer: "Call talonic_get_document with the document UUID to get full metadata including processing log and link URLs."
1275
+ },
1276
+ {
1277
+ question: "Does talonic_get_document return extracted data?",
1278
+ answer: "No. It returns metadata (filename, status, pages, type, language, links). For extracted field data, use talonic_extract with the same document_id."
1279
+ },
1280
+ {
1281
+ question: "How can I link the user to the original document?",
1282
+ 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."
979
1283
  }
980
1284
  ],
981
- mentions: ["document", "metadata", "processing log"]
1285
+ mentions: ["document", "metadata", "processing log", "dashboard link"]
982
1286
  },
983
1287
  {
984
1288
  slug: "talonic-to-markdown",
@@ -991,6 +1295,18 @@ var sections3 = [
991
1295
  type: "paragraph",
992
1296
  text: "Get OCR-converted markdown for a document. Accepts `document_id` (cheapest \u2014 no re-upload), `file_data` + `filename`, `file_path`, or `file_url`."
993
1297
  },
1298
+ {
1299
+ type: "paragraph",
1300
+ text: "**`talonic_to_markdown`** converts a document's visual content into clean, structured markdown. Tables are rendered as markdown tables, headings are preserved, and the text is ordered to match the visual layout of the original document. This is the right tool when the user wants the full text of a document for summarisation, translation, or general analysis without needing structured field extraction."
1301
+ },
1302
+ {
1303
+ type: "paragraph",
1304
+ text: "If you have already ingested the document (via a previous `talonic_extract` or `talonic_to_markdown` call), pass the `document_id` to skip re-uploading. This is the cheapest and fastest path because the OCR has already been performed. For new documents, use `file_data` + `filename` in chat clients, `file_path` for local files, or `file_url` for remote files."
1305
+ },
1306
+ {
1307
+ type: "paragraph",
1308
+ text: "The returned markdown is suitable for feeding into an LLM's context window for downstream tasks. Because the conversion preserves table structure and heading hierarchy, the LLM can reason about the document's content without losing structural information that raw text extraction would discard."
1309
+ },
994
1310
  {
995
1311
  type: "param-table",
996
1312
  params: [
@@ -1013,6 +1329,11 @@ var sections3 = [
1013
1329
  }
1014
1330
  ]
1015
1331
  },
1332
+ {
1333
+ type: "callout",
1334
+ variant: "info",
1335
+ text: "If you need both structured data and markdown, use `talonic_extract` with `include_markdown: true` instead of making two separate calls. This saves one upload and one processing cycle."
1336
+ },
1016
1337
  { type: "heading", level: 3, id: "to-markdown-example", text: "Example" },
1017
1338
  {
1018
1339
  type: "code",
@@ -1049,9 +1370,17 @@ Payment terms: Net 30`
1049
1370
  {
1050
1371
  question: "How do I get markdown from a document via MCP?",
1051
1372
  answer: "Call talonic_to_markdown with a document_id (cheapest), or provide the file directly via file_data, file_path, or file_url."
1373
+ },
1374
+ {
1375
+ question: "Does talonic_to_markdown preserve table structure?",
1376
+ answer: "Yes. Tables are rendered as markdown tables with proper column alignment. Headings and text ordering are also preserved to match the original document layout."
1377
+ },
1378
+ {
1379
+ question: "Should I use talonic_to_markdown or talonic_extract with include_markdown?",
1380
+ 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."
1052
1381
  }
1053
1382
  ],
1054
- mentions: ["markdown", "OCR", "document_id"]
1383
+ mentions: ["markdown", "OCR", "document_id", "tables"]
1055
1384
  },
1056
1385
  {
1057
1386
  slug: "talonic-list-schemas",
@@ -1068,6 +1397,19 @@ Payment terms: Net 30`
1068
1397
  type: "paragraph",
1069
1398
  text: "The `talonic://schemas` resource exposes the same data to clients that browse resources separately (Claude Desktop and Cowork render these in the UI)."
1070
1399
  },
1400
+ {
1401
+ type: "paragraph",
1402
+ text: "**`talonic_list_schemas`** is a read-only tool that returns every saved schema in your workspace. Agents should call this before creating a new schema to avoid duplicates, and when the user asks about their available extraction templates. The response includes the full JSON Schema definition for each schema, so the agent can inspect field structures without additional calls."
1403
+ },
1404
+ {
1405
+ type: "paragraph",
1406
+ text: "Each schema in the response includes both a UUID (`id`) and a human-friendly short ID (`short_id` in `SCH-XXXXXXXX` format). Either can be passed as `schema_id` to `talonic_extract`. The short ID is easier for users to reference in conversation, while the UUID is useful for programmatic workflows."
1407
+ },
1408
+ {
1409
+ type: "callout",
1410
+ variant: "info",
1411
+ text: "Call `talonic_list_schemas` before `talonic_save_schema` to check if a similar schema already exists. This prevents cluttering the workspace with near-duplicate schemas."
1412
+ },
1071
1413
  { type: "heading", level: 3, id: "list-schemas-example", text: "Example" },
1072
1414
  { type: "paragraph", text: "No input parameters required." },
1073
1415
  {
@@ -1117,9 +1459,17 @@ Payment terms: Net 30`
1117
1459
  {
1118
1460
  question: "How do I list schemas via MCP?",
1119
1461
  answer: "Call talonic_list_schemas to get all saved schemas with their definitions. The talonic://schemas resource also exposes this data."
1462
+ },
1463
+ {
1464
+ question: "What is the difference between the UUID and SCH-XXXXXXXX ID?",
1465
+ answer: "Both reference the same schema. The UUID (id) is the full identifier, while SCH-XXXXXXXX (short_id) is a shorter, human-friendly format. Either can be passed as schema_id to talonic_extract."
1466
+ },
1467
+ {
1468
+ question: "Does talonic_list_schemas require any parameters?",
1469
+ answer: "No. It takes no input parameters and returns all saved schemas in the workspace with their full definitions."
1120
1470
  }
1121
1471
  ],
1122
- mentions: ["schemas", "list", "SCH-XXXXXXXX"]
1472
+ mentions: ["schemas", "list", "SCH-XXXXXXXX", "resource"]
1123
1473
  },
1124
1474
  {
1125
1475
  slug: "talonic-save-schema",
@@ -1132,6 +1482,18 @@ Payment terms: Net 30`
1132
1482
  type: "paragraph",
1133
1483
  text: "Save a schema definition to the workspace for reuse. Returns a `schema_id` that can be passed to `talonic_extract`."
1134
1484
  },
1485
+ {
1486
+ type: "paragraph",
1487
+ text: "**`talonic_save_schema`** persists an extraction template so it can be referenced by ID in future `talonic_extract` calls. This is useful when the same schema will be applied to many documents \u2014 for example, a standard invoice schema used across all vendor invoices, or a contract schema applied to every new agreement."
1488
+ },
1489
+ {
1490
+ type: "paragraph",
1491
+ text: "The recommended workflow is to iterate on the schema inline first (passing it directly to `talonic_extract`), verify the extraction results with the user, and only call `talonic_save_schema` once the schema design is confirmed. This avoids cluttering the workspace with draft schemas that never get used."
1492
+ },
1493
+ {
1494
+ type: "paragraph",
1495
+ text: "The response returns both a UUID (`id`) and a short ID (`short_id` in `SCH-XXXXXXXX` format). Either can be used as `schema_id` in subsequent `talonic_extract` calls. The `version` field starts at 1 and increments if the schema is updated through the Talonic dashboard."
1496
+ },
1135
1497
  {
1136
1498
  type: "param-table",
1137
1499
  params: [
@@ -1210,9 +1572,17 @@ Payment terms: Net 30`
1210
1572
  {
1211
1573
  question: "How do I save a schema via MCP?",
1212
1574
  answer: "Call talonic_save_schema with a name and JSON Schema definition. It returns a schema_id for reuse in talonic_extract calls."
1575
+ },
1576
+ {
1577
+ question: "When should I save a schema vs use an inline schema?",
1578
+ answer: "Save a schema when you will reuse it across many documents (e.g., a standard invoice template). Use inline schemas for one-off extractions or when iterating on schema design with the user."
1579
+ },
1580
+ {
1581
+ question: "Can I update a saved schema?",
1582
+ 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."
1213
1583
  }
1214
1584
  ],
1215
- mentions: ["save schema", "JSON Schema", "reuse"]
1585
+ mentions: ["save schema", "JSON Schema", "reuse", "version"]
1216
1586
  },
1217
1587
  {
1218
1588
  slug: "talonic-get-balance",
@@ -1324,6 +1694,14 @@ var sections4 = [
1324
1694
  type: "paragraph",
1325
1695
  text: "`@talonic/mcp@0.1.4` and later solve this by accepting **`file_data`** (base64-encoded file bytes) and **`filename`** on `talonic_extract` and `talonic_to_markdown`. The agent reads the file bytes from the conversation, base64-encodes them, and passes them through the MCP tool call. The MCP server decodes, infers MIME type from the filename, and uploads to the Talonic API."
1326
1696
  },
1697
+ {
1698
+ type: "paragraph",
1699
+ text: "This approach works transparently across all chat-style MCP clients. The agent does not need to know where the file is stored on disk, and the user does not need to configure file paths or directory permissions. The entire flow \u2014 from drop to structured extraction \u2014 happens in a single conversation turn."
1700
+ },
1701
+ {
1702
+ type: "paragraph",
1703
+ 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
+ },
1327
1705
  {
1328
1706
  type: "callout",
1329
1707
  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."
@@ -1331,12 +1709,21 @@ var sections4 = [
1331
1709
  ],
1332
1710
  related: [
1333
1711
  { label: "talonic_extract", slug: "talonic-extract" },
1334
- { label: "talonic_to_markdown", slug: "talonic-to-markdown" }
1712
+ { label: "talonic_to_markdown", slug: "talonic-to-markdown" },
1713
+ { label: "Common Issues", slug: "common-issues" }
1335
1714
  ],
1336
1715
  faq: [
1337
1716
  {
1338
1717
  question: "Can I drag and drop files into Claude Desktop with Talonic?",
1339
1718
  answer: "Yes. Since @talonic/mcp@0.1.4, talonic_extract and talonic_to_markdown accept base64 file data directly, so you can drop a PDF into Claude Desktop and extract data without file path setup."
1719
+ },
1720
+ {
1721
+ question: "What file types can I drag and drop?",
1722
+ answer: "PDF, PNG, JPG, TIFF, DOCX, XLSX, and other common document formats. The MCP server infers the MIME type from the filename extension."
1723
+ },
1724
+ {
1725
+ question: "Why does drag-and-drop fail with an unsupported_file_type error?",
1726
+ 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."
1340
1727
  }
1341
1728
  ],
1342
1729
  mentions: ["drag-and-drop", "file_data", "base64", "Claude Desktop"]
@@ -1361,19 +1748,45 @@ api.talonic.com`
1361
1748
  {
1362
1749
  type: "paragraph",
1363
1750
  text: "Each tool call is one HTTP request to the Talonic API, using your API key. The server handles auth, retries on transient failures (429, 5xx), MIME-type detection on file uploads, multipart serialisation, and structured error formatting."
1751
+ },
1752
+ {
1753
+ type: "paragraph",
1754
+ text: "The MCP server acts as a thin translation layer between the MCP protocol and the Talonic REST API. It receives tool calls from the agent over **stdio** (local mode) or **streamable HTTP** (hosted mode), validates parameters, constructs the appropriate API request, and returns the response in the MCP-standard `content` format the agent expects."
1755
+ },
1756
+ {
1757
+ type: "paragraph",
1758
+ text: "For file uploads, the server handles the complexity of multipart form encoding. It reads file bytes from `file_data` (base64), `file_path` (local disk), or `file_url` (remote URL), detects the MIME type from the filename extension, and streams the upload to `api.talonic.com`. This means the agent never needs to deal with multipart boundaries or content-type headers."
1759
+ },
1760
+ {
1761
+ type: "paragraph",
1762
+ 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
+ },
1764
+ {
1765
+ type: "callout",
1766
+ variant: "info",
1767
+ text: "The MCP server automatically retries on `429` (rate limit) and `5xx` (server error) responses with exponential backoff. Agents do not need to implement retry logic themselves."
1364
1768
  }
1365
1769
  ],
1366
1770
  related: [
1367
1771
  { label: "Environment Variables", slug: "env-variables" },
1368
- { label: "Node SDK", slug: "introduction" }
1772
+ { label: "Node SDK", slug: "introduction" },
1773
+ { label: "Install Overview", slug: "install-overview" }
1369
1774
  ],
1370
1775
  faq: [
1371
1776
  {
1372
1777
  question: "How does the Talonic MCP server work?",
1373
1778
  answer: "The MCP server communicates with AI agents over stdio using the MCP protocol. Each tool call translates to one HTTPS request to api.talonic.com with automatic auth, retries, and error formatting."
1779
+ },
1780
+ {
1781
+ question: "Does the MCP server handle retries automatically?",
1782
+ answer: "Yes. The server retries on 429 (rate limit) and 5xx (server error) responses with exponential backoff. Agents do not need to implement retry logic."
1783
+ },
1784
+ {
1785
+ question: "How are errors returned to the agent?",
1786
+ 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."
1374
1787
  }
1375
1788
  ],
1376
- mentions: ["stdio", "HTTPS", "Bearer auth", "architecture"]
1789
+ mentions: ["stdio", "HTTPS", "Bearer auth", "architecture", "retry", "error handling"]
1377
1790
  }
1378
1791
  ];
1379
1792
 
@@ -1403,16 +1816,46 @@ var sections5 = [
1403
1816
  default: "https://api.talonic.com"
1404
1817
  }
1405
1818
  ]
1819
+ },
1820
+ {
1821
+ type: "paragraph",
1822
+ text: "The `TALONIC_API_KEY` is the only required configuration. It authenticates every API call the MCP server makes on your behalf. The key must start with `tlnc_` \u2014 if you pass a key with a different prefix, the server will reject it at startup with a clear error message."
1823
+ },
1824
+ {
1825
+ type: "paragraph",
1826
+ text: "The `TALONIC_BASE_URL` override is rarely needed. It exists for enterprise customers with a dedicated Talonic deployment or for developers testing against a staging environment. Most users should leave this unset, which defaults to `https://api.talonic.com`."
1827
+ },
1828
+ {
1829
+ type: "paragraph",
1830
+ text: "Environment variables are set differently depending on your MCP client and deployment mode. For local `npx` setups, they go in the `env` block of the MCP client config JSON. For the hosted server at `mcp.talonic.com`, the API key is passed as a `Bearer` token in the `Authorization` header instead of an environment variable."
1831
+ },
1832
+ {
1833
+ type: "paragraph",
1834
+ 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
+ },
1836
+ {
1837
+ type: "callout",
1838
+ variant: "warning",
1839
+ text: "Never commit your `TALONIC_API_KEY` to version control. If using a shared MCP config template, replace the key with a placeholder like `tlnc_your_key_here` before sharing."
1406
1840
  }
1407
1841
  ],
1408
1842
  related: [
1409
1843
  { label: "Install Overview", slug: "install-overview" },
1410
- { label: "Get an API Key", slug: "get-api-key" }
1844
+ { label: "Get an API Key", slug: "get-api-key" },
1845
+ { label: "Common Issues", slug: "common-issues" }
1411
1846
  ],
1412
1847
  faq: [
1413
1848
  {
1414
1849
  question: "What environment variables does the Talonic MCP server need?",
1415
1850
  answer: "TALONIC_API_KEY (required, starts with tlnc_) and optionally TALONIC_BASE_URL to override the API endpoint."
1851
+ },
1852
+ {
1853
+ question: "Where do I set environment variables for the MCP server?",
1854
+ answer: "For local npx setups, set them in the env block of your MCP client config JSON. For the hosted server, the API key is passed as a Bearer token in the Authorization header instead."
1855
+ },
1856
+ {
1857
+ question: "What happens if the API key is missing or invalid?",
1858
+ 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."
1416
1859
  }
1417
1860
  ],
1418
1861
  mentions: ["TALONIC_API_KEY", "TALONIC_BASE_URL", "environment variables"]
@@ -1428,6 +1871,22 @@ var sections6 = [
1428
1871
  seoTitle: "Troubleshooting \u2014 Talonic MCP",
1429
1872
  description: "Solutions for common Talonic MCP server issues: missing API key, server not appearing, extract errors, and filter validation.",
1430
1873
  content: [
1874
+ {
1875
+ type: "paragraph",
1876
+ text: "This section covers the most frequently encountered issues when setting up and using the Talonic MCP server. Each issue includes a description, the root cause, and the fix. If your problem is not listed here, check the Known Limitations section or reach out via GitHub issues."
1877
+ },
1878
+ {
1879
+ type: "paragraph",
1880
+ text: "Most issues fall into two categories: **configuration problems** (the server does not start or connect) and **tool errors** (the server is running but a specific tool call fails). Configuration problems are almost always caused by malformed JSON, a missing API key, or not restarting the MCP client after editing the config."
1881
+ },
1882
+ {
1883
+ type: "paragraph",
1884
+ text: "Tool errors typically include a structured error message with an error type and description. Read the error message carefully \u2014 it usually tells you exactly what is wrong and how to fix it. For example, a `VALIDATION_ERROR` on `talonic_filter` means the field name is not in the API's registry."
1885
+ },
1886
+ {
1887
+ type: "paragraph",
1888
+ text: "When debugging, start by verifying the MCP server is running. Check the connected servers list in your MCP client. If Talonic is not listed, the issue is in your config or client setup. If it is listed but a tool call fails, the issue is with the tool input or API-side."
1889
+ },
1431
1890
  {
1432
1891
  type: "heading",
1433
1892
  level: 3,
@@ -1487,16 +1946,30 @@ var sections6 = [
1487
1946
  {
1488
1947
  type: "paragraph",
1489
1948
  text: "Some MCP clients cache tool descriptions. Restart the client after a server update."
1949
+ },
1950
+ {
1951
+ type: "callout",
1952
+ variant: "info",
1953
+ text: "When reporting issues, include the MCP server version (`npx -y @talonic/mcp@latest --version`), your MCP client name and version, and the full error message. This helps diagnose problems faster."
1490
1954
  }
1491
1955
  ],
1492
1956
  related: [
1493
1957
  { label: "Known Limitations", slug: "known-limitations" },
1494
- { label: "Upgrading", slug: "upgrading" }
1958
+ { label: "Upgrading", slug: "upgrading" },
1959
+ { label: "Environment Variables", slug: "env-variables" }
1495
1960
  ],
1496
1961
  faq: [
1497
1962
  {
1498
1963
  question: "Why does Talonic MCP not appear in Claude Desktop?",
1499
1964
  answer: 'Check that command is "npx" and args are ["-y", "@talonic/mcp@latest"]. Run npx -y @talonic/mcp@latest --version in a terminal to verify. Fully restart Claude Desktop (Cmd+Q).'
1965
+ },
1966
+ {
1967
+ question: "Why does talonic_extract fail with a validation error?",
1968
+ answer: "The most common cause is a missing schema. In v0.1, schema-less extraction is disabled at the MCP layer. Always provide a schema (inline JSON Schema) or schema_id from talonic_list_schemas."
1969
+ },
1970
+ {
1971
+ question: "How do I debug MCP server connection issues?",
1972
+ 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."
1500
1973
  }
1501
1974
  ],
1502
1975
  mentions: ["troubleshooting", "API key", "VALIDATION_ERROR"]
@@ -1508,6 +1981,14 @@ var sections6 = [
1508
1981
  seoTitle: "Known Limitations \u2014 Talonic MCP",
1509
1982
  description: "Current limitations in the Talonic MCP server v0.1: schema requirement, filter discoverability and typing, Claude.ai drag-and-drop stall, and unsurfaced cost.",
1510
1983
  content: [
1984
+ {
1985
+ type: "paragraph",
1986
+ text: "The Talonic MCP server v0.1 is production-ready but has a number of known limitations that are planned for future releases. Understanding these limitations helps agents make better decisions about when and how to use each tool."
1987
+ },
1988
+ {
1989
+ type: "paragraph",
1990
+ text: "Most limitations relate to the extraction pipeline's maturity in v0.1. Schema-less extraction, certain filter operators, cost information, and per-field provenance are not yet available. These are documented here so agent developers can set accurate expectations and build appropriate fallbacks."
1991
+ },
1511
1992
  {
1512
1993
  type: "list",
1513
1994
  items: [
@@ -1519,16 +2000,38 @@ var sections6 = [
1519
2000
  "**Drag-and-drop file uploads in Claude.ai are capped by Claude.ai's tool-call argument size limit.** A base64-encoded real PDF (typically hundreds of KB) cannot fit through Claude.ai's connector tool-call pipe, which truncates parameters under ~1KB. The Talonic API receives a few hundred bytes, registers an empty document, and returns a response with `null` extracted fields. This is a Claude.ai platform limit on connectors, not a Talonic MCP server bug. Workaround for Claude.ai users: use `file_url` (publicly reachable URL), `document_id` (file uploaded at app.talonic.com), or use a local-stdio install (`npx -y @talonic/mcp@latest` in Claude Desktop, Cursor, Cline, etc.) which has no parameter cap. The architectural fix is pre-signed upload URLs.",
1520
2001
  "**Cost, EUR price, and remaining balance are not surfaced.** The API does not return them yet. Credit balance must be checked in the Talonic dashboard."
1521
2002
  ]
2003
+ },
2004
+ {
2005
+ type: "paragraph",
2006
+ text: "Agents should handle these limitations gracefully. For the schema requirement, always construct or reference a schema before calling `talonic_extract`. For the missing cost information, direct users to the Talonic dashboard at `https://app.talonic.com` when they ask about pricing or credit balance."
2007
+ },
2008
+ {
2009
+ type: "paragraph",
2010
+ 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
+ },
2012
+ {
2013
+ type: "callout",
2014
+ variant: "warning",
2015
+ text: "Do not rely on schema-less extraction or `is_not_empty` filtering in automated workflows. Both are explicitly disabled in v0.1 and will return errors rather than unreliable results."
1522
2016
  }
1523
2017
  ],
1524
2018
  related: [
1525
2019
  { label: "Common Issues", slug: "common-issues" },
1526
- { label: "talonic_extract", slug: "talonic-extract" }
2020
+ { label: "talonic_extract", slug: "talonic-extract" },
2021
+ { label: "talonic_filter", slug: "talonic-filter" }
1527
2022
  ],
1528
2023
  faq: [
1529
2024
  {
1530
2025
  question: "What are the known limitations of Talonic MCP?",
1531
2026
  answer: "Schema is required on talonic_extract. Filter requires filterable: true fields (use talonic_search first to discover them). Numeric filter operators require schema fields typed as number. is_not_empty filter is not exposed in v0.1. Drag-and-drop file uploads in Claude.ai currently stall via the hosted MCP; use file_url or document_id instead, or use the local stdio install. Cost and balance are not surfaced in tool responses yet."
2027
+ },
2028
+ {
2029
+ question: "Will schema-less extraction be supported in the future?",
2030
+ answer: "Yes, it is planned for a future release. In v0.1, schema-less extraction is disabled because it produces unreliable results. Always provide a schema or schema_id."
2031
+ },
2032
+ {
2033
+ question: "How do I check my credit balance or costs?",
2034
+ 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."
1532
2035
  }
1533
2036
  ],
1534
2037
  mentions: [
@@ -1555,7 +2058,20 @@ var sections6 = [
1555
2058
  type: "paragraph",
1556
2059
  text: "The fix: point your `args` at `@latest` (or `@0.1.3` explicitly) and fully restart the client:"
1557
2060
  },
1558
- { type: "code", language: "jsonc", code: '"args": ["-y", "@talonic/mcp@latest"]' }
2061
+ { type: "code", language: "jsonc", code: '"args": ["-y", "@talonic/mcp@latest"]' },
2062
+ {
2063
+ type: "paragraph",
2064
+ text: "Using `@latest` is the recommended approach because it ensures you automatically receive new features, bug fixes, and improved tool descriptions on every client restart. If you need version stability for a production workflow, pin to a specific version like `@0.1.6` instead."
2065
+ },
2066
+ {
2067
+ type: "paragraph",
2068
+ 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
+ },
2070
+ {
2071
+ type: "callout",
2072
+ variant: "info",
2073
+ text: "If you are using the hosted server at `mcp.talonic.com`, upgrades are automatic. You do not need to change any configuration \u2014 the hosted server always runs the latest version."
2074
+ }
1559
2075
  ],
1560
2076
  related: [
1561
2077
  { label: "Install Overview", slug: "install-overview" },
@@ -1565,9 +2081,17 @@ var sections6 = [
1565
2081
  {
1566
2082
  question: "How do I upgrade the Talonic MCP server?",
1567
2083
  answer: 'Set args to ["-y", "@talonic/mcp@latest"] in your MCP client config and fully restart the client. Versions before 0.1.3 had a silent-bin bug that prevented the server from booting.'
2084
+ },
2085
+ {
2086
+ question: "Do I need to upgrade if I use the hosted server?",
2087
+ answer: "No. The hosted server at mcp.talonic.com is automatically updated to the latest version. No configuration changes are needed on your end."
2088
+ },
2089
+ {
2090
+ question: "Should I pin to a specific version or use @latest?",
2091
+ 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."
1568
2092
  }
1569
2093
  ],
1570
- mentions: ["upgrade", "silent-bin bug", "0.1.3"]
2094
+ mentions: ["upgrade", "silent-bin bug", "0.1.3", "@latest"]
1571
2095
  }
1572
2096
  ];
1573
2097