@paystage/mcp 0.3.2 → 0.3.4

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
@@ -5,15 +5,15 @@ PayStage umbrella MCP server: payment preflight, auth watch, HIP-3 trade preflig
5
5
  > Not financial advice. The trade preflight tool is a local policy gate only — it does not
6
6
  > place orders or recommend trades.
7
7
 
8
- Published on npm as **`@paystage/mcp@0.3.0`**.
8
+ Published on npm as **`@paystage/mcp`** — see the [npm page](https://www.npmjs.com/package/@paystage/mcp) for the current version rather than a number here that can go stale.
9
9
 
10
10
  ## Install
11
11
 
12
12
  ```sh
13
- npx -y @paystage/mcp
13
+ npx -y -p @paystage/mcp paystage-mcp
14
14
  ```
15
15
 
16
- The server waits silently for an agent app to connect. That's normal; press Ctrl+C to exit. To try the tools without an app, run `npx @modelcontextprotocol/inspector npx -y @paystage/mcp`.
16
+ The server waits silently for an agent app to connect. That's normal; press Ctrl+C to exit. To try the tools without an app, run `npx @modelcontextprotocol/inspector npx -y -p @paystage/mcp paystage-mcp`.
17
17
 
18
18
  Or:
19
19
 
@@ -30,7 +30,7 @@ The package exposes a `stdio` MCP server (bin: `paystage-mcp`).
30
30
  "mcpServers": {
31
31
  "paystage": {
32
32
  "command": "npx",
33
- "args": ["-y", "@paystage/mcp"],
33
+ "args": ["-y", "-p", "@paystage/mcp", "paystage-mcp"],
34
34
  "env": {
35
35
  "PAYSTAGE_POLICY_PATH": "./policy.json"
36
36
  }
@@ -65,7 +65,7 @@ Evaluates a proposed HIP-3 / trade.xyz order against a local `TradePolicy` and r
65
65
  decision: `allow` | `review` | `do_not_trade`.
66
66
 
67
67
  Backed by [`@paystage/trade-preflight`](https://www.npmjs.com/package/@paystage/trade-preflight)
68
- (`0.2.0`), which is also published on npm and can be run standalone:
68
+ (published separately), which can also be run standalone:
69
69
 
70
70
  ```sh
71
71
  npx -y @paystage/trade-preflight
@@ -78,12 +78,12 @@ this tool.
78
78
 
79
79
  | Package | Version | Purpose |
80
80
  | --- | --- | --- |
81
- | `@paystage/mcp` | 0.3.0 | Umbrella server (5 tools) |
82
- | `@paystage/preflight` | 0.2.0 | x402 payment preflight |
83
- | `@paystage/auth-watch` | 0.2.0 | Outstanding-auth tools |
84
- | `@paystage/trade-preflight` | 0.2.0 | HIP-3 / trade.xyz trade preflight |
85
- | `@paystage/velocity` | 0.2.0 | Rate / spend-pattern checks |
86
- | `@paystage/policy` | 0.2.0 | Shared policy schema + loader |
81
+ | `@paystage/mcp` | Umbrella server (5 tools) |
82
+ | `@paystage/preflight` | x402 payment preflight |
83
+ | `@paystage/auth-watch` | Outstanding-auth tools |
84
+ | `@paystage/trade-preflight` | HIP-3 / trade.xyz trade preflight |
85
+ | `@paystage/velocity` | Rate / spend-pattern checks |
86
+ | `@paystage/policy` | Shared policy schema + loader |
87
87
 
88
88
  ## Verify a receipt
89
89
 
package/dist/cli.js CHANGED
File without changes
package/dist/server.js CHANGED
@@ -1,4 +1,10 @@
1
1
  import { StdioServerTransport } from "@modelcontextprotocol/server/stdio";
2
+ import { createRequire } from "node:module";
3
+ /**
4
+ * Report the real package version. This was hardcoded as "0.3.0" and stayed there two
5
+ * releases, so every client logging serverInfo was told the wrong version.
6
+ */
7
+ const SERVER_VERSION = createRequire(import.meta.url)("../package.json").version;
2
8
  import { McpServer } from "@modelcontextprotocol/server";
3
9
  import { z } from "zod";
4
10
  import { loadPolicy, parsePolicy } from "@paystage/policy";
@@ -198,7 +204,7 @@ function registerAllTools(server) {
198
204
  export function createServer() {
199
205
  const server = new McpServer({
200
206
  name: "paystage",
201
- version: "0.3.0",
207
+ version: SERVER_VERSION,
202
208
  });
203
209
  registerAllTools(server);
204
210
  return server;
File without changes
package/package.json CHANGED
@@ -1,9 +1,18 @@
1
1
  {
2
2
  "name": "@paystage/mcp",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "PayStage umbrella MCP: payment preflight, auth watch, HIP-3 trade preflight, and velocity rate/spend-pattern checks",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "./package.json": "./package.json"
15
+ },
7
16
  "bin": {
8
17
  "paystage-mcp": "dist/cli.js",
9
18
  "paystage-verify": "dist/verify-cli.js"
@@ -13,7 +22,7 @@
13
22
  "server.json",
14
23
  "!dist/**/*.map"
15
24
  ],
16
- "mcpName": "xyz.paystage/mcp",
25
+ "mcpName": "io.github.base-buzz/mcp",
17
26
  "engines": {
18
27
  "node": ">=20"
19
28
  },
@@ -43,7 +52,7 @@
43
52
  "@modelcontextprotocol/server": "^2.4.0",
44
53
  "@paystage/auth-watch": "0.2.0",
45
54
  "@paystage/policy": "0.2.1",
46
- "@paystage/preflight": "0.2.2",
55
+ "@paystage/preflight": "0.2.3",
47
56
  "@paystage/trade-preflight": "0.2.0",
48
57
  "@paystage/velocity": "0.2.0",
49
58
  "zod": "^4.6.7"
@@ -54,7 +63,7 @@
54
63
  "vitest": "^4.1.12"
55
64
  },
56
65
  "scripts": {
57
- "build": "tsc",
66
+ "build": "tsc && chmod +x dist/cli.js dist/verify-cli.js",
58
67
  "test": "vitest run",
59
68
  "typecheck": "tsc --noEmit",
60
69
  "prepublishOnly": "npm run build"
package/server.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
- "name": "xyz.paystage/mcp",
3
+ "name": "io.github.base-buzz/mcp",
4
4
  "title": "PayStage",
5
5
  "description": "Umbrella MCP: payment preflight, auth watch, HIP-3 trade preflight, velocity checks",
6
- "version": "0.3.2",
6
+ "version": "0.3.4",
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/mcp",
18
- "version": "0.3.2",
18
+ "version": "0.3.4",
19
19
  "transport": {
20
20
  "type": "stdio"
21
21
  },