linkpay-mcp 0.1.0 → 0.1.2
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 +40 -11
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,20 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="banner.svg" alt="LinkPay MCP Server" />
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://www.npmjs.com/package/linkpay-mcp"><img src="https://img.shields.io/npm/v/linkpay-mcp.svg" alt="npm version" /></a>
|
|
7
|
+
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /></a>
|
|
8
|
+
</p>
|
|
4
9
|
|
|
5
|
-
|
|
10
|
+
[MCP (Model Context Protocol)](https://modelcontextprotocol.io) server for [LinkPay](https://linkpay.io) — manage virtual cards directly from Claude, Cursor, Windsurf, and other AI assistants.
|
|
6
11
|
|
|
7
|
-
Issue cards, check balances, top up, view transactions — all through natural language
|
|
12
|
+
Issue cards, check balances, top up, view transactions — all through natural language. No dashboard needed.
|
|
8
13
|
|
|
9
14
|
## Quick start
|
|
10
15
|
|
|
11
16
|
### 1. Get your API key
|
|
12
17
|
|
|
13
|
-
|
|
18
|
+
Sign up at [linkpay.io](https://linkpay.io) and get your API key from the dashboard.
|
|
14
19
|
|
|
15
|
-
### 2.
|
|
20
|
+
### 2. Install
|
|
16
21
|
|
|
17
|
-
|
|
22
|
+
#### Claude Desktop
|
|
23
|
+
|
|
24
|
+
Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
|
|
18
25
|
|
|
19
26
|
```json
|
|
20
27
|
{
|
|
@@ -30,9 +37,9 @@ Edit `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
|
30
37
|
}
|
|
31
38
|
```
|
|
32
39
|
|
|
33
|
-
|
|
40
|
+
#### Cursor
|
|
34
41
|
|
|
35
|
-
|
|
42
|
+
Add to `.cursor/mcp.json` in your project or `~/.cursor/mcp.json` globally:
|
|
36
43
|
|
|
37
44
|
```json
|
|
38
45
|
{
|
|
@@ -48,7 +55,15 @@ Edit `.cursor/mcp.json` in your project or `~/.cursor/mcp.json` globally:
|
|
|
48
55
|
}
|
|
49
56
|
```
|
|
50
57
|
|
|
51
|
-
|
|
58
|
+
#### Claude Code (CLI)
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
claude mcp add linkpay -- npx -y linkpay-mcp
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Then set your API key in the environment or `.env` file.
|
|
65
|
+
|
|
66
|
+
### 3. Use it
|
|
52
67
|
|
|
53
68
|
Just ask your AI assistant:
|
|
54
69
|
|
|
@@ -80,16 +95,30 @@ Just ask your AI assistant:
|
|
|
80
95
|
| Variable | Required | Description |
|
|
81
96
|
|---|---|---|
|
|
82
97
|
| `LINKPAY_API_KEY` | Yes | Your LinkPay API key |
|
|
83
|
-
| `LINKPAY_BASE_URL` | No | API base URL (default: `https://
|
|
98
|
+
| `LINKPAY_BASE_URL` | No | API base URL (default: `https://b2b.linkpay.io/api/v1`) |
|
|
99
|
+
|
|
100
|
+
## Why use this?
|
|
101
|
+
|
|
102
|
+
If you're a developer paying for SaaS tools, running ad campaigns, or managing multiple cards — this lets you do it all from your IDE. No context switching to a dashboard.
|
|
103
|
+
|
|
104
|
+
**Works with:** Claude Desktop, Claude Code, Cursor, Windsurf, and any MCP-compatible client.
|
|
84
105
|
|
|
85
106
|
## Development
|
|
86
107
|
|
|
87
108
|
```bash
|
|
109
|
+
git clone https://github.com/pnplsrcrr/linkpay-mcp.git
|
|
110
|
+
cd linkpay-mcp
|
|
88
111
|
npm install
|
|
89
112
|
npm run build
|
|
90
113
|
npm start
|
|
91
114
|
```
|
|
92
115
|
|
|
116
|
+
## Links
|
|
117
|
+
|
|
118
|
+
- [LinkPay](https://linkpay.io) — Virtual card issuing platform
|
|
119
|
+
- [MCP Protocol](https://modelcontextprotocol.io) — Model Context Protocol spec
|
|
120
|
+
- [npm package](https://www.npmjs.com/package/linkpay-mcp)
|
|
121
|
+
|
|
93
122
|
## License
|
|
94
123
|
|
|
95
124
|
MIT
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
|
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { LinkPayClient, LinkPayError } from "./linkpay-client.js";
|
|
6
6
|
const API_KEY = process.env.LINKPAY_API_KEY;
|
|
7
|
-
const BASE_URL = process.env.LINKPAY_BASE_URL || "https://
|
|
7
|
+
const BASE_URL = process.env.LINKPAY_BASE_URL || "https://b2b.linkpay.io/api/v1";
|
|
8
8
|
if (!API_KEY) {
|
|
9
9
|
console.error("LINKPAY_API_KEY environment variable is required");
|
|
10
10
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linkpay-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "MCP server for LinkPay card management — issue, manage, and monitor virtual cards from Claude, Cursor, and other AI assistants",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"type": "git",
|
|
16
16
|
"url": "https://github.com/pnplsrcrr/linkpay-mcp.git"
|
|
17
17
|
},
|
|
18
|
-
"homepage": "https://
|
|
18
|
+
"homepage": "https://linkpay.io",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "tsc",
|
|
21
21
|
"dev": "tsc --watch",
|