@paybond/kit 0.3.0 → 0.5.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.
@@ -0,0 +1,50 @@
1
+ #!/usr/bin/env node
2
+ type JSONRPCID = string | number | null;
3
+ type JSONRPCRequest = {
4
+ jsonrpc?: unknown;
5
+ id?: JSONRPCID;
6
+ method?: unknown;
7
+ params?: unknown;
8
+ };
9
+ type JSONRPCResponse = {
10
+ jsonrpc: "2.0";
11
+ id: JSONRPCID;
12
+ result?: unknown;
13
+ error?: {
14
+ code: number;
15
+ message: string;
16
+ };
17
+ };
18
+ type MCPCallToolResult = {
19
+ content: Array<{
20
+ type: "text";
21
+ text: string;
22
+ }>;
23
+ structuredContent?: Record<string, unknown>;
24
+ isError?: boolean;
25
+ };
26
+ export type PaybondMCPSettings = {
27
+ gatewayBaseUrl: string;
28
+ apiKey: string;
29
+ harborBaseUrl?: string;
30
+ harborAccessPath?: string;
31
+ principalPath?: string;
32
+ maxRetries?: number;
33
+ clockSkewSeconds?: number;
34
+ };
35
+ export declare class PaybondMCPServer {
36
+ private readonly runtime;
37
+ private readonly tools;
38
+ private initialized;
39
+ constructor(settings: PaybondMCPSettings);
40
+ listTools(): Array<Record<string, unknown>>;
41
+ callTool(name: string, args?: Record<string, unknown>): Promise<MCPCallToolResult>;
42
+ handleMessage(message: JSONRPCRequest): Promise<JSONRPCResponse | null>;
43
+ runStdio(): void;
44
+ private handleLine;
45
+ private writeResponse;
46
+ private buildTools;
47
+ }
48
+ export declare function settingsFromEnv(env?: Record<string, string | undefined>): PaybondMCPSettings;
49
+ export declare function main(argv?: string[]): number;
50
+ export {};