@talonic/mcp 0.1.92 → 0.1.94
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/CHANGELOG.md +18 -0
- package/README.md +2 -2
- package/dist/content.js +95 -3
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +263 -40
- package/dist/http-server.js.map +1 -1
- package/dist/index.js +195 -29
- package/dist/index.js.map +1 -1
- package/dist/server.js +195 -29
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
|
|
12
12
|
### Added
|
|
13
13
|
|
|
14
|
+
- **Accounts.** `talonic_list_accounts` and `talonic_create_account` (`GET/POST /v1/accounts`): the companies a workspace keeps apart. `talonic_request_upload` takes `account` (name, alias or id) so a file stays with its company, and `add_to_workspace: true` to process it fully into workspace data (values, registry, questions, SQL) instead of text only.
|
|
15
|
+
|
|
16
|
+
## [0.1.94] - 2026-11-14
|
|
17
|
+
|
|
18
|
+
### Security
|
|
19
|
+
|
|
20
|
+
- **Hosted server hardening (review 2026-11-09).** The hosted server refuses `file_path` on `talonic_extract` / `talonic_to_markdown`; a malformed request URL (e.g. `GET //`) answers 400 instead of crashing the process; invalid credentials answer 401; request bodies are capped (64 MB with a credential, 64 KB without); `?apiKey=` accepts only `tlnc_` keys; server instructions mark tool output as untrusted data.
|
|
21
|
+
|
|
22
|
+
## [0.1.93] - 2026-10-29
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- **Claude Connectors Directory review (Anthropic, 2026-10-25).** `talonic_request_upload` names no chat client any more; `talonic_invoke_agent_tool` states that the platform runs every caller, API key or OAuth session, as the read-only viewer role (`data.read` only), matching its read-only annotation; `talonic_extract` describes what it returns (schema-validated JSON, per-field confidence, provenance on request); the server instructions spell out the call order search, then document_id, then extract. The steering sentences the review quoted ("callable on EVERY turn", "you are mistaken", "never tell the user") were already removed in 0.1.85. Locked by `tests/claude-directory-compliance.test.ts`.
|
|
27
|
+
|
|
28
|
+
## [0.1.92] - 2026-10-21
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
14
32
|
- **`talonic_price_baseline_*` tools (19, app-gated), registered where the platform serves Price Baseline.** Over `/v1/price-baseline/*`: contract register with expected invoices, contract workbook with open inputs, answers with a verified quote, assumptions, price model extract / enrich / edit, recomputed prices, the standard Excel workbook (embedded xlsx resource), invoice comparison, index catalog / sync / refresh / manual entry, import from data capture, and `talonic_price_baseline_proof_invoice`: the audit-proof restatement of a checked invoice (lines at the contract price, every input with its source, eight checks, `audit_proof`, `hash`; JSON or self-contained HTML, plus the PDF link). Probe `GET /v1/price-baseline/indices`; hosted per-token 5-min cache.
|
|
15
33
|
- **`talonic_submissions_review` and `talonic_submissions_questions` (app-gated).** Agentic review of a target structure's label mappings over `/v1/submissions/review`: rule mappings are confirmed, the review agent decides the rest, and only the few questions the client's experts must answer are left. `talonic_submissions_questions` lists them with the labels each settles and records an answer (`group`, `option`). Eleven `talonic_submissions_*` tools now.
|
|
16
34
|
|
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@ Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) o
|
|
|
112
112
|
}
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
Fully restart Claude Desktop (Cmd+Q on macOS — not just close the window). Talonic appears in the connected-servers list with all thirty-
|
|
115
|
+
Fully restart Claude Desktop (Cmd+Q on macOS — not just close the window). Talonic appears in the connected-servers list with all thirty-eight public tools.
|
|
116
116
|
</details>
|
|
117
117
|
|
|
118
118
|
<details>
|
|
@@ -170,7 +170,7 @@ Claude.ai's "Add custom connector" flow uses a remote MCP URL instead of a local
|
|
|
170
170
|
2. URL: `https://mcp.talonic.com/mcp` (no query string, no headers).
|
|
171
171
|
3. Click **Connect** → you're redirected to Talonic → sign in (Google, Microsoft, or SSO).
|
|
172
172
|
4. Approve the consent screen (scopes: `extract:write`, `documents:read`, `schemas:read`, and `apps:decide` for the decision-task tools). Connectors added before `apps:decide` existed keep working; the seven decision tools show as not invocable until you remove and re-add the connector. Pick a workspace if you have multiple.
|
|
173
|
-
5. You're returned to Claude.ai. All thirty-
|
|
173
|
+
5. You're returned to Claude.ai. All thirty-eight public tools appear.
|
|
174
174
|
|
|
175
175
|
The flow uses PKCE (RFC 7636) and dynamic client registration (RFC 7591). Claude.ai stores a 1-hour access token + 30-day refresh token and refreshes automatically. No API key ever touches the connector config or any URL. Revoke by removing the connector or revoking the OAuth client in your Talonic dashboard.
|
|
176
176
|
|
package/dist/content.js
CHANGED
|
@@ -36,6 +36,8 @@ var MCP_NAV_SECTIONS = [
|
|
|
36
36
|
{ id: "talonic-get-pricing", label: "talonic_get_pricing" },
|
|
37
37
|
{ id: "talonic-get-usage", label: "talonic_get_usage" },
|
|
38
38
|
{ id: "talonic-request-upload", label: "talonic_request_upload" },
|
|
39
|
+
{ id: "talonic-list-accounts", label: "talonic_list_accounts" },
|
|
40
|
+
{ id: "talonic-create-account", label: "talonic_create_account" },
|
|
39
41
|
{ id: "talonic-list-fields", label: "talonic_list_fields" },
|
|
40
42
|
{ id: "talonic-get-field", label: "talonic_get_field" },
|
|
41
43
|
{ id: "talonic-field-values", label: "talonic_field_values" },
|
|
@@ -1282,7 +1284,11 @@ var sections3 = [
|
|
|
1282
1284
|
type: "string",
|
|
1283
1285
|
description: "Original filename (used for MIME type inference when using `file_data`)."
|
|
1284
1286
|
},
|
|
1285
|
-
{
|
|
1287
|
+
{
|
|
1288
|
+
name: "file_path",
|
|
1289
|
+
type: "string",
|
|
1290
|
+
description: "Local file path. Local (stdio) installs only; the hosted server refuses it."
|
|
1291
|
+
},
|
|
1286
1292
|
{ name: "file_url", type: "string", description: "Remote file URL." },
|
|
1287
1293
|
{
|
|
1288
1294
|
name: "document_id",
|
|
@@ -2000,7 +2006,11 @@ var sections3 = [
|
|
|
2000
2006
|
description: "Base64-encoded file bytes. Pair with `filename`."
|
|
2001
2007
|
},
|
|
2002
2008
|
{ name: "filename", type: "string", description: "Original filename with extension." },
|
|
2003
|
-
{
|
|
2009
|
+
{
|
|
2010
|
+
name: "file_path",
|
|
2011
|
+
type: "string",
|
|
2012
|
+
description: "Local file path. Local (stdio) installs only; the hosted server refuses it."
|
|
2013
|
+
},
|
|
2004
2014
|
{
|
|
2005
2015
|
name: "file_url",
|
|
2006
2016
|
type: "string",
|
|
@@ -3020,6 +3030,10 @@ Payment terms: Net 30`
|
|
|
3020
3030
|
question: "Can the agent PUT the file to the upload_url itself?",
|
|
3021
3031
|
answer: "It usually cannot \u2014 Claude.ai's sandbox and similar hosted environments restrict outbound egress to arbitrary endpoints. Even where it would technically work, you should still hand the link to the user: it preserves the user-agent boundary (the user controls what file gets uploaded) and matches what every other browser-handoff flow looks like."
|
|
3022
3032
|
},
|
|
3033
|
+
{
|
|
3034
|
+
question: "How do I keep a company's files together, and make them workspace data?",
|
|
3035
|
+
answer: "Pass `account` (a company name, alias or id from talonic_list_accounts; create one with talonic_create_account) so the document belongs to that company, and `add_to_workspace: true` so it is processed fully (values, Field Registry, questions, SQL) instead of text only. Without add_to_workspace the document is prepared for a single talonic_extract call."
|
|
3036
|
+
},
|
|
3023
3037
|
{
|
|
3024
3038
|
question: "Why a separate tool instead of changing `talonic_extract`?",
|
|
3025
3039
|
answer: "Keeping the upload-link step explicit makes the agent's reasoning visible to the user (the user sees an upload link in chat and knows what's happening). Folding it into talonic_extract would either silently change the contract for small files or introduce a hidden mode switch \u2014 both bad for predictability."
|
|
@@ -3034,6 +3048,84 @@ Payment terms: Net 30`
|
|
|
3034
3048
|
"32 KB cap"
|
|
3035
3049
|
]
|
|
3036
3050
|
},
|
|
3051
|
+
{
|
|
3052
|
+
slug: "talonic-list-accounts",
|
|
3053
|
+
parentSlug: "tools",
|
|
3054
|
+
title: "talonic_list_accounts",
|
|
3055
|
+
seoTitle: "talonic_list_accounts \u2014 List Per-Company Workspace Accounts",
|
|
3056
|
+
description: "MCP tool that lists the companies a Talonic workspace keeps apart (portfolio companies, clients), so uploads, questions and SQL stay separate per company.",
|
|
3057
|
+
content: [
|
|
3058
|
+
{ type: "heading", level: 3, id: "list-accounts-when-to-use", text: "When to use" },
|
|
3059
|
+
{
|
|
3060
|
+
type: "list",
|
|
3061
|
+
ordered: false,
|
|
3062
|
+
items: [
|
|
3063
|
+
"Before uploading a company's files, to get the account name to pass as `account`.",
|
|
3064
|
+
"To see which companies the workspace holds."
|
|
3065
|
+
]
|
|
3066
|
+
},
|
|
3067
|
+
{
|
|
3068
|
+
type: "paragraph",
|
|
3069
|
+
text: "List the workspace's accounts. An account is a company (portfolio company, client, entity) inside one workspace; each document belongs to at most one, so questions and SQL can be answered per company and never mix two companies' files."
|
|
3070
|
+
},
|
|
3071
|
+
{
|
|
3072
|
+
type: "paragraph",
|
|
3073
|
+
text: "Use it before uploading a company's files: pass the account name as `account` on `talonic_request_upload`. No parameters. Returns `data[]` of `{ id, name, aliases[], description, created_at }`."
|
|
3074
|
+
}
|
|
3075
|
+
],
|
|
3076
|
+
related: [
|
|
3077
|
+
{
|
|
3078
|
+
label: "talonic_request_upload",
|
|
3079
|
+
slug: "talonic-request-upload"
|
|
3080
|
+
}
|
|
3081
|
+
],
|
|
3082
|
+
faq: [
|
|
3083
|
+
{
|
|
3084
|
+
question: "What if the company is missing?",
|
|
3085
|
+
answer: "Create it with talonic_create_account, then upload with `account` set to its name."
|
|
3086
|
+
}
|
|
3087
|
+
],
|
|
3088
|
+
mentions: ["account", "company", "portfolio company", "upload"]
|
|
3089
|
+
},
|
|
3090
|
+
{
|
|
3091
|
+
slug: "talonic-create-account",
|
|
3092
|
+
parentSlug: "tools",
|
|
3093
|
+
title: "talonic_create_account",
|
|
3094
|
+
seoTitle: "talonic_create_account \u2014 Add a Company Account to Talonic",
|
|
3095
|
+
description: "MCP tool that creates a company account in a Talonic workspace, with aliases, so its documents, answers and SQL are kept apart from every other company.",
|
|
3096
|
+
content: [
|
|
3097
|
+
{ type: "heading", level: 3, id: "create-account-when-to-use", text: "When to use" },
|
|
3098
|
+
{
|
|
3099
|
+
type: "list",
|
|
3100
|
+
ordered: false,
|
|
3101
|
+
items: [
|
|
3102
|
+
"The user is adding files for a company talonic_list_accounts does not show.",
|
|
3103
|
+
"Setting up a new workspace with one account per portfolio company."
|
|
3104
|
+
]
|
|
3105
|
+
},
|
|
3106
|
+
{
|
|
3107
|
+
type: "paragraph",
|
|
3108
|
+
text: "Create an account for a company the workspace does not have yet. Parameters: `name` (required), `aliases` (other names it appears under in documents, e.g. its legal name), `description`."
|
|
3109
|
+
},
|
|
3110
|
+
{
|
|
3111
|
+
type: "paragraph",
|
|
3112
|
+
text: "Returns `{ id, name, aliases[], description, created_at }`. A name already in use returns 409."
|
|
3113
|
+
}
|
|
3114
|
+
],
|
|
3115
|
+
related: [
|
|
3116
|
+
{
|
|
3117
|
+
label: "talonic_request_upload",
|
|
3118
|
+
slug: "talonic-request-upload"
|
|
3119
|
+
}
|
|
3120
|
+
],
|
|
3121
|
+
faq: [
|
|
3122
|
+
{
|
|
3123
|
+
question: "Why give aliases?",
|
|
3124
|
+
answer: 'Documents name the same company differently ("Filu", "Filu Group GmbH"). Aliases let uploads and questions refer to the account by any of those names.'
|
|
3125
|
+
}
|
|
3126
|
+
],
|
|
3127
|
+
mentions: ["account", "company", "portfolio company", "upload"]
|
|
3128
|
+
},
|
|
3037
3129
|
{
|
|
3038
3130
|
slug: "talonic-list-agent-tasks",
|
|
3039
3131
|
parentSlug: "tools",
|
|
@@ -4724,7 +4816,7 @@ Payment terms: Net 30`
|
|
|
4724
4816
|
content: [
|
|
4725
4817
|
{
|
|
4726
4818
|
type: "paragraph",
|
|
4727
|
-
text: "Invoke **one named tool** from the platform's agent tool registry directly, with no model in the loop \u2014 you choose the arguments. This is how an external agent uses Talonic's retrieval and provenance while driving control flow itself: `query_data` for a read-only SQL `SELECT` over the extracted data, `describe_data` for the queryable field list, `get_document_markdown` to read a document's text. Denied capabilities come back as an error naming the capability required; the platform re-checks every call. API
|
|
4819
|
+
text: "Invoke **one named tool** from the platform's agent tool registry directly, with no model in the loop \u2014 you choose the arguments. This is how an external agent uses Talonic's retrieval and provenance while driving control flow itself: `query_data` for a read-only SQL `SELECT` over the extracted data, `describe_data` for the queryable field list, `get_document_markdown` to read a document's text. Denied capabilities come back as an error naming the capability required; the platform re-checks every call. The platform runs every caller of this route, API key or OAuth session alike, as its least-privilege viewer role, which grants only the registry's read-only tools (capability `data.read`); write-capable registry tools are never invocable here, so this tool reads and never changes workspace data."
|
|
4728
4820
|
},
|
|
4729
4821
|
{
|
|
4730
4822
|
type: "callout",
|