@buzzposter/mcp 0.3.2 → 0.3.4
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/assets-gallery.html +272 -0
- package/dist/image-preview.html +264 -0
- package/dist/index.js +3158 -3287
- package/dist/newsletter-studio.html +245 -0
- package/dist/post-preview.html +537 -0
- package/dist/tools.d.ts +32 -21
- package/dist/tools.js +3137 -3260
- package/package.json +3 -21
- package/dist/newsletter-assets/assets/module-RjUF93sV.js +0 -716
- package/dist/newsletter-assets/assets/native-48B9X9Wg.js +0 -1
- package/dist/newsletter-assets/newsletter-studio.css +0 -1
- package/dist/newsletter-assets/newsletter-studio.html +0 -13
- package/dist/newsletter-assets/newsletter-studio.js +0 -641
package/dist/tools.d.ts
CHANGED
|
@@ -3,9 +3,11 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
|
3
3
|
declare class BuzzPosterClient {
|
|
4
4
|
private baseUrl;
|
|
5
5
|
private apiKey;
|
|
6
|
+
private organizationId?;
|
|
6
7
|
constructor(config: {
|
|
7
8
|
baseUrl: string;
|
|
8
9
|
apiKey: string;
|
|
10
|
+
organizationId?: string;
|
|
9
11
|
});
|
|
10
12
|
request<T = unknown>(method: string, path: string, body?: unknown, query?: Record<string, string>): Promise<T>;
|
|
11
13
|
getAccount(): Promise<unknown>;
|
|
@@ -16,6 +18,7 @@ declare class BuzzPosterClient {
|
|
|
16
18
|
getPost(id: string): Promise<unknown>;
|
|
17
19
|
updatePost(id: string, data: Record<string, unknown>): Promise<unknown>;
|
|
18
20
|
deletePost(id: string): Promise<unknown>;
|
|
21
|
+
retryPost(id: string): Promise<unknown>;
|
|
19
22
|
getAnalytics(params?: Record<string, string>): Promise<unknown>;
|
|
20
23
|
listConversations(params?: Record<string, string>): Promise<unknown>;
|
|
21
24
|
getConversation(id: string): Promise<unknown>;
|
|
@@ -31,8 +34,6 @@ declare class BuzzPosterClient {
|
|
|
31
34
|
}): Promise<unknown>;
|
|
32
35
|
listMedia(): Promise<unknown>;
|
|
33
36
|
deleteMedia(key: string): Promise<unknown>;
|
|
34
|
-
createPreview(data: Record<string, unknown>): Promise<unknown>;
|
|
35
|
-
updatePreview(id: string, data: Record<string, unknown>): Promise<unknown>;
|
|
36
37
|
listSubscribers(params?: Record<string, string>): Promise<unknown>;
|
|
37
38
|
addSubscriber(data: Record<string, unknown>): Promise<unknown>;
|
|
38
39
|
listBroadcasts(params?: Record<string, string>): Promise<unknown>;
|
|
@@ -83,6 +84,7 @@ declare class BuzzPosterClient {
|
|
|
83
84
|
deleteSource(id: number): Promise<unknown>;
|
|
84
85
|
checkSource(id: number): Promise<unknown>;
|
|
85
86
|
getPublishingRules(): Promise<unknown>;
|
|
87
|
+
updatePublishingRules(data: Record<string, unknown>): Promise<unknown>;
|
|
86
88
|
ghostSetup(data: Record<string, unknown>): Promise<unknown>;
|
|
87
89
|
ghostCreatePost(data: Record<string, unknown>): Promise<unknown>;
|
|
88
90
|
ghostUpdatePost(id: string, data: Record<string, unknown>): Promise<unknown>;
|
|
@@ -108,44 +110,53 @@ declare class BuzzPosterClient {
|
|
|
108
110
|
wpListCategories(): Promise<unknown>;
|
|
109
111
|
wpListTags(): Promise<unknown>;
|
|
110
112
|
wpCreatePage(data: Record<string, unknown>): Promise<unknown>;
|
|
113
|
+
listImageTemplates(): Promise<unknown>;
|
|
114
|
+
generateImages(templateId: string, data: Record<string, unknown>): Promise<unknown>;
|
|
115
|
+
listImageFormats(): Promise<unknown>;
|
|
116
|
+
getContext(params?: Record<string, string>): Promise<unknown>;
|
|
117
|
+
aiGenerateNewsletter(data: Record<string, unknown>): Promise<any>;
|
|
118
|
+
aiTransformArticle(data: Record<string, unknown>): Promise<unknown>;
|
|
119
|
+
listTeamMembers(): Promise<unknown>;
|
|
120
|
+
inviteTeamMember(data: {
|
|
121
|
+
email: string;
|
|
122
|
+
role: string;
|
|
123
|
+
}): Promise<unknown>;
|
|
124
|
+
removeTeamMember(id: string): Promise<unknown>;
|
|
125
|
+
listTeamInvitations(): Promise<unknown>;
|
|
126
|
+
revokeTeamInvitation(id: string): Promise<unknown>;
|
|
127
|
+
listOrganizations(): Promise<unknown>;
|
|
111
128
|
}
|
|
112
129
|
|
|
113
130
|
declare function registerPostTools(server: McpServer, client: BuzzPosterClient): void;
|
|
114
131
|
|
|
115
|
-
declare function
|
|
116
|
-
|
|
117
|
-
declare function registerAnalyticsTools(server: McpServer, client: BuzzPosterClient): void;
|
|
118
|
-
|
|
119
|
-
declare function registerInboxTools(server: McpServer, client: BuzzPosterClient): void;
|
|
132
|
+
declare function registerInsightsTools(server: McpServer, client: BuzzPosterClient): void;
|
|
120
133
|
|
|
121
134
|
declare function registerMediaTools(server: McpServer, client: BuzzPosterClient): void;
|
|
122
135
|
|
|
123
|
-
interface NewsletterToolOptions {
|
|
124
|
-
allowDirectSend?: boolean;
|
|
125
|
-
apiUrl?: string;
|
|
126
|
-
}
|
|
127
|
-
declare function registerNewsletterTools(server: McpServer, client: BuzzPosterClient, options?: NewsletterToolOptions): void;
|
|
128
|
-
|
|
129
|
-
declare function registerNewsletterAdvancedTools(server: McpServer, client: BuzzPosterClient): void;
|
|
130
|
-
|
|
131
136
|
declare function registerRssTools(server: McpServer, client: BuzzPosterClient): void;
|
|
132
137
|
|
|
133
|
-
declare function
|
|
138
|
+
declare function registerAccountTools(server: McpServer, client: BuzzPosterClient): void;
|
|
134
139
|
|
|
135
140
|
declare function registerBrandVoiceTools(server: McpServer, client: BuzzPosterClient): void;
|
|
136
141
|
|
|
137
142
|
declare function registerAudienceTools(server: McpServer, client: BuzzPosterClient): void;
|
|
138
143
|
|
|
139
|
-
declare function registerNewsletterTemplateTools(server: McpServer, client: BuzzPosterClient): void;
|
|
140
|
-
|
|
141
144
|
declare function registerCalendarTools(server: McpServer, client: BuzzPosterClient): void;
|
|
142
145
|
|
|
143
|
-
declare function registerNotificationTools(server: McpServer, client: BuzzPosterClient): void;
|
|
144
|
-
|
|
145
146
|
declare function registerSourceTools(server: McpServer, client: BuzzPosterClient): void;
|
|
146
147
|
|
|
147
148
|
declare function registerWordPressTools(server: McpServer, client: BuzzPosterClient): void;
|
|
148
149
|
|
|
149
150
|
declare function registerGhostTools(server: McpServer, client: BuzzPosterClient): void;
|
|
150
151
|
|
|
151
|
-
|
|
152
|
+
declare function registerImageTemplateTools(server: McpServer, client: BuzzPosterClient): void;
|
|
153
|
+
|
|
154
|
+
declare function registerPublishingRulesTools(server: McpServer, client: BuzzPosterClient): void;
|
|
155
|
+
|
|
156
|
+
declare function registerContextTools(server: McpServer, client: BuzzPosterClient): void;
|
|
157
|
+
|
|
158
|
+
declare function registerTeamTools(server: McpServer, client: BuzzPosterClient): void;
|
|
159
|
+
|
|
160
|
+
declare function registerPostPreviewResource(server: McpServer): void;
|
|
161
|
+
|
|
162
|
+
export { BuzzPosterClient, registerAccountTools, registerAudienceTools, registerBrandVoiceTools, registerCalendarTools, registerContextTools, registerGhostTools, registerImageTemplateTools, registerInsightsTools, registerMediaTools, registerPostPreviewResource, registerPostTools, registerPublishingRulesTools, registerRssTools, registerSourceTools, registerTeamTools, registerWordPressTools };
|