@atrib/agent 0.3.0 → 0.3.1

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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +19 -2
  3. package/package.json +7 -4
package/LICENSE CHANGED
@@ -201,7 +201,7 @@
201
201
  See the License for the specific language governing permissions and
202
202
  limitations under the License.
203
203
 
204
- Copyright 2025-2026 Atrib contributors
204
+ Copyright 2025-2026 atrib contributors
205
205
 
206
206
  Licensed under the Apache License, Version 2.0 (the "License");
207
207
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # `@atrib/agent`
2
2
 
3
- **Client-side middleware for Atrib's verifiable action layer. Outbound MCP tool calls carry atrib/W3C context, consume upstream signed records, record local gap nodes, and emit signed fallback transaction records when commerce closes. Works with major MCP framework surfaces. Sits above every major agent payment protocol so commerce-closing evidence can join the same trace.**
3
+ **Client-side middleware for atrib's verifiable action layer. Outbound MCP tool calls carry atrib/W3C context, consume upstream signed records, record local gap nodes, and emit signed fallback transaction records when commerce closes. Works with major MCP framework surfaces. Sits above every major agent payment protocol so commerce-closing evidence can join the same trace.**
4
4
 
5
5
  `@atrib/agent` is the client-side half of the [atrib protocol](https://github.com/creatornader/atrib/blob/main/atrib-spec.md). It keeps outbound MCP calls in the atrib session lifecycle: context goes out, upstream atrib tokens come back in, unsigned hops become local gap nodes, and transaction-shaped responses can produce signed agent-side fallback records. That makes agent work easier to coordinate across calls, handoffs, and later verification. Ordinary `tool_call` records are signed at the tool boundary by `@atrib/mcp`, `@atrib/mcp-wrap`, or an instrumented upstream server.
6
6
 
@@ -16,6 +16,14 @@ and run logs. Those integrations compose `@atrib/mcp-wrap`, host-specific proof
16
16
  code, `@atrib/openinference`, `@atrib/runtime-log`, `@atrib/verify`, and
17
17
  hook-class producers instead of turning `@atrib/agent` into the harness layer.
18
18
 
19
+ ## Install
20
+
21
+ ```bash
22
+ pnpm add @atrib/agent
23
+ ```
24
+
25
+ Verify a local build with `pnpm --filter @atrib/agent test`.
26
+
19
27
  ## Coverage Matrix 1: MCP Framework Adapters
20
28
 
21
29
  | Framework | Package | Adapter helper | Integration shape | Status |
@@ -196,7 +204,11 @@ const interceptor = atrib({
196
204
  })
197
205
  ```
198
206
 
199
- That's the interceptor. Now plug it into whichever framework you use:
207
+ That's the interceptor. Now plug it into whichever framework you use.
208
+ `@atrib/agent` types against each host framework structurally and does not
209
+ depend on any of them, so install the framework package you use
210
+ (`@modelcontextprotocol/sdk`, `@ai-sdk/mcp`, `agents`, `@langchain/mcp-adapters`,
211
+ or `@anthropic-ai/claude-agent-sdk`) alongside `@atrib/agent`.
200
212
 
201
213
  ### Raw `@modelcontextprotocol/sdk`
202
214
 
@@ -217,6 +229,7 @@ const client = wrapMcpClient(raw, interceptor, {
217
229
  ```ts
218
230
  import { createSdkMcpServer, tool } from '@anthropic-ai/claude-agent-sdk'
219
231
  import { atrib as wrapServer } from '@atrib/mcp' // note: server-side package
232
+ import { z } from 'zod' // ships with the Claude Agent SDK
220
233
 
221
234
  const sdkServer = createSdkMcpServer({
222
235
  name: 'my-tools',
@@ -359,3 +372,7 @@ The full protocol spec is at [`atrib-spec.md`](https://github.com/creatornader/a
359
372
  ---
360
373
 
361
374
  > **A note on documentation links.** The atrib protocol repository is currently private (in-progress public preparation). Links in this README to the spec and sister packages (`atrib-spec.md`, `packages/agent/README.md`, etc.) point at `github.com/creatornader/atrib/blob/main/...` URLs that will resolve once the repository goes public. Until then, see [`atrib.dev`](https://atrib.dev) for the protocol overview.
375
+
376
+ ## Part of atrib
377
+
378
+ atrib is an open protocol for verifiable agent actions. Every action becomes a signed, chain-linked record that anyone can verify against a public Merkle log, with no operator to trust. This package is one entrypoint. See the [full package family](https://github.com/creatornader/atrib#packages) and the [protocol spec](https://github.com/creatornader/atrib/blob/main/atrib-spec.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atrib/agent",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -13,10 +13,13 @@
13
13
  "files": [
14
14
  "dist"
15
15
  ],
16
- "description": "Client-side middleware for Atrib's verifiable action layer. Adds chain context, gap records, and transaction fallback records across MCP framework adapters.",
16
+ "description": "Client-side middleware for atrib's verifiable action layer. Adds chain context, gap records, and transaction fallback records across MCP framework adapters.",
17
17
  "author": "atrib <hello@atrib.dev>",
18
18
  "license": "Apache-2.0",
19
19
  "homepage": "https://atrib.dev",
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
20
23
  "keywords": [
21
24
  "mcp",
22
25
  "model-context-protocol",
@@ -33,8 +36,8 @@
33
36
  "@noble/ed25519": "^3.1.0",
34
37
  "@noble/hashes": "^2.2.0",
35
38
  "canonicalize": "^3.0.0",
36
- "@atrib/mcp": "0.19.0",
37
- "@atrib/verify": "0.8.0"
39
+ "@atrib/mcp": "0.19.1",
40
+ "@atrib/verify": "0.8.1"
38
41
  },
39
42
  "devDependencies": {
40
43
  "@types/node": "^25.9.3",