@kite-01/mcp 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +85 -2
- package/dist/index.mjs +5258 -0
- package/package.json +36 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kite 01
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,86 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @kite-01/mcp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[MCP](https://modelcontextprotocol.io) server for a [Kite](https://github.com/Kite-01/server) server. It runs on your machine over stdio, holds your API key and signs every request with [`@kite-01/sdk`](../sdk), so an assistant such as Claude can create and look up payment links without the key leaving your machine.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npx @kite-01/mcp
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Needs Node 20+.
|
|
10
|
+
|
|
11
|
+
## Configure
|
|
12
|
+
|
|
13
|
+
| Variable | Value |
|
|
14
|
+
| ------------------ | --------------------------------------------------- |
|
|
15
|
+
| `KITE_BASE_URL` | Your Kite server, such as `https://pay.example.com` |
|
|
16
|
+
| `KITE_API_KEY_ID` | An API key's id |
|
|
17
|
+
| `KITE_PRIVATE_KEY` | That key's Ed25519 private key |
|
|
18
|
+
| `KITE_ROOT_KEY` | Instead of an API key: the server's root key |
|
|
19
|
+
| `KITE_APP_ID` | Optional, with `KITE_ROOT_KEY`: act as this app |
|
|
20
|
+
|
|
21
|
+
### Claude Desktop
|
|
22
|
+
|
|
23
|
+
Add the server to `claude_desktop_config.json` (Settings → Developer → Edit Config):
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"mcpServers": {
|
|
28
|
+
"kite": {
|
|
29
|
+
"command": "npx",
|
|
30
|
+
"args": ["-y", "@kite-01/mcp"],
|
|
31
|
+
"env": {
|
|
32
|
+
"KITE_BASE_URL": "https://pay.example.com",
|
|
33
|
+
"KITE_API_KEY_ID": "<api key id>",
|
|
34
|
+
"KITE_PRIVATE_KEY": "<private key>"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Claude Code
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
claude mcp add kite \
|
|
45
|
+
-e KITE_BASE_URL=https://pay.example.com \
|
|
46
|
+
-e KITE_API_KEY_ID=<api key id> \
|
|
47
|
+
-e KITE_PRIVATE_KEY=<private key> \
|
|
48
|
+
-- npx -y @kite-01/mcp
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Tools
|
|
52
|
+
|
|
53
|
+
Every operation in the Kite API is a tool, named after its SDK method in snake case: `kite.paymentLinks.create` is `payment_links_create`, `kite.transfers.refund` is `transfers_refund`, and so on for apps, API keys, chains, tokens, customers, fees, quotes, transfers, webhooks, x402 and the rest. The [API reference](https://docs.usekite.tech/api-reference) lists them all.
|
|
54
|
+
|
|
55
|
+
Each tool takes what its SDK method takes, `{ path, query, body }`, and returns the API's JSON, both as text and as `structuredContent`. Inputs and outputs are checked against the API's own schemas, generated from Kite's OpenAPI spec, and each tool publishes its output schema so the assistant knows the shape of the answer before calling it. `payment_links_create` also returns the link's `url`, its `/pay/<id>` page on your Kite server, to send to the customer.
|
|
56
|
+
|
|
57
|
+
Read-only tools are marked as such and deletes as destructive, so clients that ask before running a tool can tell them apart. A refused call comes back as a tool error with Kite's `status`, `code` and `message`.
|
|
58
|
+
|
|
59
|
+
The key's scopes are the only limit on what the assistant can do: with the root key it can do anything, including refunds, deleting apps and creating API keys. Give it an API key with only the scopes you're happy for it to use, such as `PaymentLink:Read` and `Transfer:Read` to look around.
|
|
60
|
+
|
|
61
|
+
## Resources
|
|
62
|
+
|
|
63
|
+
Data you can attach to a conversation from your client's menu, as JSON, without the assistant calling a tool:
|
|
64
|
+
|
|
65
|
+
| Resource | What it is |
|
|
66
|
+
| --------------------------- | ------------------------------------------------ |
|
|
67
|
+
| `kite://app` | The app the key belongs to |
|
|
68
|
+
| `kite://chains` | Chains the server takes payments on, with tokens |
|
|
69
|
+
| `kite://payment-links/{id}` | A payment link; the latest are listed by title |
|
|
70
|
+
| `kite://transfers/{id}` | A transfer, with its quote, timeline and payout |
|
|
71
|
+
|
|
72
|
+
Payment links and transfers the key can't see are left out of the list.
|
|
73
|
+
|
|
74
|
+
## Prompts
|
|
75
|
+
|
|
76
|
+
Ready-made requests you pick from your client's menu and fill in:
|
|
77
|
+
|
|
78
|
+
| Prompt | Asks |
|
|
79
|
+
| --------------------- | ------------------------------------------------------------------- |
|
|
80
|
+
| `create_payment_link` | Create a link from a title, amount, currency and optional reference |
|
|
81
|
+
| `explain_transfer` | Explain where a transfer is, and why it failed if it did |
|
|
82
|
+
| `find_order` | Find the payment link and transfers for one of your order ids |
|
|
83
|
+
|
|
84
|
+
## License
|
|
85
|
+
|
|
86
|
+
[MIT](https://github.com/Kite-01/monorepo/blob/main/LICENSE)
|