@payments-ai/mcp 1.6.0 → 1.12.3
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/main.http.js +1595 -18231
- package/dist/npx-help.js +30 -0
- package/package.json +18 -18
package/dist/npx-help.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/npx-help.ts
|
|
4
|
+
var MCP_HOSTED_URL = "https://managed.payments.ai/api/mcp";
|
|
5
|
+
var MCP_DOCS_URL = "https://doc.managed.payments.ai/mcp";
|
|
6
|
+
function formatNpxHelpMessage() {
|
|
7
|
+
return [
|
|
8
|
+
"Payments AI MCP is a hosted remote server (not a local CLI).",
|
|
9
|
+
"",
|
|
10
|
+
`Connect your client to: ${MCP_HOSTED_URL}`,
|
|
11
|
+
`Setup docs: ${MCP_DOCS_URL}`,
|
|
12
|
+
"",
|
|
13
|
+
"Generate a User MCP Key in the Payments AI dashboard, or use OAuth in supported clients.",
|
|
14
|
+
""
|
|
15
|
+
].join("\n");
|
|
16
|
+
}
|
|
17
|
+
function runNpxHelp(write = (chunk) => process.stdout.write(chunk)) {
|
|
18
|
+
write(formatNpxHelpMessage());
|
|
19
|
+
}
|
|
20
|
+
var isDirectRun = process.argv[1] !== void 0 && (process.argv[1].endsWith("npx-help.ts") || process.argv[1].endsWith("npx-help.js") || process.argv[1].endsWith("payments-ai-mcp"));
|
|
21
|
+
if (isDirectRun) {
|
|
22
|
+
runNpxHelp();
|
|
23
|
+
process.exit(0);
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
MCP_DOCS_URL,
|
|
27
|
+
MCP_HOSTED_URL,
|
|
28
|
+
formatNpxHelpMessage,
|
|
29
|
+
runNpxHelp
|
|
30
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payments-ai/mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "MCP for Payments AI",
|
|
6
6
|
"repository": {
|
|
@@ -9,33 +9,21 @@
|
|
|
9
9
|
"directory": "apps/mcp-server"
|
|
10
10
|
},
|
|
11
11
|
"bin": {
|
|
12
|
-
"payments-ai-mcp": "./dist/
|
|
12
|
+
"payments-ai-mcp": "./dist/npx-help.js"
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"type": "module",
|
|
18
|
-
"main": "dist/
|
|
18
|
+
"main": "dist/npx-help.js",
|
|
19
19
|
"publishConfig": {
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"start": "node dist/main.http.js",
|
|
24
|
-
"dev": "tsx watch src/main.http.ts",
|
|
25
|
-
"build": "node esbuild.config.mjs",
|
|
26
|
-
"build:types": "pnpm exec tsgo -p tsconfig.build.json",
|
|
27
|
-
"typecheck": "pnpm exec tsgo --noEmit -p tsconfig.json",
|
|
28
|
-
"lint": "oxlint .",
|
|
29
|
-
"lint:fix": "oxlint --fix .",
|
|
30
|
-
"test": "pnpm --filter @pai-managed/mcp-contracts build && tsx --test test/**/*.test.ts",
|
|
31
|
-
"clean": "rm -rf dist dist-types",
|
|
32
|
-
"prepublishOnly": "node scripts/assert-version-sync.mjs && pnpm --filter @pai-managed/mcp-contracts run build && pnpm run clean && pnpm run build"
|
|
33
|
-
},
|
|
34
22
|
"dependencies": {
|
|
35
23
|
"@modelcontextprotocol/express": "2.0.0",
|
|
36
24
|
"@modelcontextprotocol/node": "2.0.0",
|
|
37
25
|
"@modelcontextprotocol/server": "2.0.0",
|
|
38
|
-
"@sentry/node": "10.
|
|
26
|
+
"@sentry/node": "10.74.0",
|
|
39
27
|
"cors": "2.8.6",
|
|
40
28
|
"dotenv": "17.3.1",
|
|
41
29
|
"express": "5.2.1",
|
|
@@ -43,7 +31,7 @@
|
|
|
43
31
|
},
|
|
44
32
|
"devDependencies": {
|
|
45
33
|
"@modelcontextprotocol/client": "2.0.0",
|
|
46
|
-
"@pai-managed/mcp-contracts": "
|
|
34
|
+
"@pai-managed/mcp-contracts": "1.5.0",
|
|
47
35
|
"@tsconfig/node24": "24.0.4",
|
|
48
36
|
"@types/cors": "2.8.19",
|
|
49
37
|
"@types/express": "5.0.6",
|
|
@@ -54,5 +42,17 @@
|
|
|
54
42
|
},
|
|
55
43
|
"engines": {
|
|
56
44
|
"node": ">=24.16"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"start": "node dist/main.http.js",
|
|
48
|
+
"dev": "tsx watch src/main.http.ts",
|
|
49
|
+
"build": "node esbuild.config.mjs",
|
|
50
|
+
"build:types": "pnpm exec tsgo -p tsconfig.build.json",
|
|
51
|
+
"typecheck": "pnpm exec tsgo --noEmit -p tsconfig.json",
|
|
52
|
+
"lint": "oxlint .",
|
|
53
|
+
"lint:fix": "oxlint --fix .",
|
|
54
|
+
"test": "pnpm --filter @pai-managed/mcp-contracts build && tsx --test test/**/*.test.ts",
|
|
55
|
+
"e2e": "pnpm --filter @pai-managed/mcp-contracts build && tsx e2e/run-mcp-e2e.ts",
|
|
56
|
+
"clean": "rm -rf dist dist-types"
|
|
57
57
|
}
|
|
58
|
-
}
|
|
58
|
+
}
|