opedd-mcp 0.6.3 → 0.6.5
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/dist/index.d.ts +30 -0
- package/dist/index.js +546 -534
- package/dist/telemetry.d.ts +11 -0
- package/dist/version.d.ts +1 -0
- package/package.json +3 -2
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { type Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
3
|
+
export interface Credentials {
|
|
4
|
+
apiBase: string;
|
|
5
|
+
buyerEmail?: string;
|
|
6
|
+
paymentMethodId?: string;
|
|
7
|
+
/** canonical opedd_pub_<env>_<32-hex> key */
|
|
8
|
+
pubBearer?: string;
|
|
9
|
+
/** LEGACY op_<32-hex> — retiring per backend Phase C */
|
|
10
|
+
apiKey?: string;
|
|
11
|
+
/** buyer API token (opedd_buyer_live_/_test_) */
|
|
12
|
+
buyerToken?: string;
|
|
13
|
+
/** enterprise access key (ent_*) — /enterprise-license GET feed */
|
|
14
|
+
accessKey?: string;
|
|
15
|
+
/** Supabase JWT — buyer-audit + compliance + Article 53 surfaces */
|
|
16
|
+
buyerJwt?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function envCredentials(): Credentials;
|
|
19
|
+
type TextContent = {
|
|
20
|
+
type: "text";
|
|
21
|
+
text: string;
|
|
22
|
+
};
|
|
23
|
+
type ToolResult = {
|
|
24
|
+
content: TextContent[];
|
|
25
|
+
isError?: boolean;
|
|
26
|
+
};
|
|
27
|
+
export declare const TOOLS: Tool[];
|
|
28
|
+
export declare const ALL_TOOLS: Tool[];
|
|
29
|
+
export declare function dispatchTool(name: string, args: Record<string, unknown>, creds?: Credentials): Promise<ToolResult>;
|
|
30
|
+
export {};
|