@paystage/auth-watch 0.1.0 → 0.2.1-canary.22

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 CHANGED
@@ -53,7 +53,27 @@ Both accept `wallet`, optional `network`, `tokens`, `spenders`,
53
53
 
54
54
  - `PAYSTAGE_RPC_URL` — overrides the default RPC URL for the network.
55
55
 
56
+ ## Supply chain and access
57
+
58
+ This is the package that legitimately touches the network, so the flags matter more
59
+ here and deserve a plain answer:
60
+
61
+ | Flag | Why it is there |
62
+ | --- | --- |
63
+ | Network access | JSON-RPC `eth_call` reads against Base (`https://mainnet.base.org` by default, or `PAYSTAGE_RPC_URL`, or an `rpc_url` argument). Read-only. |
64
+ | URL strings | The known public RPC endpoints above. |
65
+ | Environment variable access | `PAYSTAGE_RPC_URL`, so an operator can pin their own node. |
66
+
67
+ It holds no keys and signs nothing — it reads allowance and nonce state. No shell,
68
+ no `eval`, no telemetry. Full table: [SECURITY.md](../../SECURITY.md).
69
+
56
70
  ## Networks
57
71
 
58
72
  - `eip155:8453` — Base mainnet (`https://mainnet.base.org`)
59
73
  - `eip155:84532` — Base Sepolia (`https://sepolia.base.org`)
74
+
75
+ ## Links
76
+
77
+ - Website: <https://paystage.xyz>
78
+ - X: <https://x.com/paystage_xyz>
79
+ - Source: <https://github.com/base-buzz/paystage>
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createServer } from "./server.js";
3
- import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
3
+ import { StdioServerTransport } from "@modelcontextprotocol/server/stdio";
4
4
  async function main() {
5
5
  const server = createServer();
6
6
  const transport = new StdioServerTransport();
package/dist/server.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
1
+ import { McpServer } from "@modelcontextprotocol/server";
2
2
  export declare function createServer(): McpServer;
package/dist/server.js CHANGED
@@ -1,4 +1,4 @@
1
- import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
1
+ import { McpServer } from "@modelcontextprotocol/server";
2
2
  import { z } from "zod";
3
3
  import { loadPolicy, parsePolicy } from "@paystage/policy";
4
4
  import { evaluateOutstandingAuths } from "./evaluate.js";
@@ -54,9 +54,12 @@ const commonShape = {
54
54
  export function createServer() {
55
55
  const server = new McpServer({
56
56
  name: "paystage-auth-watch",
57
- version: "0.1.0",
57
+ version: "0.2.0",
58
58
  });
59
- server.tool("list_outstanding_auths", "List outstanding token authorizations for a wallet", commonShape, async (args) => {
59
+ server.registerTool("list_outstanding_auths", {
60
+ description: "List outstanding token authorizations for a wallet",
61
+ inputSchema: z.object(commonShape),
62
+ }, async (args) => {
60
63
  const policy = await resolvePolicy(args);
61
64
  const network = args.network ?? DEFAULT_NETWORK;
62
65
  const tokens = args.tokens ?? tokensForNetwork(policy, network);
@@ -84,7 +87,10 @@ export function createServer() {
84
87
  ],
85
88
  };
86
89
  });
87
- server.tool("evaluate_outstanding_auths", "List and evaluate outstanding token authorizations against a policy", commonShape, async (args) => {
90
+ server.registerTool("evaluate_outstanding_auths", {
91
+ description: "List and evaluate outstanding token authorizations against a policy",
92
+ inputSchema: z.object(commonShape),
93
+ }, async (args) => {
88
94
  const policy = await resolvePolicy(args);
89
95
  const network = args.network ?? DEFAULT_NETWORK;
90
96
  const tokens = args.tokens ?? tokensForNetwork(policy, network);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystage/auth-watch",
3
- "version": "0.1.0",
3
+ "version": "0.2.1-canary.22",
4
4
  "description": "List and evaluate outstanding ERC-20 / Permit2 / EIP-3009 authorizations for an agent wallet (read-only)",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -13,9 +13,13 @@
13
13
  }
14
14
  },
15
15
  "bin": {
16
- "paystage-auth-watch": "./dist/cli.js"
16
+ "paystage-auth-watch": "dist/cli.js"
17
17
  },
18
- "files": ["dist", "server.json"],
18
+ "files": [
19
+ "dist",
20
+ "server.json",
21
+ "!dist/**/*.map"
22
+ ],
19
23
  "mcpName": "xyz.paystage/auth-watch",
20
24
  "engines": {
21
25
  "node": ">=20"
@@ -48,13 +52,13 @@
48
52
  "prepublishOnly": "npm run build"
49
53
  },
50
54
  "dependencies": {
51
- "@modelcontextprotocol/sdk": "^1.12.0",
52
- "@paystage/policy": "0.1.0",
53
- "zod": "^3.23.8"
55
+ "@modelcontextprotocol/server": "^2.4.0",
56
+ "@paystage/policy": "0.2.1-canary.22",
57
+ "zod": "^4.6.7"
54
58
  },
55
59
  "devDependencies": {
56
60
  "@types/node": "^20.14.0",
57
61
  "typescript": "^5.5.4",
58
- "vitest": "^2.0.5"
62
+ "vitest": "^4.1.12"
59
63
  }
60
64
  }
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "xyz.paystage/auth-watch",
4
4
  "title": "PayStage Auth Watch",
5
5
  "description": "Read-only MCP tools to list and flag outstanding ERC-20, Permit2, and EIP-3009 auths",
6
- "version": "0.1.0",
6
+ "version": "0.2.0",
7
7
  "websiteUrl": "https://paystage.xyz",
8
8
  "repository": {
9
9
  "url": "https://github.com/base-buzz/paystage",
@@ -15,7 +15,7 @@
15
15
  "registryType": "npm",
16
16
  "registryBaseUrl": "https://registry.npmjs.org",
17
17
  "identifier": "@paystage/auth-watch",
18
- "version": "0.1.0",
18
+ "version": "0.2.0",
19
19
  "transport": {
20
20
  "type": "stdio"
21
21
  },