@auctra/mcp-gateway 0.1.12 → 0.1.13
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 +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Stage 0 MCP gateway adapter. Wrap MCP tool calls **and installs** with Auctra **
|
|
|
4
4
|
|
|
5
5
|
**REQUIRE_MCP_GATEWAY:** Production orgs (Startup+) default `require_mcp_gateway=true`. MCP-shaped `action.execute` without this package’s stamp (`auctra_mcp_gateway`) is blocked. Set `AUCTRA_REQUIRE_MCP_GATEWAY=1` for a global fail-closed override.
|
|
6
6
|
|
|
7
|
-
**
|
|
7
|
+
**Before the gateway:** register the agent with a sponsor, issue authority for the tool's action type, and `createIntent`. Pass `claimedIntentId` and `intentAnchorToken`. A payment-shaped tool also needs provenance on the execute metadata. The full field list is `docs/onboarding/quick-start.md`. ALLOW still does not run the tool until the lease is consumed.
|
|
8
8
|
|
|
9
9
|
```ts
|
|
10
10
|
import { Auctra } from "@auctra/sdk";
|
|
@@ -23,6 +23,8 @@ await gateMcpToolCall({
|
|
|
23
23
|
agentId: "agent-uuid",
|
|
24
24
|
toolName: "send_email",
|
|
25
25
|
args: { to: "vendor@example.com" },
|
|
26
|
+
claimedIntentId: "intent-uuid",
|
|
27
|
+
intentAnchorToken: "anchor-token-from-createIntent",
|
|
26
28
|
});
|
|
27
29
|
|
|
28
30
|
const sendEmail = withAuctraGate({
|