@rolino/mcp 0.4.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.
- package/CHANGELOG.md +79 -0
- package/README.md +87 -12
- package/dist/bin.cjs +587 -9
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/chunk-ERTLKCCC.js +1337 -0
- package/dist/chunk-ERTLKCCC.js.map +1 -0
- package/dist/index.cjs +587 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +116 -1
- package/dist/index.d.ts +116 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-SMMHU6JG.js +0 -719
- package/dist/chunk-SMMHU6JG.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
-
import { Actor, ProjectCreateInput, Project, ProjectListData, DraftPostInput, Post, DraftPostUpdateInput, PostStatus, PostListData, PostReadiness, PostScheduleInput, PostSchedulePreview, PostScheduleExecuteInput, PostScheduleExecuteResult, PostPublishInput, PostPublishPreview, PostPublishExecuteInput, MediaAssetListData, MediaAsset, IntegrationHealthListData, ProviderDeliveryOptionsProvider, ProviderDeliveryOptions, CalendarListData } from '@rolino/contracts';
|
|
2
|
+
import { Actor, ProjectCreateInput, Project, ProjectListData, DraftPostInput, Post, DraftPostUpdateInput, PostStatus, PostListData, PostReadiness, PostScheduleInput, PostSchedulePreview, PostScheduleExecuteInput, PostScheduleExecuteResult, PostPublishInput, PostPublishPreview, PostPublishExecuteInput, MediaAssetListData, MediaAsset, IntegrationHealthListData, ProviderDeliveryOptionsProvider, ProviderDeliveryOptions, CalendarListData, SeoOpportunityKind, SeoExpectedImpact, SeoOpportunityListData, SeoOpportunity, SeoReportCompleteness, SeoReportListData, SeoReport, AgentBlogPublishingProviderSchema, AgentBlogPublishingDestinationSchema, AgentBlogDeliveryAttemptSchema, AgentBlogSetupStatusSchema, AgentBlogJobSchema, AgentBlogPlanSchema, AgentBlogCadenceInput, AgentBlogPlanItemSchema, AgentBlogArticleQueuedResponseSchema, AgentBlogArticleSchema, AgentBlogArticleDetailSchema, AgentBlogDraftUpdateSchema, AgentBlogImageGenerateRequestSchema, AgentBlogImageGenerationResponseSchema, AgentBlogImageSchema, AgentBlogImageReviewRequestSchema, AgentBlogApprovalPreviewRequestSchema, AgentBlogApprovalPreviewSchema, AgentBlogApprovalExecuteRequestSchema, AgentBlogApprovalExecuteSchema, AgentBlogSchedulePreviewRequestSchema, AgentBlogSchedulePreviewSchema, AgentBlogScheduleExecuteRequestSchema, AgentBlogScheduleExecuteSchema, AgentBlogScheduleCancelPreviewSchema, AgentBlogScheduleCancelExecuteRequestSchema, AgentBlogScheduleCancelExecuteSchema, AgentBlogPublishPreviewSchema, AgentBlogConnectionStatusSchema, AgentBlogConnectionRequest, AgentBlogConnectionPreviewSchema, AgentBlogConnectionExecuteSchema, AgentBlogRevalidationTestSchema } from '@rolino/contracts';
|
|
3
|
+
import * as z from 'zod/v4';
|
|
3
4
|
|
|
4
5
|
type RolinoMcpEnvironment = Record<string, string | undefined>;
|
|
5
6
|
declare function resolveMcpConfiguration(env?: RolinoMcpEnvironment): {
|
|
@@ -78,6 +79,120 @@ type RolinoMcpApi = {
|
|
|
78
79
|
to?: string;
|
|
79
80
|
}): Promise<CalendarListData>;
|
|
80
81
|
};
|
|
82
|
+
seo?: {
|
|
83
|
+
opportunities: {
|
|
84
|
+
list(projectId: string, options?: {
|
|
85
|
+
limit?: number;
|
|
86
|
+
cursor?: string;
|
|
87
|
+
kind?: SeoOpportunityKind;
|
|
88
|
+
expectedImpact?: SeoExpectedImpact;
|
|
89
|
+
}): Promise<SeoOpportunityListData>;
|
|
90
|
+
get(projectId: string, opportunityId: string): Promise<SeoOpportunity>;
|
|
91
|
+
};
|
|
92
|
+
reports: {
|
|
93
|
+
list(projectId: string, options?: {
|
|
94
|
+
limit?: number;
|
|
95
|
+
cursor?: string;
|
|
96
|
+
completeness?: SeoReportCompleteness;
|
|
97
|
+
}): Promise<SeoReportListData>;
|
|
98
|
+
get(projectId: string, reportId: string): Promise<SeoReport>;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
blog?: {
|
|
102
|
+
publishing: {
|
|
103
|
+
providers(projectId: string): Promise<{
|
|
104
|
+
providers: z.infer<typeof AgentBlogPublishingProviderSchema>[];
|
|
105
|
+
}>;
|
|
106
|
+
destinations(projectId: string): Promise<{
|
|
107
|
+
destinations: z.infer<typeof AgentBlogPublishingDestinationSchema>[];
|
|
108
|
+
}>;
|
|
109
|
+
deliveries(projectId: string, articleId?: string): Promise<{
|
|
110
|
+
deliveries: z.infer<typeof AgentBlogDeliveryAttemptSchema>[];
|
|
111
|
+
}>;
|
|
112
|
+
};
|
|
113
|
+
setup: {
|
|
114
|
+
status(projectId: string): Promise<z.infer<typeof AgentBlogSetupStatusSchema>>;
|
|
115
|
+
};
|
|
116
|
+
site: {
|
|
117
|
+
import(projectId: string, idempotencyKey: string): Promise<z.infer<typeof AgentBlogJobSchema>>;
|
|
118
|
+
retry(projectId: string, idempotencyKey: string): Promise<z.infer<typeof AgentBlogJobSchema>>;
|
|
119
|
+
};
|
|
120
|
+
plans: {
|
|
121
|
+
list(projectId: string): Promise<{
|
|
122
|
+
plans: z.infer<typeof AgentBlogPlanSchema>[];
|
|
123
|
+
}>;
|
|
124
|
+
create(projectId: string, cadence: AgentBlogCadenceInput, idempotencyKey: string): Promise<{
|
|
125
|
+
planId: string;
|
|
126
|
+
job: z.infer<typeof AgentBlogJobSchema>;
|
|
127
|
+
}>;
|
|
128
|
+
retry(projectId: string, planId: string, idempotencyKey: string): Promise<z.infer<typeof AgentBlogJobSchema>>;
|
|
129
|
+
items: {
|
|
130
|
+
list(projectId: string, planId: string): Promise<{
|
|
131
|
+
items: z.infer<typeof AgentBlogPlanItemSchema>[];
|
|
132
|
+
}>;
|
|
133
|
+
setState(projectId: string, planId: string, itemId: string, input: {
|
|
134
|
+
state: "ACCEPTED" | "DISMISSED";
|
|
135
|
+
expectedState: string;
|
|
136
|
+
expectedVersion: number;
|
|
137
|
+
idempotencyKey: string;
|
|
138
|
+
}): Promise<z.infer<typeof AgentBlogPlanItemSchema>>;
|
|
139
|
+
createArticle(projectId: string, planId: string, itemId: string, input: {
|
|
140
|
+
expectedState: "ACCEPTED";
|
|
141
|
+
expectedVersion: number;
|
|
142
|
+
idempotencyKey: string;
|
|
143
|
+
}): Promise<z.infer<typeof AgentBlogArticleQueuedResponseSchema>["data"]>;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
articles: {
|
|
147
|
+
list(projectId: string): Promise<{
|
|
148
|
+
articles: z.infer<typeof AgentBlogArticleSchema>[];
|
|
149
|
+
}>;
|
|
150
|
+
get(projectId: string, articleId: string): Promise<z.infer<typeof AgentBlogArticleDetailSchema>>;
|
|
151
|
+
updateDraft(projectId: string, articleId: string, input: z.infer<typeof AgentBlogDraftUpdateSchema>): Promise<z.infer<typeof AgentBlogArticleDetailSchema>>;
|
|
152
|
+
generate(projectId: string, articleId: string, idempotencyKey: string): Promise<z.infer<typeof AgentBlogJobSchema>>;
|
|
153
|
+
generateImage(projectId: string, articleId: string, input: z.infer<typeof AgentBlogImageGenerateRequestSchema>): Promise<z.infer<typeof AgentBlogImageGenerationResponseSchema>["data"]>;
|
|
154
|
+
uploadImage(projectId: string, articleId: string, input: {
|
|
155
|
+
revisionId: string;
|
|
156
|
+
fileName: string;
|
|
157
|
+
contentType: "image/jpeg" | "image/png" | "image/webp";
|
|
158
|
+
fileSize: number;
|
|
159
|
+
altText: string;
|
|
160
|
+
body: Blob;
|
|
161
|
+
}): Promise<z.infer<typeof AgentBlogImageSchema>>;
|
|
162
|
+
reviewImage(projectId: string, articleId: string, imageId: string, input: z.infer<typeof AgentBlogImageReviewRequestSchema>): Promise<z.infer<typeof AgentBlogImageSchema>>;
|
|
163
|
+
previewApproval(projectId: string, articleId: string, input: z.infer<typeof AgentBlogApprovalPreviewRequestSchema>): Promise<z.infer<typeof AgentBlogApprovalPreviewSchema>>;
|
|
164
|
+
executeApproval(projectId: string, articleId: string, input: z.infer<typeof AgentBlogApprovalExecuteRequestSchema>): Promise<z.infer<typeof AgentBlogApprovalExecuteSchema>>;
|
|
165
|
+
previewSchedule(projectId: string, articleId: string, input: z.infer<typeof AgentBlogSchedulePreviewRequestSchema>): Promise<z.infer<typeof AgentBlogSchedulePreviewSchema>>;
|
|
166
|
+
executeSchedule(projectId: string, articleId: string, input: z.infer<typeof AgentBlogScheduleExecuteRequestSchema>): Promise<z.infer<typeof AgentBlogScheduleExecuteSchema>>;
|
|
167
|
+
previewScheduleCancellation(projectId: string, articleId: string): Promise<z.infer<typeof AgentBlogScheduleCancelPreviewSchema>>;
|
|
168
|
+
executeScheduleCancellation(projectId: string, articleId: string, input: z.infer<typeof AgentBlogScheduleCancelExecuteRequestSchema>): Promise<z.infer<typeof AgentBlogScheduleCancelExecuteSchema>>;
|
|
169
|
+
previewPublish(projectId: string, articleId: string, revisionId: string, request?: unknown, destinationIds?: readonly string[]): Promise<z.infer<typeof AgentBlogPublishPreviewSchema>>;
|
|
170
|
+
executePublish(projectId: string, articleId: string, input: {
|
|
171
|
+
revisionId: string;
|
|
172
|
+
destinationIds?: readonly string[];
|
|
173
|
+
confirmationToken: string;
|
|
174
|
+
idempotencyKey: string;
|
|
175
|
+
}): Promise<{
|
|
176
|
+
publicationId: string;
|
|
177
|
+
articleId: string;
|
|
178
|
+
revisionId: string;
|
|
179
|
+
publicUrl: string;
|
|
180
|
+
publishedAt: string;
|
|
181
|
+
}>;
|
|
182
|
+
};
|
|
183
|
+
jobs: {
|
|
184
|
+
get(projectId: string, jobId: string): Promise<z.infer<typeof AgentBlogJobSchema>>;
|
|
185
|
+
};
|
|
186
|
+
connection: {
|
|
187
|
+
status(projectId: string): Promise<z.infer<typeof AgentBlogConnectionStatusSchema>>;
|
|
188
|
+
preview(projectId: string, input: AgentBlogConnectionRequest): Promise<z.infer<typeof AgentBlogConnectionPreviewSchema>>;
|
|
189
|
+
execute(projectId: string, input: AgentBlogConnectionRequest & {
|
|
190
|
+
confirmationToken: string;
|
|
191
|
+
idempotencyKey: string;
|
|
192
|
+
}): Promise<z.infer<typeof AgentBlogConnectionExecuteSchema>>;
|
|
193
|
+
test(projectId: string, idempotencyKey: string): Promise<z.infer<typeof AgentBlogRevalidationTestSchema>>;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
81
196
|
};
|
|
82
197
|
type RolinoMcpServerOptions = {
|
|
83
198
|
client?: RolinoMcpApi;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolino/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Model Context Protocol server for Rolino",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@hono/node-server": "2.0.12",
|
|
61
61
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
62
|
-
"@rolino/contracts": "0.
|
|
63
|
-
"@rolino/local-auth": "0.
|
|
64
|
-
"@rolino/sdk": "0.
|
|
62
|
+
"@rolino/contracts": "0.5.0",
|
|
63
|
+
"@rolino/local-auth": "0.5.0",
|
|
64
|
+
"@rolino/sdk": "0.5.0",
|
|
65
65
|
"zod": "^4.4.3"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|