@paystage/auth-watch 0.1.0 → 0.2.0
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/dist/cli.js +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +10 -4
- package/package.json +10 -6
- package/server.json +2 -2
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/
|
|
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/
|
|
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/
|
|
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.
|
|
57
|
+
version: "0.2.0",
|
|
58
58
|
});
|
|
59
|
-
server.
|
|
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.
|
|
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.
|
|
3
|
+
"version": "0.2.0",
|
|
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",
|
|
@@ -15,7 +15,11 @@
|
|
|
15
15
|
"bin": {
|
|
16
16
|
"paystage-auth-watch": "./dist/cli.js"
|
|
17
17
|
},
|
|
18
|
-
"files": [
|
|
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/
|
|
52
|
-
"@paystage/policy": "0.
|
|
53
|
-
"zod": "^
|
|
55
|
+
"@modelcontextprotocol/server": "^2.4.0",
|
|
56
|
+
"@paystage/policy": "0.2.0",
|
|
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": "^
|
|
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.
|
|
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.
|
|
18
|
+
"version": "0.2.0",
|
|
19
19
|
"transport": {
|
|
20
20
|
"type": "stdio"
|
|
21
21
|
},
|