@brainerce/mcp-server 1.3.0 → 2.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/dist/bin/http.js +3655 -1308
- package/dist/bin/stdio.js +3655 -1308
- package/dist/index.d.mts +50 -1
- package/dist/index.d.ts +50 -1
- package/dist/index.js +3659 -1308
- package/dist/index.mjs +3657 -1308
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -39,4 +39,53 @@ interface StoreInfo {
|
|
|
39
39
|
}
|
|
40
40
|
declare function fetchStoreInfo(connectionId: string, baseUrl?: string): Promise<StoreInfo>;
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
interface StoreCapabilities {
|
|
43
|
+
store: {
|
|
44
|
+
name: string;
|
|
45
|
+
currency: string;
|
|
46
|
+
language: string;
|
|
47
|
+
};
|
|
48
|
+
connection: {
|
|
49
|
+
allowedScopes: string[];
|
|
50
|
+
ordersWriteEnabled: boolean;
|
|
51
|
+
guestCheckoutTracking: boolean;
|
|
52
|
+
requireEmailVerification: boolean;
|
|
53
|
+
reservationStrategy: string;
|
|
54
|
+
reservationTimeout: number;
|
|
55
|
+
lowStockWarning: boolean;
|
|
56
|
+
lowStockThreshold: number;
|
|
57
|
+
};
|
|
58
|
+
features: {
|
|
59
|
+
paymentProviders: Array<{
|
|
60
|
+
name: string;
|
|
61
|
+
provider: string;
|
|
62
|
+
}>;
|
|
63
|
+
oauthProviders: Array<{
|
|
64
|
+
provider: string;
|
|
65
|
+
isEnabled: boolean;
|
|
66
|
+
}>;
|
|
67
|
+
hasShippingZones: boolean;
|
|
68
|
+
hasDiscountRules: boolean;
|
|
69
|
+
hasDownloadableProducts: boolean;
|
|
70
|
+
hasCoupons: boolean;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
declare function fetchStoreCapabilities(connectionId: string, baseUrl?: string): Promise<StoreCapabilities>;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Compressed store bundle — all templates deduplicated and grouped
|
|
77
|
+
* for the `build-store` tool. Returns everything an AI needs to build
|
|
78
|
+
* a complete Brainerce store in a single response.
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
interface BuildBundleOptions {
|
|
82
|
+
connectionId: string;
|
|
83
|
+
storeName: string;
|
|
84
|
+
storeType: string;
|
|
85
|
+
currency: string;
|
|
86
|
+
storeStyle?: string;
|
|
87
|
+
capabilities?: StoreCapabilities | null;
|
|
88
|
+
}
|
|
89
|
+
declare function buildStoreBundle(options: BuildBundleOptions): string;
|
|
90
|
+
|
|
91
|
+
export { AVAILABLE_DOMAINS, type BuildBundleOptions, type BuildFullStorePromptOptions, PROJECT_TEMPLATE, buildFullStorePrompt, buildStoreBundle, createServer, fetchStoreCapabilities, fetchStoreInfo, getAllTypes, getSectionByTopic, getTypesByDomain };
|
package/dist/index.d.ts
CHANGED
|
@@ -39,4 +39,53 @@ interface StoreInfo {
|
|
|
39
39
|
}
|
|
40
40
|
declare function fetchStoreInfo(connectionId: string, baseUrl?: string): Promise<StoreInfo>;
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
interface StoreCapabilities {
|
|
43
|
+
store: {
|
|
44
|
+
name: string;
|
|
45
|
+
currency: string;
|
|
46
|
+
language: string;
|
|
47
|
+
};
|
|
48
|
+
connection: {
|
|
49
|
+
allowedScopes: string[];
|
|
50
|
+
ordersWriteEnabled: boolean;
|
|
51
|
+
guestCheckoutTracking: boolean;
|
|
52
|
+
requireEmailVerification: boolean;
|
|
53
|
+
reservationStrategy: string;
|
|
54
|
+
reservationTimeout: number;
|
|
55
|
+
lowStockWarning: boolean;
|
|
56
|
+
lowStockThreshold: number;
|
|
57
|
+
};
|
|
58
|
+
features: {
|
|
59
|
+
paymentProviders: Array<{
|
|
60
|
+
name: string;
|
|
61
|
+
provider: string;
|
|
62
|
+
}>;
|
|
63
|
+
oauthProviders: Array<{
|
|
64
|
+
provider: string;
|
|
65
|
+
isEnabled: boolean;
|
|
66
|
+
}>;
|
|
67
|
+
hasShippingZones: boolean;
|
|
68
|
+
hasDiscountRules: boolean;
|
|
69
|
+
hasDownloadableProducts: boolean;
|
|
70
|
+
hasCoupons: boolean;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
declare function fetchStoreCapabilities(connectionId: string, baseUrl?: string): Promise<StoreCapabilities>;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Compressed store bundle — all templates deduplicated and grouped
|
|
77
|
+
* for the `build-store` tool. Returns everything an AI needs to build
|
|
78
|
+
* a complete Brainerce store in a single response.
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
interface BuildBundleOptions {
|
|
82
|
+
connectionId: string;
|
|
83
|
+
storeName: string;
|
|
84
|
+
storeType: string;
|
|
85
|
+
currency: string;
|
|
86
|
+
storeStyle?: string;
|
|
87
|
+
capabilities?: StoreCapabilities | null;
|
|
88
|
+
}
|
|
89
|
+
declare function buildStoreBundle(options: BuildBundleOptions): string;
|
|
90
|
+
|
|
91
|
+
export { AVAILABLE_DOMAINS, type BuildBundleOptions, type BuildFullStorePromptOptions, PROJECT_TEMPLATE, buildFullStorePrompt, buildStoreBundle, createServer, fetchStoreCapabilities, fetchStoreInfo, getAllTypes, getSectionByTopic, getTypesByDomain };
|