@talonic/mcp 0.1.76 → 0.1.78
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 +2 -0
- package/README.md +16 -4
- package/dist/content.js +615 -3
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +330 -40
- package/dist/http-server.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +313 -38
- package/dist/index.js.map +1 -1
- package/dist/server.js +313 -38
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
11
|
|
|
12
|
+
- **External-mode decision-task protocol for Talonic Apps — seven new tools** (`src/tools/decision-tasks.ts`) wrapping the platform's `/v1/decision-tasks` surface (APPS-SPEC §B4): `talonic_list_decision_tasks` (one app's inbox, `GET /v1/apps/:id/decision-tasks`), `talonic_claim_decision_task` (the exclusive lease; the claim returns the output contract, precedents and the package descriptor — there is no separate get), `talonic_read_decision_package` (pages of the run's frozen input package with provenance locators, claimant-only, journaled), `talonic_heartbeat_decision_task`, `talonic_submit_decision_task` (contract-shaped `outcome`, required verbatim `evidence[]` locators, required `rationale`, optional `confidence` / `service_version`), `talonic_release_decision_task`, and `talonic_fail_decision_task` (raises a Human Review and applies the app's fallback policy). The platform's `decide` tier admits a `tlnc_` key holding a per-app `decide` grant, or an OAuth session carrying the `apps:decide` scope with a live `senior_member`-or-above role; every description says so. The hosted server now advertises `apps:decide` in its protected-resource `scopes_supported` (so Claude.ai's consent screen offers "Claim and decide tasks"), and lists the seven tools marked `NOT INVOCABLE IN THIS SESSION` (`_meta["talonic/can_invoke"]: false`) when an OAuth token visibly lacks the scope — a connector added before the scope existed keeps working, and the agent asks the user to reconnect. Handlers always forward; the platform decides. Docs sections, nav, README, AGENTS, and the server `instructions` string carry the list → claim → package → heartbeat → submit/release/fail flow. The rule-mining external-driver tool routes stay a follow-up.
|
|
13
|
+
|
|
12
14
|
- **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`.
|
|
13
15
|
- **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.
|
|
14
16
|
- **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.
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://glama.ai/mcp/servers/talonicdev/talonic-mcp)
|
|
6
6
|
[](https://smithery.ai/servers/talonic/talonic)
|
|
7
7
|
|
|
8
|
-
> **Status:** stable, listed on the [official MCP Registry](https://registry.modelcontextprotocol.io/) as `io.github.talonicdev/talonic-mcp`.
|
|
8
|
+
> **Status:** stable, listed on the [official MCP Registry](https://registry.modelcontextprotocol.io/) as `io.github.talonicdev/talonic-mcp`. Twenty-two established tools and two resources are verified end-to-end against production (including the Claude.ai hosted connector); this branch adds seven public decision-task tools for External-mode Talonic Apps, not yet production-verified, which run at the platform's `decide` tier (a `tlnc_` key with a per-app `decide` grant, or an OAuth session with the `apps:decide` scope and a `senior_member` role or above). Runs as a local stdio process for desktop/IDE clients or as the hosted Streamable HTTP server at `mcp.talonic.com` for Claude.ai connectors.
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -32,6 +32,18 @@ One install gives an agent the whole document-extraction workflow:
|
|
|
32
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
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
34
|
| **`talonic_invoke_agent_tool`** | Run one platform agent tool directly with your own arguments — no model in the loop. |
|
|
35
|
+
| **`talonic_list_agent_tasks`** | Agent-stage worklist: documents parked at a pipeline stage waiting for an external agent's declared outputs. |
|
|
36
|
+
| **`talonic_get_agent_task`** | One Agent task's immutable input snapshot, instructions and output contract (audited disclosure). |
|
|
37
|
+
| **`talonic_claim_agent_task`** | Take or reclaim the lease on an Agent task; returns the payload and the `execution_epoch`. |
|
|
38
|
+
| **`talonic_heartbeat_agent_task`** | Extend a claimed Agent task's lease. |
|
|
39
|
+
| **`talonic_submit_agent_task`** | Submit the declared, typed outputs and resume the document. |
|
|
40
|
+
| **`talonic_list_decision_tasks`** | One External-mode App's decision inbox: runs parked for an outside agent to decide (`decide` tier: per-app grant on a `tlnc_` key, or the `apps:decide` OAuth scope). |
|
|
41
|
+
| **`talonic_claim_decision_task`** | Lease a decision task; the claim returns the output contract, precedents and the input-package descriptor. |
|
|
42
|
+
| **`talonic_read_decision_package`** | Page through the claimed run's frozen input package with its provenance locators. |
|
|
43
|
+
| **`talonic_heartbeat_decision_task`** | Extend a decision-task lease, never past its SLA deadline. |
|
|
44
|
+
| **`talonic_submit_decision_task`** | Submit the decision: `outcome` against the contract, verbatim `evidence` locators, a short `rationale`. |
|
|
45
|
+
| **`talonic_release_decision_task`** | Give a decision task back to `available` undecided. |
|
|
46
|
+
| **`talonic_fail_decision_task`** | Declare a decision task undecidable: raises a Human Review and applies the app's fallback policy. |
|
|
35
47
|
|
|
36
48
|
Plus two resources for clients that browse them (Claude Desktop, Cowork render these in-UI):
|
|
37
49
|
|
|
@@ -93,7 +105,7 @@ Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) o
|
|
|
93
105
|
}
|
|
94
106
|
```
|
|
95
107
|
|
|
96
|
-
Fully restart Claude Desktop (Cmd+Q on macOS — not just close the window). Talonic appears in the connected-servers list with all
|
|
108
|
+
Fully restart Claude Desktop (Cmd+Q on macOS — not just close the window). Talonic appears in the connected-servers list with all twenty-nine public tools.
|
|
97
109
|
</details>
|
|
98
110
|
|
|
99
111
|
<details>
|
|
@@ -150,8 +162,8 @@ Claude.ai's "Add custom connector" flow uses a remote MCP URL instead of a local
|
|
|
150
162
|
1. Open [claude.ai/settings/connectors](https://claude.ai/settings/connectors) → **Add custom connector**.
|
|
151
163
|
2. URL: `https://mcp.talonic.com/mcp` (no query string, no headers).
|
|
152
164
|
3. Click **Connect** → you're redirected to Talonic → sign in (Google, Microsoft, or SSO).
|
|
153
|
-
4. Approve the consent screen (scopes: `extract:write`, `documents:read`, `schemas:read`). Pick a workspace if you have multiple.
|
|
154
|
-
5. You're returned to Claude.ai. All twenty-
|
|
165
|
+
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.
|
|
166
|
+
5. You're returned to Claude.ai. All twenty-nine public tools appear.
|
|
155
167
|
|
|
156
168
|
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.
|
|
157
169
|
|