@talonic/mcp 0.1.65 → 0.1.67
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 +2 -2
- package/dist/content.js +9 -9
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +84 -21
- package/dist/http-server.js.map +1 -1
- package/dist/index.js +84 -21
- package/dist/index.js.map +1 -1
- package/dist/server.js +84 -21
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -264,7 +264,7 @@ The `env` block is missing or unread. Check the JSON shape, then fully restart t
|
|
|
264
264
|
Confirm `command` is `npx` and `args` are exactly `["-y", "@talonic/mcp@latest"]`. Sanity check in a terminal: `npx -y @talonic/mcp@latest --version` should print a version.
|
|
265
265
|
|
|
266
266
|
**`talonic_extract` returns a validation error with no schema.**
|
|
267
|
-
By design
|
|
267
|
+
By design — the call needs to know which fields to pull. The error hands back a ready-to-paste minimal schema (tailored to your `instructions`) so the retry succeeds immediately. Three ways forward: provide an inline `schema` (full JSON Schema recommended), pass a `schema_id` from `talonic_list_schemas`, or set `auto_schema: true` for open capture — Talonic discovers the fields and returns a suggested schema you can refine.
|
|
268
268
|
|
|
269
269
|
**Dragging a file into Claude.ai gives empty/`null` fields.**
|
|
270
270
|
The hosted-connector tool-call cap (~32 KB) truncated `file_data`. Use [`talonic_request_upload`](#file-uploads-the-browser-handoff-flow) — the browser-handoff flow is the supported path. Local-stdio installs are unaffected.
|
|
@@ -282,7 +282,7 @@ Some clients cache tool lists. For Claude.ai, remove and re-add the connector. F
|
|
|
282
282
|
|
|
283
283
|
## Known limitations (v0.1)
|
|
284
284
|
|
|
285
|
-
-
|
|
285
|
+
- **`talonic_extract` needs the fields specified.** Pass a `schema` (full JSON Schema recommended) or a `schema_id` — or set `auto_schema: true` for open capture, which discovers the fields and returns a suggested schema. A call giving none of the three returns a validation error that hands back a ready-to-paste minimal schema. If a flat key-type map (`{ vendor_name: "string" }`) yields a "no fields" error, use full JSON Schema:
|
|
286
286
|
```json
|
|
287
287
|
{
|
|
288
288
|
"type": "object",
|
package/dist/content.js
CHANGED
|
@@ -316,7 +316,7 @@ var sections = [
|
|
|
316
316
|
{
|
|
317
317
|
type: "list",
|
|
318
318
|
items: [
|
|
319
|
-
"**They want specific fields**: vendor, total, dates, parties, line items. Use `talonic_extract` with a `schema` (full JSON Schema is most reliable) or a `schema_id` from `talonic_list_schemas`.
|
|
319
|
+
"**They want specific fields**: vendor, total, dates, parties, line items. Use `talonic_extract` with a `schema` (full JSON Schema is most reliable) or a `schema_id` from `talonic_list_schemas`. Don't know the fields yet? Set `auto_schema: true` for open capture \u2014 Talonic discovers them and returns a suggested schema to refine.",
|
|
320
320
|
"**They want the full text content**, e.g. for summarisation, translation, or general analysis. Use `talonic_to_markdown`. It returns OCR-converted markdown without forcing a schema.",
|
|
321
321
|
"**They want both**: extract once with a schema (which also yields markdown when `include_markdown: true` is set), avoiding two uploads."
|
|
322
322
|
]
|
|
@@ -3127,7 +3127,7 @@ var sections6 = [
|
|
|
3127
3127
|
},
|
|
3128
3128
|
{
|
|
3129
3129
|
type: "paragraph",
|
|
3130
|
-
text: "By design
|
|
3130
|
+
text: "By design. To keep results reliable, the MCP layer asks for the fields you want when a call omits `schema`, `schema_id`, and `auto_schema`. The error hands back a ready-to-paste minimal JSON Schema (tailored to your `instructions`) so the retry succeeds immediately. Three ways forward: provide an inline `schema` (full JSON Schema recommended), pass a `schema_id` from `talonic_list_schemas`, or set `auto_schema: true` for open capture \u2014 Talonic discovers the fields and returns a suggested schema you can refine."
|
|
3131
3131
|
},
|
|
3132
3132
|
{
|
|
3133
3133
|
type: "heading",
|
|
@@ -3233,7 +3233,7 @@ var sections6 = [
|
|
|
3233
3233
|
},
|
|
3234
3234
|
{
|
|
3235
3235
|
question: "Why does talonic_extract fail with a validation error?",
|
|
3236
|
-
answer: "The most common cause is
|
|
3236
|
+
answer: "The most common cause is that no fields were specified. Provide a schema (inline JSON Schema) or a schema_id from talonic_list_schemas \u2014 or set auto_schema: true for open capture, where Talonic discovers the fields and returns a suggested schema. The validation error already hands back a ready-to-paste minimal schema, so the retry succeeds on the next call."
|
|
3237
3237
|
},
|
|
3238
3238
|
{
|
|
3239
3239
|
question: "How do I debug MCP server connection issues?",
|
|
@@ -3263,12 +3263,12 @@ var sections6 = [
|
|
|
3263
3263
|
},
|
|
3264
3264
|
{
|
|
3265
3265
|
type: "paragraph",
|
|
3266
|
-
text: "Most limitations relate to the extraction pipeline's maturity in v0.1.
|
|
3266
|
+
text: "Most limitations relate to the extraction pipeline's maturity in v0.1. Certain filter operators, cost information, and per-field provenance have constraints. These are documented here so agent developers can set accurate expectations and build appropriate fallbacks."
|
|
3267
3267
|
},
|
|
3268
3268
|
{
|
|
3269
3269
|
type: "list",
|
|
3270
3270
|
items: [
|
|
3271
|
-
"
|
|
3271
|
+
"**`talonic_extract` needs to know which fields to pull.** Pass a `schema` (full JSON Schema recommended) or a `schema_id` \u2014 or set `auto_schema: true` for open capture, where Talonic discovers the fields and returns a suggested schema. A call that gives none of the three returns a validation error that hands back a ready-to-paste minimal schema, so the retry succeeds immediately.",
|
|
3272
3272
|
"**Schema definition: prefer full JSON Schema.** The flat key-type map is documented as accepted; if you get a 'no fields' error from the API, fall back to JSON Schema.",
|
|
3273
3273
|
"**Filter requires `filterable: true` fields.** Call `talonic_search` first; only entries in the response where `filterable: true` can be used as `field` (or `field_id`) on `talonic_filter`. Entries with `filterable: false` exist in the schema but have no extracted data yet.",
|
|
3274
3274
|
"**Schema field type affects filter operators.** Numeric operators (`gt`, `gte`, `lt`, `lte`, `between`) only work on fields typed as `number` in the schema. Numeric values stored as strings (with currency symbols, locale formatting, etc.) silently return zero results. Type your schema fields appropriately at design time.",
|
|
@@ -3320,7 +3320,7 @@ var sections6 = [
|
|
|
3320
3320
|
{
|
|
3321
3321
|
type: "callout",
|
|
3322
3322
|
variant: "warning",
|
|
3323
|
-
text: "
|
|
3323
|
+
text: "For predictable automated workflows, pin the fields with a `schema` or `schema_id`. When you don't yet know the fields, `auto_schema: true` (open capture) discovers them and returns a suggested schema you can save and reuse for stability."
|
|
3324
3324
|
}
|
|
3325
3325
|
],
|
|
3326
3326
|
related: [
|
|
@@ -3331,11 +3331,11 @@ var sections6 = [
|
|
|
3331
3331
|
faq: [
|
|
3332
3332
|
{
|
|
3333
3333
|
question: "What are the known limitations of Talonic MCP?",
|
|
3334
|
-
answer: "
|
|
3334
|
+
answer: "talonic_extract needs fields specified via schema, schema_id, or auto_schema: true (open capture). Filter requires filterable: true fields (use talonic_search first to discover them). Numeric filter operators require schema fields typed as number. 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."
|
|
3335
3335
|
},
|
|
3336
3336
|
{
|
|
3337
|
-
question: "
|
|
3338
|
-
answer: "Yes
|
|
3337
|
+
question: "Can I extract without knowing the fields up front (schema-less)?",
|
|
3338
|
+
answer: "Yes. Set auto_schema: true on talonic_extract for open capture: Talonic discovers the document's fields and returns a suggested schema alongside the data. Refine and save that schema with talonic_save_schema for stable, repeatable extraction. For predictable production workflows, providing an explicit schema or schema_id is still recommended."
|
|
3339
3339
|
},
|
|
3340
3340
|
{
|
|
3341
3341
|
question: "How do I check my credit balance or costs?",
|