@cronicorn/mcp-server 1.10.0 → 1.11.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/index.js +42 -41
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13361,7 +13361,7 @@ function createHttpApiClient(config) {
|
|
|
13361
13361
|
};
|
|
13362
13362
|
}
|
|
13363
13363
|
|
|
13364
|
-
// src/tools/api/delete-
|
|
13364
|
+
// src/tools/api/delete-hints.ts
|
|
13365
13365
|
init_esm_shims();
|
|
13366
13366
|
|
|
13367
13367
|
// ../../packages/api-contracts/dist/jobs/index.js
|
|
@@ -13463,6 +13463,7 @@ var EndpointResponseBaseSchema = external_exports.object({
|
|
|
13463
13463
|
lastRunAt: external_exports.string().datetime().optional().describe("Last run time"),
|
|
13464
13464
|
failureCount: external_exports.number().int().describe("Consecutive failure count"),
|
|
13465
13465
|
pausedUntil: external_exports.string().datetime().optional().describe("Pause expiration time"),
|
|
13466
|
+
archivedAt: external_exports.string().datetime().optional().describe("Archive timestamp (soft delete)"),
|
|
13466
13467
|
url: external_exports.string().optional().describe("HTTP endpoint URL"),
|
|
13467
13468
|
method: external_exports.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]).optional().describe("HTTP method"),
|
|
13468
13469
|
headersJson: external_exports.record(external_exports.string(), external_exports.string()).optional().describe("HTTP headers"),
|
|
@@ -14059,8 +14060,8 @@ var ListEndpointsSummary = "List job endpoints";
|
|
|
14059
14060
|
var ListEndpointsDescription = "List all endpoints for a job. Returns complete endpoint configurations including schedules, AI hints, and execution settings.";
|
|
14060
14061
|
var UpdateEndpointSummary = "Update endpoint";
|
|
14061
14062
|
var UpdateEndpointDescription = "Update endpoint configuration. All fields are optional - only provided fields will be updated.";
|
|
14062
|
-
var
|
|
14063
|
-
var
|
|
14063
|
+
var ArchiveEndpointSummary = "Archive endpoint";
|
|
14064
|
+
var ArchiveEndpointDescription = "Archive an endpoint (soft delete). The endpoint will be marked as archived and will no longer count toward quota limits or be scheduled for execution. Archived endpoints can be permanently deleted later if needed.";
|
|
14064
14065
|
var EndpointFieldsBaseSchema2 = external_exports.object({
|
|
14065
14066
|
name: external_exports.string().min(1).max(255).describe("Endpoint name"),
|
|
14066
14067
|
description: external_exports.string().max(2e3).optional().openapi({
|
|
@@ -14110,6 +14111,7 @@ var EndpointResponseSchema = external_exports.object({
|
|
|
14110
14111
|
lastRunAt: external_exports.string().datetime().optional().describe("Last run time"),
|
|
14111
14112
|
failureCount: external_exports.number().int().describe("Consecutive failure count"),
|
|
14112
14113
|
pausedUntil: external_exports.string().datetime().optional().describe("Pause expiration time"),
|
|
14114
|
+
archivedAt: external_exports.string().datetime().optional().describe("Archive timestamp (soft delete)"),
|
|
14113
14115
|
url: external_exports.string().optional().describe("HTTP endpoint URL"),
|
|
14114
14116
|
method: external_exports.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]).optional().describe("HTTP method"),
|
|
14115
14117
|
headersJson: external_exports.record(external_exports.string(), external_exports.string()).optional().describe("HTTP headers"),
|
|
@@ -14262,42 +14264,20 @@ function toShape(schema) {
|
|
|
14262
14264
|
return {};
|
|
14263
14265
|
}
|
|
14264
14266
|
|
|
14265
|
-
// src/tools/api/delete-endpoint.ts
|
|
14266
|
-
var DeleteEndpointRequestSchema = external_exports.object({
|
|
14267
|
-
jobId: external_exports.string().describe("Parent job ID"),
|
|
14268
|
-
id: external_exports.string().describe("Endpoint ID to delete")
|
|
14269
|
-
});
|
|
14270
|
-
var EmptyResponseSchema = external_exports.object({});
|
|
14271
|
-
function registerDeleteEndpoint(server, apiClient) {
|
|
14272
|
-
registerApiTool(server, apiClient, {
|
|
14273
|
-
name: "deleteEndpoint",
|
|
14274
|
-
title: DeleteEndpointSummary,
|
|
14275
|
-
description: DeleteEndpointDescription,
|
|
14276
|
-
inputSchema: toShape(DeleteEndpointRequestSchema),
|
|
14277
|
-
outputSchema: toShape(EmptyResponseSchema),
|
|
14278
|
-
inputValidator: DeleteEndpointRequestSchema,
|
|
14279
|
-
outputValidator: EmptyResponseSchema,
|
|
14280
|
-
method: "DELETE",
|
|
14281
|
-
path: (input) => `/jobs/${input.jobId}/endpoints/${input.id}`,
|
|
14282
|
-
successMessage: () => `\u2705 Endpoint deleted successfully`
|
|
14283
|
-
});
|
|
14284
|
-
}
|
|
14285
|
-
|
|
14286
14267
|
// src/tools/api/delete-hints.ts
|
|
14287
|
-
init_esm_shims();
|
|
14288
14268
|
var DeleteHintsRequestSchema = external_exports.object({
|
|
14289
14269
|
id: external_exports.string().describe("Endpoint ID")
|
|
14290
14270
|
});
|
|
14291
|
-
var
|
|
14271
|
+
var EmptyResponseSchema = external_exports.object({});
|
|
14292
14272
|
function registerDeleteHints(server, apiClient) {
|
|
14293
14273
|
registerApiTool(server, apiClient, {
|
|
14294
14274
|
name: "clearHints",
|
|
14295
14275
|
title: ClearHintsSummary,
|
|
14296
14276
|
description: ClearHintsDescription,
|
|
14297
14277
|
inputSchema: toShape(DeleteHintsRequestSchema),
|
|
14298
|
-
outputSchema: toShape(
|
|
14278
|
+
outputSchema: toShape(EmptyResponseSchema),
|
|
14299
14279
|
inputValidator: DeleteHintsRequestSchema,
|
|
14300
|
-
outputValidator:
|
|
14280
|
+
outputValidator: EmptyResponseSchema,
|
|
14301
14281
|
method: "DELETE",
|
|
14302
14282
|
path: (input) => `/endpoints/${input.id}/hints`,
|
|
14303
14283
|
successMessage: () => `\u2705 AI hints cleared successfully`
|
|
@@ -14810,21 +14790,42 @@ function registerPatchJob(server, apiClient) {
|
|
|
14810
14790
|
});
|
|
14811
14791
|
}
|
|
14812
14792
|
|
|
14793
|
+
// src/tools/api/post-archive-endpoint.ts
|
|
14794
|
+
init_esm_shims();
|
|
14795
|
+
var ArchiveEndpointRequestSchema = external_exports.object({
|
|
14796
|
+
jobId: external_exports.string().describe("Parent job ID"),
|
|
14797
|
+
id: external_exports.string().describe("Endpoint ID to archive")
|
|
14798
|
+
});
|
|
14799
|
+
function registerArchiveEndpoint(server, apiClient) {
|
|
14800
|
+
registerApiTool(server, apiClient, {
|
|
14801
|
+
name: "archiveEndpoint",
|
|
14802
|
+
title: ArchiveEndpointSummary,
|
|
14803
|
+
description: ArchiveEndpointDescription,
|
|
14804
|
+
inputSchema: toShape(ArchiveEndpointRequestSchema),
|
|
14805
|
+
outputSchema: toShape(EndpointResponseSchema),
|
|
14806
|
+
inputValidator: ArchiveEndpointRequestSchema,
|
|
14807
|
+
outputValidator: EndpointResponseSchema,
|
|
14808
|
+
method: "POST",
|
|
14809
|
+
path: (input) => `/jobs/${input.jobId}/endpoints/${input.id}/archive`,
|
|
14810
|
+
successMessage: (output) => `\u2705 Endpoint archived: ${output.name}`
|
|
14811
|
+
});
|
|
14812
|
+
}
|
|
14813
|
+
|
|
14813
14814
|
// src/tools/api/post-endpoint-pause.ts
|
|
14814
14815
|
init_esm_shims();
|
|
14815
14816
|
var PauseResumeRequestSchema = schemas_base_exports.PauseResumeRequestBaseSchema.and(external_exports.object({
|
|
14816
14817
|
id: external_exports.string().describe("Endpoint ID")
|
|
14817
14818
|
}));
|
|
14818
|
-
var
|
|
14819
|
+
var EmptyResponseSchema2 = external_exports.object({});
|
|
14819
14820
|
function registerPostEndpointPause(server, apiClient) {
|
|
14820
14821
|
registerApiTool(server, apiClient, {
|
|
14821
14822
|
name: "pauseResumeEndpoint",
|
|
14822
14823
|
title: PauseResumeSummary,
|
|
14823
14824
|
description: PauseResumeDescription,
|
|
14824
14825
|
inputSchema: toShape(PauseResumeRequestSchema),
|
|
14825
|
-
outputSchema: toShape(
|
|
14826
|
+
outputSchema: toShape(EmptyResponseSchema2),
|
|
14826
14827
|
inputValidator: PauseResumeRequestSchema,
|
|
14827
|
-
outputValidator:
|
|
14828
|
+
outputValidator: EmptyResponseSchema2,
|
|
14828
14829
|
method: "POST",
|
|
14829
14830
|
path: (input) => `/endpoints/${input.id}/pause`,
|
|
14830
14831
|
transformInput: (input) => {
|
|
@@ -14865,16 +14866,16 @@ init_esm_shims();
|
|
|
14865
14866
|
var ApplyIntervalHintRequestSchema = schemas_base_exports.ApplyIntervalHintRequestBaseSchema.and(external_exports.object({
|
|
14866
14867
|
id: external_exports.string().describe("Endpoint ID")
|
|
14867
14868
|
}));
|
|
14868
|
-
var
|
|
14869
|
+
var EmptyResponseSchema3 = external_exports.object({});
|
|
14869
14870
|
function registerPostIntervalHint(server, apiClient) {
|
|
14870
14871
|
registerApiTool(server, apiClient, {
|
|
14871
14872
|
name: "applyIntervalHint",
|
|
14872
14873
|
title: ApplyIntervalHintSummary,
|
|
14873
14874
|
description: ApplyIntervalHintDescription,
|
|
14874
14875
|
inputSchema: toShape(ApplyIntervalHintRequestSchema),
|
|
14875
|
-
outputSchema: toShape(
|
|
14876
|
+
outputSchema: toShape(EmptyResponseSchema3),
|
|
14876
14877
|
inputValidator: ApplyIntervalHintRequestSchema,
|
|
14877
|
-
outputValidator:
|
|
14878
|
+
outputValidator: EmptyResponseSchema3,
|
|
14878
14879
|
method: "POST",
|
|
14879
14880
|
path: (input) => `/endpoints/${input.id}/hints/interval`,
|
|
14880
14881
|
transformInput: (input) => {
|
|
@@ -14951,16 +14952,16 @@ init_esm_shims();
|
|
|
14951
14952
|
var ScheduleOneShotRequestSchema = schemas_base_exports.ScheduleOneShotRequestBaseSchema.and(external_exports.object({
|
|
14952
14953
|
id: external_exports.string().describe("Endpoint ID")
|
|
14953
14954
|
}));
|
|
14954
|
-
var
|
|
14955
|
+
var EmptyResponseSchema4 = external_exports.object({});
|
|
14955
14956
|
function registerPostOneShotHint(server, apiClient) {
|
|
14956
14957
|
registerApiTool(server, apiClient, {
|
|
14957
14958
|
name: "scheduleOneShot",
|
|
14958
14959
|
title: ScheduleOneShotSummary,
|
|
14959
14960
|
description: ScheduleOneShotDescription,
|
|
14960
14961
|
inputSchema: toShape(ScheduleOneShotRequestSchema),
|
|
14961
|
-
outputSchema: toShape(
|
|
14962
|
+
outputSchema: toShape(EmptyResponseSchema4),
|
|
14962
14963
|
inputValidator: ScheduleOneShotRequestSchema,
|
|
14963
|
-
outputValidator:
|
|
14964
|
+
outputValidator: EmptyResponseSchema4,
|
|
14964
14965
|
method: "POST",
|
|
14965
14966
|
path: (input) => `/endpoints/${input.id}/hints/oneshot`,
|
|
14966
14967
|
transformInput: (input) => {
|
|
@@ -14976,16 +14977,16 @@ init_esm_shims();
|
|
|
14976
14977
|
var ResetFailuresRequestSchema = external_exports.object({
|
|
14977
14978
|
id: external_exports.string().describe("Endpoint ID")
|
|
14978
14979
|
});
|
|
14979
|
-
var
|
|
14980
|
+
var EmptyResponseSchema5 = external_exports.object({});
|
|
14980
14981
|
function registerPostResetFailures(server, apiClient) {
|
|
14981
14982
|
registerApiTool(server, apiClient, {
|
|
14982
14983
|
name: "resetFailures",
|
|
14983
14984
|
title: ResetFailuresSummary,
|
|
14984
14985
|
description: ResetFailuresDescription,
|
|
14985
14986
|
inputSchema: toShape(ResetFailuresRequestSchema),
|
|
14986
|
-
outputSchema: toShape(
|
|
14987
|
+
outputSchema: toShape(EmptyResponseSchema5),
|
|
14987
14988
|
inputValidator: ResetFailuresRequestSchema,
|
|
14988
|
-
outputValidator:
|
|
14989
|
+
outputValidator: EmptyResponseSchema5,
|
|
14989
14990
|
method: "POST",
|
|
14990
14991
|
path: (input) => `/endpoints/${input.id}/reset-failures`,
|
|
14991
14992
|
successMessage: () => `\u2705 Failure count reset successfully`
|
|
@@ -15009,7 +15010,7 @@ function registerTools(server, apiUrl, credentials) {
|
|
|
15009
15010
|
registerGetEndpoint(server, apiClient);
|
|
15010
15011
|
registerListEndpoints(server, apiClient);
|
|
15011
15012
|
registerPatchEndpoint(server, apiClient);
|
|
15012
|
-
|
|
15013
|
+
registerArchiveEndpoint(server, apiClient);
|
|
15013
15014
|
registerPostIntervalHint(server, apiClient);
|
|
15014
15015
|
registerPostOneShotHint(server, apiClient);
|
|
15015
15016
|
registerPostEndpointPause(server, apiClient);
|