@kumply/mcp 0.0.0-stage → 0.1.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/LICENSE +216 -0
- package/NOTICE +34 -0
- package/README.md +97 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/server.d.ts +24 -0
- package/dist/server.js +163 -0
- package/dist/server.js.map +1 -0
- package/package.json +57 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
203
|
+
|
|
204
|
+
Copyright 2026 KUMPLY Protocol
|
|
205
|
+
|
|
206
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
207
|
+
you may not use this file except in compliance with the License.
|
|
208
|
+
You may obtain a copy of the License at
|
|
209
|
+
|
|
210
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
211
|
+
|
|
212
|
+
Unless required by applicable law or agreed to in writing, software
|
|
213
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
214
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
215
|
+
See the License for the specific language governing permissions and
|
|
216
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
KUMPLY Protocol
|
|
2
|
+
Copyright 2026 KUMPLY Protocol
|
|
3
|
+
|
|
4
|
+
This product includes software developed by the KUMPLY Protocol contributors.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0. See the LICENSE file for terms.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
Third-party components (installed as dependencies, not bundled):
|
|
11
|
+
|
|
12
|
+
- @kumply/sdk (Apache License 2.0)
|
|
13
|
+
https://github.com/kumplyprotocol/Kumply/tree/main/packages/sdk
|
|
14
|
+
|
|
15
|
+
- MCP TypeScript SDK, @modelcontextprotocol/sdk (MIT License)
|
|
16
|
+
https://github.com/modelcontextprotocol/typescript-sdk
|
|
17
|
+
|
|
18
|
+
- zod (MIT License)
|
|
19
|
+
https://github.com/colinhacks/zod
|
|
20
|
+
|
|
21
|
+
- viem (MIT License), through @kumply/sdk
|
|
22
|
+
https://github.com/wevm/viem
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
Trademark notice:
|
|
27
|
+
|
|
28
|
+
AVALANCHE(R) and AVAX(R) are trademarks of Ava Labs, Inc. KUMPLY is an
|
|
29
|
+
independent project and is not endorsed by, sponsored by, or affiliated with
|
|
30
|
+
Ava Labs, Inc. or the Avalanche Foundation.
|
|
31
|
+
|
|
32
|
+
This License does not grant permission to use the trade names, trademarks,
|
|
33
|
+
service marks, or product names of KUMPLY Protocol, except as required for
|
|
34
|
+
reasonable and customary use in describing the origin of the work.
|
package/README.md
CHANGED
|
@@ -1,3 +1,98 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @kumply/mcp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[Model Context Protocol](https://modelcontextprotocol.io) server that lets an AI assistant or agent read KUMPLY
|
|
4
|
+
KYC, KYB and KYA attestations on the AVALANCHE® public blockchain.
|
|
5
|
+
|
|
6
|
+
It only reads. It never asks for a private key, never signs and never issues an attestation. Every tool is marked
|
|
7
|
+
`readOnlyHint: true`. It is a thin wrapper around [`@kumply/sdk`](https://www.npmjs.com/package/@kumply/sdk).
|
|
8
|
+
|
|
9
|
+
## Setup
|
|
10
|
+
|
|
11
|
+
Node.js 18 or later. The server talks over stdio.
|
|
12
|
+
|
|
13
|
+
**Claude Code**
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
claude mcp add kumply -- npx -y @kumply/mcp
|
|
17
|
+
# testnet data instead of mainnet
|
|
18
|
+
claude mcp add kumply -e KUMPLY_NETWORK=fuji -- npx -y @kumply/mcp
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
**Claude Desktop, Cursor and other clients** that use an `mcpServers` config:
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"mcpServers": {
|
|
26
|
+
"kumply": {
|
|
27
|
+
"command": "npx",
|
|
28
|
+
"args": ["-y", "@kumply/mcp"],
|
|
29
|
+
"env": { "KUMPLY_NETWORK": "mainnet" }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
| Environment variable | Meaning |
|
|
36
|
+
| --- | --- |
|
|
37
|
+
| `KUMPLY_NETWORK` | `mainnet` (default) or `fuji`. Used when a tool call does not pass `network`. |
|
|
38
|
+
| `KUMPLY_RPC_URL` | Optional. Your own RPC endpoint for every read. |
|
|
39
|
+
|
|
40
|
+
## Tools
|
|
41
|
+
|
|
42
|
+
| Tool | What it returns |
|
|
43
|
+
| --- | --- |
|
|
44
|
+
| `verify_address` | Whether an address is verified, its tier and category, issue and expiry dates, and the verifier |
|
|
45
|
+
| `check_requirement` | `passes: true/false` for `person` (with `min_level` 1-3), `business` or `agent` |
|
|
46
|
+
| `network_stats` | Total attestations issued and the current read fee in wei |
|
|
47
|
+
| `list_tiers` | The five tiers, their category and the checks each one requires |
|
|
48
|
+
| `get_deployments` | The KUMPLY contract addresses on mainnet and Fuji |
|
|
49
|
+
|
|
50
|
+
`verify_address`, `check_requirement` and `network_stats` take an optional `network` (`mainnet` or `fuji`).
|
|
51
|
+
|
|
52
|
+
Example `check_requirement` result on Fuji, with the seeded demo business used on
|
|
53
|
+
[kumply.xyz/demo](https://kumply.xyz/demo) and `requirement: "business"`:
|
|
54
|
+
|
|
55
|
+
```json
|
|
56
|
+
{
|
|
57
|
+
"network": "fuji",
|
|
58
|
+
"chainId": 43113,
|
|
59
|
+
"address": "0xD65042534CE80fcb641fd6Eb99a16eBF6C0cd076",
|
|
60
|
+
"verified": true,
|
|
61
|
+
"tier": 4,
|
|
62
|
+
"tierName": "Business",
|
|
63
|
+
"category": "business",
|
|
64
|
+
"issuedAt": "2026-07-17T01:21:21.000Z",
|
|
65
|
+
"expiresAt": "2027-07-17T01:21:12.000Z",
|
|
66
|
+
"verifier": "0xD65042534CE80fcb641fd6Eb99a16eBF6C0cd076",
|
|
67
|
+
"requirement": { "kind": "business" },
|
|
68
|
+
"passes": true
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Tier rules
|
|
73
|
+
|
|
74
|
+
Tiers 1-3 are a ladder for people: Basic, Standard, Enhanced. Tier 4 (business, KYB) and Tier 5 (AI agent, KYA)
|
|
75
|
+
are separate categories, not higher levels. A business or an agent never passes a `person` check.
|
|
76
|
+
|
|
77
|
+
`verified: false` means the attestation was never issued, has expired, or was revoked. The contract does not
|
|
78
|
+
tell these three cases apart.
|
|
79
|
+
|
|
80
|
+
## Networks
|
|
81
|
+
|
|
82
|
+
Mainnet C-Chain runs as a read-only beta with a read fee of 0. Fuji hosts the full flow and has test
|
|
83
|
+
attestations. The KUMPLY L1 is registered on Fuji but not activated, so this server does not offer it yet.
|
|
84
|
+
|
|
85
|
+
Attestations are public on-chain data: address, tier, timestamps and the verifier. They are not private and
|
|
86
|
+
they are not a token.
|
|
87
|
+
|
|
88
|
+
## Use from code
|
|
89
|
+
|
|
90
|
+
```ts
|
|
91
|
+
import { createServer } from "@kumply/mcp";
|
|
92
|
+
const server = createServer({ defaultNetwork: "fuji" });
|
|
93
|
+
// connect it to any MCP transport
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## License
|
|
97
|
+
|
|
98
|
+
Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
|
+
import { createServer } from "./server.js";
|
|
4
|
+
const network = process.env.KUMPLY_NETWORK ?? "mainnet";
|
|
5
|
+
if (network !== "mainnet" && network !== "fuji") {
|
|
6
|
+
// stdout carries the MCP protocol, so diagnostics go to stderr only.
|
|
7
|
+
console.error(`kumply-mcp: KUMPLY_NETWORK must be "mainnet" or "fuji" (got "${network}")`);
|
|
8
|
+
process.exit(2);
|
|
9
|
+
}
|
|
10
|
+
const server = createServer({
|
|
11
|
+
defaultNetwork: network,
|
|
12
|
+
rpcUrl: process.env.KUMPLY_RPC_URL || undefined,
|
|
13
|
+
});
|
|
14
|
+
await server.connect(new StdioServerTransport());
|
|
15
|
+
console.error(`kumply-mcp: ready (read-only, default network ${network})`);
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,YAAY,EAAgB,MAAM,aAAa,CAAC;AAEzD,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,SAAS,CAAC;AACxD,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;IAChD,qEAAqE;IACrE,OAAO,CAAC,KAAK,CAAC,gEAAgE,OAAO,IAAI,CAAC,CAAC;IAC3F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,MAAM,MAAM,GAAG,YAAY,CAAC;IAC1B,cAAc,EAAE,OAAkB;IAClC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,SAAS;CAChD,CAAC,CAAC;AAEH,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,oBAAoB,EAAE,CAAC,CAAC;AACjD,OAAO,CAAC,KAAK,CAAC,iDAAiD,OAAO,GAAG,CAAC,CAAC"}
|
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
import type { AttestationResult } from "@kumply/sdk";
|
|
3
|
+
/** Networks this server reads from. The KUMPLY L1 is left out until it is activated. */
|
|
4
|
+
export type Network = "mainnet" | "fuji";
|
|
5
|
+
/** The read-only subset of KumplyClient this server uses. Nothing here signs or writes. */
|
|
6
|
+
export interface ReadClient {
|
|
7
|
+
verify(address: string): Promise<AttestationResult>;
|
|
8
|
+
getAttestation(address: string): Promise<{
|
|
9
|
+
verifier: string;
|
|
10
|
+
} | null>;
|
|
11
|
+
getTotalAttestations(): Promise<number>;
|
|
12
|
+
getVerificationFee(): Promise<bigint>;
|
|
13
|
+
}
|
|
14
|
+
export type ClientFactory = (network: Network, rpcUrl?: string) => ReadClient;
|
|
15
|
+
export declare const defaultClientFactory: ClientFactory;
|
|
16
|
+
export interface ServerOptions {
|
|
17
|
+
/** Network used when a tool call does not pass one. Default: mainnet. */
|
|
18
|
+
defaultNetwork?: Network;
|
|
19
|
+
/** Optional RPC endpoint override, applied to every read. */
|
|
20
|
+
rpcUrl?: string;
|
|
21
|
+
/** Injected for tests. Defaults to a real KumplyClient per network. */
|
|
22
|
+
clientFactory?: ClientFactory;
|
|
23
|
+
}
|
|
24
|
+
export declare function createServer(options?: ServerOptions): McpServer;
|
package/dist/server.js
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { KumplyClient, DEPLOYMENTS, FUJI_CONFIG, MAINNET_CONFIG, TIER_DEFINITIONS, meetsTierRequirement, } from "@kumply/sdk";
|
|
5
|
+
export const defaultClientFactory = (network, rpcUrl) => new KumplyClient({
|
|
6
|
+
network,
|
|
7
|
+
rpcUrl,
|
|
8
|
+
contractAddress: DEPLOYMENTS[network].attestationStore,
|
|
9
|
+
});
|
|
10
|
+
const require = createRequire(import.meta.url);
|
|
11
|
+
const VERSION = require("../package.json").version;
|
|
12
|
+
const READ_ONLY = { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true };
|
|
13
|
+
const TIER_RULES = "Tiers 1-3 are a ladder for people (Basic, Standard, Enhanced). Tier 4 (business, KYB) and Tier 5 " +
|
|
14
|
+
"(AI agent, KYA) are separate categories, not higher levels: a business or an agent never passes a person check. " +
|
|
15
|
+
"Attestations are public on-chain data (address, tier, timestamps, verifier); they are not private and not a token.";
|
|
16
|
+
const addressSchema = z
|
|
17
|
+
.string()
|
|
18
|
+
.regex(/^0x[0-9a-fA-F]{40}$/, "must be a 0x-prefixed 20-byte EVM address")
|
|
19
|
+
.describe("EVM address to look up. For ERC-4337 smart accounts, pass the smart account itself, not its owner EOA.");
|
|
20
|
+
const networkSchema = z
|
|
21
|
+
.enum(["mainnet", "fuji"])
|
|
22
|
+
.optional()
|
|
23
|
+
.describe("Avalanche C-Chain network. mainnet is the real network; fuji is the testnet with test data.");
|
|
24
|
+
function categoryOf(tier) {
|
|
25
|
+
if (tier >= 1 && tier <= 3)
|
|
26
|
+
return "person";
|
|
27
|
+
if (tier === 4)
|
|
28
|
+
return "business";
|
|
29
|
+
if (tier === 5)
|
|
30
|
+
return "agent";
|
|
31
|
+
return "none";
|
|
32
|
+
}
|
|
33
|
+
function isoOrNull(seconds) {
|
|
34
|
+
return seconds > 0 ? new Date(seconds * 1000).toISOString() : null;
|
|
35
|
+
}
|
|
36
|
+
function json(value) {
|
|
37
|
+
return { content: [{ type: "text", text: JSON.stringify(value, null, 2) }] };
|
|
38
|
+
}
|
|
39
|
+
function failure(err) {
|
|
40
|
+
return {
|
|
41
|
+
isError: true,
|
|
42
|
+
content: [{ type: "text", text: err instanceof Error ? err.message : String(err) }],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function createServer(options = {}) {
|
|
46
|
+
const factory = options.clientFactory ?? defaultClientFactory;
|
|
47
|
+
const defaultNetwork = options.defaultNetwork ?? "mainnet";
|
|
48
|
+
const clients = new Map();
|
|
49
|
+
const clientFor = (network) => {
|
|
50
|
+
let client = clients.get(network);
|
|
51
|
+
if (!client) {
|
|
52
|
+
client = factory(network, options.rpcUrl);
|
|
53
|
+
clients.set(network, client);
|
|
54
|
+
}
|
|
55
|
+
return client;
|
|
56
|
+
};
|
|
57
|
+
async function lookup(address, network) {
|
|
58
|
+
const config = network === "mainnet" ? MAINNET_CONFIG : FUJI_CONFIG;
|
|
59
|
+
const client = clientFor(network);
|
|
60
|
+
const result = await client.verify(address);
|
|
61
|
+
const attestation = result.verified ? await client.getAttestation(address) : null;
|
|
62
|
+
return {
|
|
63
|
+
network,
|
|
64
|
+
chainId: config.chainId,
|
|
65
|
+
address,
|
|
66
|
+
verified: result.verified,
|
|
67
|
+
tier: result.tier,
|
|
68
|
+
tierName: result.verified ? TIER_DEFINITIONS.find((t) => t.tier === result.tier)?.name ?? null : null,
|
|
69
|
+
category: result.verified ? categoryOf(result.tier) : "none",
|
|
70
|
+
issuedAt: isoOrNull(result.timestamp),
|
|
71
|
+
expiresAt: isoOrNull(result.expiry),
|
|
72
|
+
verifier: attestation?.verifier ?? null,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
const server = new McpServer({ name: "kumply", version: VERSION });
|
|
76
|
+
server.registerTool("verify_address", {
|
|
77
|
+
title: "Look up a KUMPLY attestation",
|
|
78
|
+
description: "Read the KUMPLY attestation for an address on Avalanche C-Chain: whether it is verified, its tier and " +
|
|
79
|
+
"category, issue and expiry dates, and the verifier. verified=false means never issued, expired or revoked " +
|
|
80
|
+
"(the three are indistinguishable). " +
|
|
81
|
+
TIER_RULES,
|
|
82
|
+
inputSchema: { address: addressSchema, network: networkSchema },
|
|
83
|
+
annotations: READ_ONLY,
|
|
84
|
+
}, async ({ address, network }) => {
|
|
85
|
+
try {
|
|
86
|
+
return json(await lookup(address, network ?? defaultNetwork));
|
|
87
|
+
}
|
|
88
|
+
catch (err) {
|
|
89
|
+
return failure(err);
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
server.registerTool("check_requirement", {
|
|
93
|
+
title: "Check an address against a KUMPLY requirement",
|
|
94
|
+
description: "Answer yes or no: does this address hold a valid KUMPLY attestation that meets the requirement? " +
|
|
95
|
+
"requirement=person needs min_level 1-3 and passes for a person at that level or higher. " +
|
|
96
|
+
"requirement=business passes only for Tier 4. requirement=agent passes only for Tier 5. " +
|
|
97
|
+
TIER_RULES,
|
|
98
|
+
inputSchema: {
|
|
99
|
+
address: addressSchema,
|
|
100
|
+
requirement: z.enum(["person", "business", "agent"]).describe("Which category the address must belong to."),
|
|
101
|
+
min_level: z
|
|
102
|
+
.number()
|
|
103
|
+
.int()
|
|
104
|
+
.min(1)
|
|
105
|
+
.max(3)
|
|
106
|
+
.optional()
|
|
107
|
+
.describe("Required for requirement=person: minimum KYC level, 1 Basic, 2 Standard, 3 Enhanced."),
|
|
108
|
+
network: networkSchema,
|
|
109
|
+
},
|
|
110
|
+
annotations: READ_ONLY,
|
|
111
|
+
}, async ({ address, requirement, min_level, network }) => {
|
|
112
|
+
let req;
|
|
113
|
+
if (requirement === "person") {
|
|
114
|
+
if (min_level === undefined)
|
|
115
|
+
return failure("min_level (1, 2 or 3) is required when requirement is person.");
|
|
116
|
+
req = { kind: "person", minLevel: min_level };
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
if (min_level !== undefined)
|
|
120
|
+
return failure("min_level only applies when requirement is person.");
|
|
121
|
+
req = { kind: requirement };
|
|
122
|
+
}
|
|
123
|
+
try {
|
|
124
|
+
const found = await lookup(address, network ?? defaultNetwork);
|
|
125
|
+
const passes = found.verified && meetsTierRequirement(found.tier, req);
|
|
126
|
+
return json({ ...found, requirement: req, passes });
|
|
127
|
+
}
|
|
128
|
+
catch (err) {
|
|
129
|
+
return failure(err);
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
server.registerTool("network_stats", {
|
|
133
|
+
title: "KUMPLY network stats",
|
|
134
|
+
description: "Total attestations ever issued on a network and the current per-read verification fee in wei (0 means reads are free).",
|
|
135
|
+
inputSchema: { network: networkSchema },
|
|
136
|
+
annotations: READ_ONLY,
|
|
137
|
+
}, async ({ network }) => {
|
|
138
|
+
const net = network ?? defaultNetwork;
|
|
139
|
+
try {
|
|
140
|
+
const client = clientFor(net);
|
|
141
|
+
const [total, fee] = await Promise.all([client.getTotalAttestations(), client.getVerificationFee()]);
|
|
142
|
+
const config = net === "mainnet" ? MAINNET_CONFIG : FUJI_CONFIG;
|
|
143
|
+
return json({ network: net, chainId: config.chainId, totalAttestations: total, verificationFeeWei: fee.toString() });
|
|
144
|
+
}
|
|
145
|
+
catch (err) {
|
|
146
|
+
return failure(err);
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
server.registerTool("list_tiers", {
|
|
150
|
+
title: "List KUMPLY tiers",
|
|
151
|
+
description: "The five KUMPLY tiers, their category and the checks each one requires. " + TIER_RULES,
|
|
152
|
+
inputSchema: {},
|
|
153
|
+
annotations: { ...READ_ONLY, openWorldHint: false },
|
|
154
|
+
}, async () => json(TIER_DEFINITIONS.map((t) => ({ ...t, category: categoryOf(t.tier) }))));
|
|
155
|
+
server.registerTool("get_deployments", {
|
|
156
|
+
title: "KUMPLY contract addresses",
|
|
157
|
+
description: "The source-verified KUMPLY contract addresses on Avalanche mainnet and Fuji that this server reads from.",
|
|
158
|
+
inputSchema: {},
|
|
159
|
+
annotations: { ...READ_ONLY, openWorldHint: false },
|
|
160
|
+
}, async () => json(DEPLOYMENTS));
|
|
161
|
+
return server;
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=server.js.map
|
|
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59 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kumply/mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Read-only MCP server that lets AI agents check KUMPLY KYC/KYB/KYA attestations on the AVALANCHE® public blockchain",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"kumply-mcp": "dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"main": "dist/server.js",
|
|
10
|
+
"types": "dist/server.d.ts",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"author": "KUMPLY Team",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/kumplyprotocol/Kumply.git",
|
|
16
|
+
"directory": "packages/mcp"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://kumply.xyz/developers",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/kumplyprotocol/Kumply/issues"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"kumply",
|
|
24
|
+
"avalanche",
|
|
25
|
+
"kyc",
|
|
26
|
+
"kyb",
|
|
27
|
+
"kya",
|
|
28
|
+
"compliance",
|
|
29
|
+
"attestation",
|
|
30
|
+
"mcp",
|
|
31
|
+
"model-context-protocol"
|
|
32
|
+
],
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"README.md",
|
|
36
|
+
"LICENSE",
|
|
37
|
+
"NOTICE"
|
|
38
|
+
],
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsc",
|
|
44
|
+
"test": "vitest run"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@kumply/sdk": "^1.4.1",
|
|
48
|
+
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
49
|
+
"zod": "^3.25.0"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/node": "^20.17.0",
|
|
53
|
+
"typescript": "^5.7.3",
|
|
54
|
+
"vitest": "^3.1.0"
|
|
55
|
+
},
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": ">=18"
|
|
58
|
+
}
|
|
59
|
+
}
|