@cmdoss/suipay-mcp 0.2.2-dev.4 → 0.2.2-dev.41

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.
@@ -1,39 +0,0 @@
1
- import {
2
- createServer,
3
- loadMcpConfig,
4
- loadPaymentProfile
5
- } from "./chunk-KDOGSB5I.js";
6
-
7
- // src/index.ts
8
- import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
9
- function loadBootProfile(load = loadPaymentProfile) {
10
- try {
11
- return { profile: load(), unreadable: false };
12
- } catch {
13
- return { profile: null, unreadable: true };
14
- }
15
- }
16
- async function main() {
17
- const cfg = loadMcpConfig();
18
- const { profile: bootProfile, unreadable: bootProfileUnreadable } = loadBootProfile();
19
- const server = createServer(cfg);
20
- await server.connect(new StdioServerTransport());
21
- if (bootProfileUnreadable) {
22
- console.error(
23
- "[suipay-mcp] credentials unreadable: run suipay_login or suipay_logout force=true \xB7 stdio ready"
24
- );
25
- } else if (bootProfile) {
26
- console.error(
27
- `[suipay-mcp] delegate ${bootProfile.creds.delegateAddress} (${bootProfile.source}) \xB7 stdio ready`
28
- );
29
- } else {
30
- console.error(
31
- "[suipay-mcp] not connected \xB7 run suipay_login \xB7 stdio ready"
32
- );
33
- }
34
- }
35
-
36
- export {
37
- loadBootProfile,
38
- main
39
- };