@talonic/mcp 0.1.75 → 0.1.76

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 CHANGED
@@ -9,11 +9,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ### Added
11
11
 
12
+ - **Field Registry as a source of truth for agents — six new read-only tools.** `talonic_list_fields` (concepts with stable ids, named maturity `core`/`proven`/`candidate`, synonyms, `superseded_by`), `talonic_get_field` (the concept card: definition, aliases, occurrence stats, value distribution, schema usage, identity links; accepts a NAME and resolves it through synonyms / merge aliases / the registry spelling fold, following redirects), `talonic_field_values` (one concept's current values across every document with provenance), `talonic_find_data` (the platform agent's concept→data retrieval, by meaning), and `talonic_list_agent_tools` + `talonic_invoke_agent_tool` (the whole platform agent tool registry — e.g. `query_data` SQL — callable with the caller's own arguments; the platform enforces the capability matrix). Backed by the new `/v1/fields/resolve`, `/v1/fields/:id/{card,values,history}` routes and `/v1/agent/tools`.
12
13
  - **Branded inline widgets for every tool.** All eleven tools now render a ChatGPT Apps SDK card (previously only `talonic_extract` did): `talonic_search` (grouped matches), `talonic_filter` (results table + warnings), `talonic_get_document` (metadata + triage), `talonic_to_markdown` (scrollable markdown), `talonic_list_schemas` (schema table), `talonic_save_schema` (confirmation), `talonic_get_balance` (balance card), `talonic_get_pricing` (pricing-catalog table with per-unit rates, EUR, free badges, and multiplier chips), `talonic_get_usage` (per-function credit breakdown with proportion bars), and `talonic_request_upload` (upload-link card). Each tool declares `_meta["openai/outputTemplate"]` pointing at its widget resource. Non-widget tool calls previously rendered as a generic "api_tool" entry in ChatGPT; now every call is branded.
13
14
  - **Widgets for the two metering tools** (`talonic_get_pricing`, `talonic_get_usage`) — these were added after the App Directory approval (0.1.67) without widgets, leaving them the only two bare tools; the 2026-07-07 alignment pass gives them cards matching the other nine, restoring one-widget-per-tool parity. Also added their entries to the MCP docs nav (`src/content/seo.ts`), which had been missed.
14
15
 
16
+ ### Fixed
17
+
18
+ - **Docs accuracy pass over `src/content/sections/*.ts`** (the surface behind `talonic.com/docs/mcp/*`). Configuration claimed the server rejects a key whose prefix is not `tlnc_` at startup; `server.ts` only checks the variable is set, so a malformed key boots and fails on the first tool call with a `401`. Known Limitations claimed cost, EUR price, and balance "are not surfaced" and routed users to the dashboard, which predates the `cost` object on `talonic_extract` responses and the `talonic_get_balance`/`get_pricing`/`get_usage` tools. Two links to `talonic.com/docs/sdk/introduction` returned 404 (the SDK hub is `/docs/sdk`). Stale "v0.1" framing removed.
19
+ - **Corrected the docs-pipeline map** in `docs/architecture/docs-pipeline.md`, `AGENTS.md`, and `CLAUDE.md`. `docs/sections.json` does not feed `/docs/{sdk,api,platform}/*`: the platform sync lands it in `@talonic/docs` as that package's `mcp` domain, which no page currently renders. It is maintained-but-dormant — the publish drift guard still requires it to track `src/tools/**`.
20
+
15
21
  ### Changed
16
22
 
23
+ - **SEO metadata across all 32 doc sections** now sits within the 50-60 character `seoTitle` and 150-160 character `description` targets, with no dead `related[]` links. Configuration also documents the env vars the self-hosted HTTP transport reads (`PORT`, `MCP_RESOURCE_URL`, `OAUTH_AUTHORIZATION_SERVER`).
17
24
  - **Refactored widget scaffolding into `src/widgets/shared.ts`** — shared base CSS, render helpers, the `window.openai` data-channel bootstrap, the `_meta` block (widget domain + CSP), and a `registerWidget()` helper. Each widget supplies only its `render(payload)` body via `buildWidgetHtml()`. `registerWidgets()` registers all eleven.
18
25
 
19
26
  ## [0.1.52] - 2026-06-01
package/README.md CHANGED
@@ -26,6 +26,12 @@ One install gives an agent the whole document-extraction workflow:
26
26
  | **`talonic_get_balance`** | Read credit balance, EUR value, burn rate, and runway for budget-aware behaviour. |
27
27
  | **`talonic_get_pricing`** | Read the public per-unit credit pricing catalog and multipliers to predict spend before running a job. |
28
28
  | **`talonic_get_usage`** | Break down credit consumption per function over a trailing window (default 30 days). |
29
+ | **`talonic_list_fields`** | List the Field Registry — every canonical concept with a stable id, maturity (`core` / `proven` / `candidate`), synonyms and occurrence counts. |
30
+ | **`talonic_get_field`** | Concept card for one field (by id or by NAME): definition, aliases, maturity, occurrence stats, value distribution with examples, schema usage, identity links. |
31
+ | **`talonic_field_values`** | One concept's current values across all documents, with provenance (document, source text, resolution band). |
32
+ | **`talonic_find_data`** | Resolve a concept in the user's words to the fields, values, documents and passages that carry it — by meaning, not by name. |
33
+ | **`talonic_list_agent_tools`** | The platform's agent tool registry (`query_data` SQL, `describe_data`, document markdown, …) with schemas and per-credential invocability. |
34
+ | **`talonic_invoke_agent_tool`** | Run one platform agent tool directly with your own arguments — no model in the loop. |
29
35
 
30
36
  Plus two resources for clients that browse them (Claude Desktop, Cowork render these in-UI):
31
37
 
@@ -145,7 +151,7 @@ Claude.ai's "Add custom connector" flow uses a remote MCP URL instead of a local
145
151
  2. URL: `https://mcp.talonic.com/mcp` (no query string, no headers).
146
152
  3. Click **Connect** → you're redirected to Talonic → sign in (Google, Microsoft, or SSO).
147
153
  4. Approve the consent screen (scopes: `extract:write`, `documents:read`, `schemas:read`). Pick a workspace if you have multiple.
148
- 5. You're returned to Claude.ai. All sixteen public tools appear.
154
+ 5. You're returned to Claude.ai. All twenty-two public tools appear.
149
155
 
150
156
  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.
151
157