@lightsage/mcp 0.4.2 → 0.4.3
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/README.md +2 -2
- package/bin/mcp-server.js +449 -128
- package/bin/mcp-server.js.map +15 -8
- package/esm/funcs/promptsRun.d.ts +21 -0
- package/esm/funcs/promptsRun.d.ts.map +1 -0
- package/esm/funcs/promptsRun.js +88 -0
- package/esm/funcs/promptsRun.js.map +1 -0
- package/esm/funcs/promptsRunStatus.d.ts +19 -0
- package/esm/funcs/promptsRunStatus.d.ts.map +1 -0
- package/esm/funcs/promptsRunStatus.js +91 -0
- package/esm/funcs/promptsRunStatus.js.map +1 -0
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +5 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/promptsRun.d.ts +7 -0
- package/esm/mcp-server/tools/promptsRun.d.ts.map +1 -0
- package/esm/mcp-server/tools/promptsRun.js +40 -0
- package/esm/mcp-server/tools/promptsRun.js.map +1 -0
- package/esm/mcp-server/tools/promptsRunStatus.d.ts +7 -0
- package/esm/mcp-server/tools/promptsRunStatus.d.ts.map +1 -0
- package/esm/mcp-server/tools/promptsRunStatus.js +38 -0
- package/esm/mcp-server/tools/promptsRunStatus.js.map +1 -0
- package/esm/models/createv2promptrunrequest.d.ts +7 -0
- package/esm/models/createv2promptrunrequest.d.ts.map +1 -0
- package/esm/models/createv2promptrunrequest.js +10 -0
- package/esm/models/createv2promptrunrequest.js.map +1 -0
- package/esm/models/v2evalrunscreateop.d.ts +3 -3
- package/esm/models/v2evalrunscreateop.d.ts.map +1 -1
- package/esm/models/v2evalrunscreateop.js +2 -2
- package/esm/models/v2evalrunscreateop.js.map +1 -1
- package/esm/models/v2promptrunjobresponse.d.ts +46 -0
- package/esm/models/v2promptrunjobresponse.d.ts.map +1 -0
- package/esm/models/v2promptrunjobresponse.js +49 -0
- package/esm/models/v2promptrunjobresponse.js.map +1 -0
- package/esm/models/v2promptrunscreateop.d.ts +40 -0
- package/esm/models/v2promptrunscreateop.d.ts.map +1 -0
- package/esm/models/v2promptrunscreateop.js +33 -0
- package/esm/models/v2promptrunscreateop.js.map +1 -0
- package/esm/models/v2promptrunstatusretrieveop.d.ts +24 -0
- package/esm/models/v2promptrunstatusretrieveop.d.ts.map +1 -0
- package/esm/models/v2promptrunstatusretrieveop.js +23 -0
- package/esm/models/v2promptrunstatusretrieveop.js.map +1 -0
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +8 -0
- package/esm/tool-names.js.map +1 -1
- package/package.json +9 -4
- package/src/funcs/promptsRun.ts +150 -0
- package/src/funcs/promptsRunStatus.ts +156 -0
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/promptsRun.ts +48 -0
- package/src/mcp-server/tools/promptsRunStatus.ts +46 -0
- package/src/models/createv2promptrunrequest.ts +22 -0
- package/src/models/v2evalrunscreateop.ts +12 -4
- package/src/models/v2promptrunjobresponse.ts +97 -0
- package/src/models/v2promptrunscreateop.ts +100 -0
- package/src/models/v2promptrunstatusretrieveop.ts +64 -0
- package/src/tool-names.ts +8 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4ccfac1e4b39
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { PublicEvalRunProgress$zodSchema, } from "./publicevalrunprogress.js";
|
|
7
|
+
export const V2PromptRunJobResponseStatusEnum = {
|
|
8
|
+
Pending: "pending",
|
|
9
|
+
Running: "running",
|
|
10
|
+
Summarizing: "summarizing",
|
|
11
|
+
Completed: "completed",
|
|
12
|
+
Failed: "failed",
|
|
13
|
+
Cancelled: "cancelled",
|
|
14
|
+
Interrupted: "interrupted",
|
|
15
|
+
};
|
|
16
|
+
export const V2PromptRunJobResponseStatusEnum$zodSchema = z.enum([
|
|
17
|
+
"pending",
|
|
18
|
+
"running",
|
|
19
|
+
"summarizing",
|
|
20
|
+
"completed",
|
|
21
|
+
"failed",
|
|
22
|
+
"cancelled",
|
|
23
|
+
"interrupted",
|
|
24
|
+
]);
|
|
25
|
+
export const Status$zodSchema = z.union([
|
|
26
|
+
V2PromptRunJobResponseStatusEnum$zodSchema,
|
|
27
|
+
z.string(),
|
|
28
|
+
]).describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`.");
|
|
29
|
+
export const V2PromptRunJobResponse$zodSchema = z.object({
|
|
30
|
+
completed_at: z.string().nullable().optional().describe("Can be set while `status` is still `summarizing`; use `status` to detect completion."),
|
|
31
|
+
created_at: z.string().nullable().optional(),
|
|
32
|
+
dispatch_id: z.string().nullable().optional(),
|
|
33
|
+
error: z.string().nullable().optional(),
|
|
34
|
+
estimated_cost: z.number().nullable().optional().describe("The estimated credit cost for prompt jobs or estimated USD cost for API Performance jobs. Null when no estimate is available."),
|
|
35
|
+
eval_count: z.int().nullable().optional(),
|
|
36
|
+
id: z.string().describe("Run ID to poll with `GET /v2/prompts/runs/{run_id}/status`."),
|
|
37
|
+
job_id: z.string().describe("Parent job ID. It currently matches `id`."),
|
|
38
|
+
model_count: z.int().nullable().optional(),
|
|
39
|
+
progress: PublicEvalRunProgress$zodSchema.optional(),
|
|
40
|
+
source_type: z.literal("prompts").default("prompts").optional(),
|
|
41
|
+
stage: z.string().nullable().optional().describe("Current lifecycle stage, including `retrying` while interrupted child jobs wait to be reclaimed."),
|
|
42
|
+
started_at: z.string().nullable().optional(),
|
|
43
|
+
status: z.union([
|
|
44
|
+
V2PromptRunJobResponseStatusEnum$zodSchema,
|
|
45
|
+
z.string(),
|
|
46
|
+
]).describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`."),
|
|
47
|
+
type: z.literal("prompts").default("prompts").optional(),
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=v2promptrunjobresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v2promptrunjobresponse.js","sourceRoot":"","sources":["../../src/models/v2promptrunjobresponse.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAEL,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AAEpC,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;CAClB,CAAC;AAKX,MAAM,CAAC,MAAM,0CAA0C,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/D,SAAS;IACT,SAAS;IACT,aAAa;IACb,WAAW;IACX,QAAQ;IACR,WAAW;IACX,aAAa;CACd,CAAC,CAAC;AAOH,MAAM,CAAC,MAAM,gBAAgB,GAAsB,CAAC,CAAC,KAAK,CAAC;IACzD,0CAA0C;IAC1C,CAAC,CAAC,MAAM,EAAE;CACX,CAAC,CAAC,QAAQ,CACT,qIAAqI,CACtI,CAAC;AAoBF,MAAM,CAAC,MAAM,gCAAgC,GAEzC,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACrD,sFAAsF,CACvF;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,W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
|
|
2
|
+
import { HTTPValidationError } from "./httpvalidationerror.js";
|
|
3
|
+
import { V2PromptRunJobResponse } from "./v2promptrunjobresponse.js";
|
|
4
|
+
/**
|
|
5
|
+
* The background queue is temporarily unavailable.
|
|
6
|
+
*/
|
|
7
|
+
export type V2PromptRunsCreateServiceUnavailableResponseBody = {
|
|
8
|
+
detail: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const V2PromptRunsCreateServiceUnavailableResponseBody$zodSchema: z.ZodType<V2PromptRunsCreateServiceUnavailableResponseBody>;
|
|
11
|
+
/**
|
|
12
|
+
* One or more configured targets are unavailable on the organization's current plan.
|
|
13
|
+
*/
|
|
14
|
+
export type V2PromptRunsCreateForbiddenResponseBody = {
|
|
15
|
+
detail: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const V2PromptRunsCreateForbiddenResponseBody$zodSchema: z.ZodType<V2PromptRunsCreateForbiddenResponseBody>;
|
|
18
|
+
export type V2PromptRunsCreateDetail = {
|
|
19
|
+
error: string;
|
|
20
|
+
required: number;
|
|
21
|
+
balance: number;
|
|
22
|
+
};
|
|
23
|
+
export declare const V2PromptRunsCreateDetail$zodSchema: z.ZodType<V2PromptRunsCreateDetail>;
|
|
24
|
+
/**
|
|
25
|
+
* The organization does not currently have enough credits for the requested run.
|
|
26
|
+
*/
|
|
27
|
+
export type V2PromptRunsCreatePaymentRequiredResponseBody = {
|
|
28
|
+
detail: V2PromptRunsCreateDetail;
|
|
29
|
+
};
|
|
30
|
+
export declare const V2PromptRunsCreatePaymentRequiredResponseBody$zodSchema: z.ZodType<V2PromptRunsCreatePaymentRequiredResponseBody>;
|
|
31
|
+
/**
|
|
32
|
+
* No runnable configured targets were found for the selected prompts.
|
|
33
|
+
*/
|
|
34
|
+
export type V2PromptRunsCreateBadRequestResponseBody = {
|
|
35
|
+
detail: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const V2PromptRunsCreateBadRequestResponseBody$zodSchema: z.ZodType<V2PromptRunsCreateBadRequestResponseBody>;
|
|
38
|
+
export type V2PromptRunsCreateResponse = V2PromptRunJobResponse | V2PromptRunsCreateBadRequestResponseBody | V2PromptRunsCreatePaymentRequiredResponseBody | V2PromptRunsCreateForbiddenResponseBody | V2PromptRunsCreateServiceUnavailableResponseBody | HTTPValidationError;
|
|
39
|
+
export declare const V2PromptRunsCreateResponse$zodSchema: z.ZodType<V2PromptRunsCreateResponse>;
|
|
40
|
+
//# sourceMappingURL=v2promptrunscreateop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v2promptrunscreateop.d.ts","sourceRoot":"","sources":["../../src/models/v2promptrunscreateop.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,sBAAsB,EAEvB,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,gDAAgD,GAAG;IAC7D,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,0DAA0D,EACrE,CAAC,CAAC,OAAO,CAAC,gDAAgD,CAEK,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzE,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,uCAAuC,CAKxC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,wBAAwB,CAKxB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,6CAA6C,GAAG;IAC1D,MAAM,EAAE,wBAAwB,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,uDAAuD,EAAE,CAAC,CAAC,OAAO,CAC7E,6CAA6C,CAK9C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1E,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,wCAAwC,CAKzC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAClC,sBAAsB,GACtB,wCAAwC,GACxC,6CAA6C,GAC7C,uCAAuC,GACvC,gDAAgD,GAChD,mBAAmB,CAAC;AAExB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,0BAA0B,CAQ1B,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 54866e0df895
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { HTTPValidationError$zodSchema, } from "./httpvalidationerror.js";
|
|
7
|
+
import { V2PromptRunJobResponse$zodSchema, } from "./v2promptrunjobresponse.js";
|
|
8
|
+
export const V2PromptRunsCreateServiceUnavailableResponseBody$zodSchema = z.object({
|
|
9
|
+
detail: z.string(),
|
|
10
|
+
}).describe("The background queue is temporarily unavailable.");
|
|
11
|
+
export const V2PromptRunsCreateForbiddenResponseBody$zodSchema = z.object({
|
|
12
|
+
detail: z.string(),
|
|
13
|
+
}).describe("One or more configured targets are unavailable on the organization's current plan.");
|
|
14
|
+
export const V2PromptRunsCreateDetail$zodSchema = z.object({
|
|
15
|
+
balance: z.number().describe("The organization's current credit balance."),
|
|
16
|
+
error: z.string(),
|
|
17
|
+
required: z.number().describe("Usage-based credits the requested run needs."),
|
|
18
|
+
});
|
|
19
|
+
export const V2PromptRunsCreatePaymentRequiredResponseBody$zodSchema = z.object({
|
|
20
|
+
detail: z.lazy(() => V2PromptRunsCreateDetail$zodSchema),
|
|
21
|
+
}).describe("The organization does not currently have enough credits for the requested run.");
|
|
22
|
+
export const V2PromptRunsCreateBadRequestResponseBody$zodSchema = z.object({
|
|
23
|
+
detail: z.string(),
|
|
24
|
+
}).describe("No runnable configured targets were found for the selected prompts.");
|
|
25
|
+
export const V2PromptRunsCreateResponse$zodSchema = z.union([
|
|
26
|
+
V2PromptRunJobResponse$zodSchema,
|
|
27
|
+
z.lazy(() => V2PromptRunsCreateBadRequestResponseBody$zodSchema),
|
|
28
|
+
z.lazy(() => V2PromptRunsCreatePaymentRequiredResponseBody$zodSchema),
|
|
29
|
+
z.lazy(() => V2PromptRunsCreateForbiddenResponseBody$zodSchema),
|
|
30
|
+
z.lazy(() => V2PromptRunsCreateServiceUnavailableResponseBody$zodSchema),
|
|
31
|
+
HTTPValidationError$zodSchema,
|
|
32
|
+
]);
|
|
33
|
+
//# sourceMappingURL=v2promptrunscreateop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v2promptrunscreateop.js","sourceRoot":"","sources":["../../src/models/v2promptrunscreateop.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,gCAAgC,GACjC,MAAM,6BAA6B,CAAC;AASrC,MAAM,CAAC,MAAM,0DAA0D,GACP,CAAC,CAAC,MAAM,CAAC;IACrE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,QAAQ,CAAC,kDAAkD,CAAC,CAAC;AAOlE,MAAM,CAAC,MAAM,iDAAiD,GAE1D,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,QAAQ,CACT,oFAAoF,CACrF,CAAC;AAQF,MAAM,CAAC,MAAM,kCAAkC,GAE3C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IAC1E,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;CAC9E,CAAC,CAAC;AASH,MAAM,CAAC,MAAM,uDAAuD,GAEhE,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,kCAAkC,CAAC;CACzD,CAAC,CAAC,QAAQ,CACT,gFAAgF,CACjF,CAAC;AAOF,MAAM,CAAC,MAAM,kDAAkD,GAE3D,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,QAAQ,CACT,qEAAqE,CACtE,CAAC;AAUF,MAAM,CAAC,MAAM,oCAAoC,GAE7C,CAAC,CAAC,KAAK,CAAC;IACV,gCAAgC;IAChC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,kDAAkD,CAAC;IAChE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,uDAAuD,CAAC;IACrE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,iDAAiD,CAAC;IAC/D,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,0DAA0D,CAAC;IACxE,6BAA6B;CAC9B,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { HTTPValidationError } from "./httpvalidationerror.js";
|
|
3
|
+
import { V2PromptRunJobResponse } from "./v2promptrunjobresponse.js";
|
|
4
|
+
export type V2PromptRunStatusRetrieveRequest = {
|
|
5
|
+
run_id: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const V2PromptRunStatusRetrieveRequest$zodSchema: z.ZodType<V2PromptRunStatusRetrieveRequest>;
|
|
8
|
+
/**
|
|
9
|
+
* The prompt run job does not exist or is not visible to this API key.
|
|
10
|
+
*/
|
|
11
|
+
export type V2PromptRunStatusRetrieveNotFoundResponseBody = {
|
|
12
|
+
detail: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const V2PromptRunStatusRetrieveNotFoundResponseBody$zodSchema: z.ZodType<V2PromptRunStatusRetrieveNotFoundResponseBody>;
|
|
15
|
+
/**
|
|
16
|
+
* The prompt run ID is not a valid UUID.
|
|
17
|
+
*/
|
|
18
|
+
export type V2PromptRunStatusRetrieveBadRequestResponseBody = {
|
|
19
|
+
detail: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const V2PromptRunStatusRetrieveBadRequestResponseBody$zodSchema: z.ZodType<V2PromptRunStatusRetrieveBadRequestResponseBody>;
|
|
22
|
+
export type V2PromptRunStatusRetrieveResponse = V2PromptRunJobResponse | V2PromptRunStatusRetrieveBadRequestResponseBody | V2PromptRunStatusRetrieveNotFoundResponseBody | HTTPValidationError;
|
|
23
|
+
export declare const V2PromptRunStatusRetrieveResponse$zodSchema: z.ZodType<V2PromptRunStatusRetrieveResponse>;
|
|
24
|
+
//# sourceMappingURL=v2promptrunstatusretrieveop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v2promptrunstatusretrieveop.d.ts","sourceRoot":"","sources":["../../src/models/v2promptrunstatusretrieveop.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,sBAAsB,EAEvB,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,gCAAgC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAElE,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,gCAAgC,CAKhC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,6CAA6C,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/E,eAAO,MAAM,uDAAuD,EAAE,CAAC,CAAC,OAAO,CAC7E,6CAA6C,CAK9C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,+CAA+C,GAAG;IAC5D,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,yDAAyD,EACpE,CAAC,CAAC,OAAO,CAAC,+CAA+C,CAEJ,CAAC;AAExD,MAAM,MAAM,iCAAiC,GACzC,sBAAsB,GACtB,+CAA+C,GAC/C,6CAA6C,GAC7C,mBAAmB,CAAC;AAExB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,iCAAiC,CAMjC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 8f9c98c256bf
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { HTTPValidationError$zodSchema, } from "./httpvalidationerror.js";
|
|
7
|
+
import { V2PromptRunJobResponse$zodSchema, } from "./v2promptrunjobresponse.js";
|
|
8
|
+
export const V2PromptRunStatusRetrieveRequest$zodSchema = z.object({
|
|
9
|
+
run_id: z.string().describe("Run ID returned by `POST /v2/prompts/runs`, not a stored prompt result ID."),
|
|
10
|
+
});
|
|
11
|
+
export const V2PromptRunStatusRetrieveNotFoundResponseBody$zodSchema = z.object({
|
|
12
|
+
detail: z.string(),
|
|
13
|
+
}).describe("The prompt run job does not exist or is not visible to this API key.");
|
|
14
|
+
export const V2PromptRunStatusRetrieveBadRequestResponseBody$zodSchema = z.object({
|
|
15
|
+
detail: z.string(),
|
|
16
|
+
}).describe("The prompt run ID is not a valid UUID.");
|
|
17
|
+
export const V2PromptRunStatusRetrieveResponse$zodSchema = z.union([
|
|
18
|
+
V2PromptRunJobResponse$zodSchema,
|
|
19
|
+
z.lazy(() => V2PromptRunStatusRetrieveBadRequestResponseBody$zodSchema),
|
|
20
|
+
z.lazy(() => V2PromptRunStatusRetrieveNotFoundResponseBody$zodSchema),
|
|
21
|
+
HTTPValidationError$zodSchema,
|
|
22
|
+
]);
|
|
23
|
+
//# sourceMappingURL=v2promptrunstatusretrieveop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v2promptrunstatusretrieveop.js","sourceRoot":"","sources":["../../src/models/v2promptrunstatusretrieveop.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,gCAAgC,GACjC,MAAM,6BAA6B,CAAC;AAIrC,MAAM,CAAC,MAAM,0CAA0C,GAEnD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CACzB,4EAA4E,CAC7E;CACF,CAAC,CAAC;AAOH,MAAM,CAAC,MAAM,uDAAuD,GAEhE,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,QAAQ,CACT,sEAAsE,CACvE,CAAC;AASF,MAAM,CAAC,MAAM,yDAAyD,GACP,CAAC,CAAC,MAAM,CAAC;IACpE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,QAAQ,CAAC,wCAAwC,CAAC,CAAC;AAQxD,MAAM,CAAC,MAAM,2CAA2C,GAEpD,CAAC,CAAC,KAAK,CAAC;IACV,gCAAgC;IAChC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,yDAAyD,CAAC;IACvE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,uDAAuD,CAAC;IACrE,6BAA6B;CAC9B,CAAC,CAAC"}
|
package/esm/tool-names.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAiPlE,CAAC"}
|
package/esm/tool-names.js
CHANGED
|
@@ -68,6 +68,14 @@ export const toolNames = [
|
|
|
68
68
|
"name": "prompts-v2-prompts-delete",
|
|
69
69
|
"description": "Delete Prompt\n\nArchives the prompt and excludes it from normal listings while preserving its historical run data."
|
|
70
70
|
},
|
|
71
|
+
{
|
|
72
|
+
"name": "prompts-run",
|
|
73
|
+
"description": "Run Prompts\n\nQueue saved prompts using the organization's configured targets.\n\nProvide `prompt_ids` to run selected prompts, or omit them to run all active\nprompts. Saved prompt run settings apply to coding-agent targets. The\nresponse returns a run ID to poll with\n`GET /v2/prompts/runs/{run_id}/status`."
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "prompts-run-status",
|
|
77
|
+
"description": "Get Prompt Run Status\n\nReturn status and progress for a queued prompt run.\n\nPoll this endpoint until `status` is `completed`, `failed`, or `cancelled`.\nIndividual stored results are available from `GET /v2/prompts/runs`."
|
|
78
|
+
},
|
|
71
79
|
{
|
|
72
80
|
"name": "opportunities-v2-opportunities-list",
|
|
73
81
|
"description": "List Opportunities\n\nReturns ranked opportunities computed from stored prompt visibility results. Each includes an `execution_prompt` with context for an AI agent. Default window is 30 days."
|
package/esm/tool-names.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAA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wF;KACxG;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAgD;IACpE;QACE,MAAM,EAAE,sBAAsB;QAC9B,aAAa,EAAE,6GAA6G;KAC7H;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,0HAA0H;KAC1I;IACD;QACE,MAAM,EAAE,2CAA2C;QACnD,aAAa,EAAE,oOAAoO;KACpP;IACD;QACE,MAAM,EAAE,4CAA4C;QACpD,aAAa,EAAE,oKAAoK;KACpL;IACD;QACE,MAAM,EAAE,yCAAyC;QACjD,aAAa,EAAE,iKAAiK;KACjL;IACD;QACE,MAAM,EAAE,2CAA2C;QACnD,aAAa,EAAE,wKAAwK;KACxL;IACD;QACE,MAAM,EAAE,yBAAyB;QACjC,aAAa,EAAE,qHAAqH;KACrI;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,6JAA6J;KAC7K;IACD;QACE,MAAM,EAAE,+BAA+B;QACvC,aAAa,EAAE,yEAAyE;KACzF;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,qEAAqE;KACrF;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,uEAAuE;KACvF;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,wJAAwJ;KACxK;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,aAAa,EAAE,qLAAqL;KACrM;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,iJAAiJ;KACjK;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,aAAa,EAAE,uHAAuH;KACvI;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,8IAA8I;KAC9J;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,qHAAqH;KACrI;IACD;QAC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mG;KACnH;IACD;QACE,MAAM,EAAE,mCAAmC;QAC3C,aAAa,EAAE,oFAAoF;KACpG;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,iGAAiG;KACjH;IACD;QACE,MAAM,EAAE,oBAAoB;QAC5B,aAAa,EAAE,qFAAqF;KACrG;IACD;QACE,MAAM,EAAE,uBAAuB;QAC/B,aAAa,EAAE,wFAAwF;KACxG;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightsage/mcp",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"author": "Speakeasy",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -31,12 +31,17 @@
|
|
|
31
31
|
"overrides": {
|
|
32
32
|
"@modelcontextprotocol/sdk": "1.26.0",
|
|
33
33
|
"hono": ">=4.12.34",
|
|
34
|
-
"fast-uri": ">=4.1.
|
|
35
|
-
"js-yaml": ">=4.3.
|
|
34
|
+
"fast-uri": ">=4.1.3 <5.0.0",
|
|
35
|
+
"js-yaml": ">=4.3.2 <5.0.0",
|
|
36
36
|
"ip-address": ">=10.3.1 <11.0.0",
|
|
37
37
|
"nanoid@^5.0.0": ">=5.1.16 <6.0.0",
|
|
38
38
|
"brace-expansion@^2.0.0": ">=2.1.4 <3.0.0",
|
|
39
|
-
"body-parser": ">=2.3.0 <3.0.0"
|
|
39
|
+
"body-parser": ">=2.3.0 <3.0.0",
|
|
40
|
+
"@hono/node-server": ">=1.19.15 <2.0.0",
|
|
41
|
+
"brace-expansion@^1.1.7": ">=1.1.18 <2.0.0",
|
|
42
|
+
"brace-expansion@^5.0.0": ">=5.0.9 <6.0.0",
|
|
43
|
+
"qs": ">=6.16.0 <7.0.0",
|
|
44
|
+
"tmp": ">=0.2.6 <0.3.0"
|
|
40
45
|
},
|
|
41
46
|
"devDependencies": {
|
|
42
47
|
"@anthropic-ai/mcpb": "^1.2.0",
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 222d0e84db00
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { LightsageMcpCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
CreateV2PromptRunRequest,
|
|
15
|
+
CreateV2PromptRunRequest$zodSchema,
|
|
16
|
+
} from "../models/createv2promptrunrequest.js";
|
|
17
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
18
|
+
import {
|
|
19
|
+
ConnectionError,
|
|
20
|
+
InvalidRequestError,
|
|
21
|
+
RequestAbortedError,
|
|
22
|
+
RequestTimeoutError,
|
|
23
|
+
UnexpectedClientError,
|
|
24
|
+
} from "../models/errors/httpclienterrors.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Run Prompts
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Queue saved prompts using the organization's configured targets.
|
|
34
|
+
*
|
|
35
|
+
* Provide `prompt_ids` to run selected prompts, or omit them to run all active
|
|
36
|
+
* prompts. Saved prompt run settings apply to coding-agent targets. The
|
|
37
|
+
* response returns a run ID to poll with
|
|
38
|
+
* `GET /v2/prompts/runs/{run_id}/status`.
|
|
39
|
+
*/
|
|
40
|
+
export function promptsRun(
|
|
41
|
+
client$: LightsageMcpCore,
|
|
42
|
+
request: CreateV2PromptRunRequest,
|
|
43
|
+
options?: RequestOptions,
|
|
44
|
+
): APIPromise<
|
|
45
|
+
Result<
|
|
46
|
+
Response,
|
|
47
|
+
| APIError
|
|
48
|
+
| SDKValidationError
|
|
49
|
+
| UnexpectedClientError
|
|
50
|
+
| InvalidRequestError
|
|
51
|
+
| RequestAbortedError
|
|
52
|
+
| RequestTimeoutError
|
|
53
|
+
| ConnectionError
|
|
54
|
+
>
|
|
55
|
+
> {
|
|
56
|
+
return new APIPromise($do(
|
|
57
|
+
client$,
|
|
58
|
+
request,
|
|
59
|
+
options,
|
|
60
|
+
));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
async function $do(
|
|
64
|
+
client$: LightsageMcpCore,
|
|
65
|
+
request: CreateV2PromptRunRequest,
|
|
66
|
+
options?: RequestOptions,
|
|
67
|
+
): Promise<
|
|
68
|
+
[
|
|
69
|
+
Result<
|
|
70
|
+
Response,
|
|
71
|
+
| APIError
|
|
72
|
+
| SDKValidationError
|
|
73
|
+
| UnexpectedClientError
|
|
74
|
+
| InvalidRequestError
|
|
75
|
+
| RequestAbortedError
|
|
76
|
+
| RequestTimeoutError
|
|
77
|
+
| ConnectionError
|
|
78
|
+
>,
|
|
79
|
+
APICall,
|
|
80
|
+
]
|
|
81
|
+
> {
|
|
82
|
+
const parsed$ = safeParse(
|
|
83
|
+
request,
|
|
84
|
+
(value$) => CreateV2PromptRunRequest$zodSchema.parse(value$),
|
|
85
|
+
"Input validation failed",
|
|
86
|
+
);
|
|
87
|
+
if (!parsed$.ok) {
|
|
88
|
+
return [parsed$, { status: "invalid" }];
|
|
89
|
+
}
|
|
90
|
+
const payload$ = parsed$.value;
|
|
91
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
92
|
+
const path$ = pathToFunc("/v2/prompts/runs")();
|
|
93
|
+
|
|
94
|
+
const headers$ = new Headers(compactMap({
|
|
95
|
+
"Content-Type": "application/json",
|
|
96
|
+
Accept: "application/json",
|
|
97
|
+
}));
|
|
98
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
99
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
100
|
+
|
|
101
|
+
const context = {
|
|
102
|
+
options: client$._options,
|
|
103
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
104
|
+
operationID: "v2_prompt_runs_create",
|
|
105
|
+
oAuth2Scopes: null,
|
|
106
|
+
resolvedSecurity: requestSecurity,
|
|
107
|
+
securitySource: client$._options.security,
|
|
108
|
+
retryConfig: options?.retries
|
|
109
|
+
|| client$._options.retryConfig
|
|
110
|
+
|| { strategy: "none" },
|
|
111
|
+
retryCodes: options?.retryCodes || [
|
|
112
|
+
"429",
|
|
113
|
+
"500",
|
|
114
|
+
"502",
|
|
115
|
+
"503",
|
|
116
|
+
"504",
|
|
117
|
+
],
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
const requestRes = client$._createRequest(context, {
|
|
121
|
+
security: requestSecurity,
|
|
122
|
+
method: "POST",
|
|
123
|
+
baseURL: options?.serverURL,
|
|
124
|
+
path: path$,
|
|
125
|
+
headers: headers$,
|
|
126
|
+
body: body$,
|
|
127
|
+
userAgent: client$._options.userAgent,
|
|
128
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
129
|
+
|| -1,
|
|
130
|
+
}, options);
|
|
131
|
+
if (!requestRes.ok) {
|
|
132
|
+
return [requestRes, { status: "invalid" }];
|
|
133
|
+
}
|
|
134
|
+
const req$ = requestRes.value;
|
|
135
|
+
|
|
136
|
+
const doResult = await client$._do(req$, {
|
|
137
|
+
context,
|
|
138
|
+
errorCodes: [],
|
|
139
|
+
retryConfig: context.retryConfig,
|
|
140
|
+
retryCodes: context.retryCodes,
|
|
141
|
+
});
|
|
142
|
+
if (!doResult.ok) {
|
|
143
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
144
|
+
}
|
|
145
|
+
return [doResult, {
|
|
146
|
+
status: "complete",
|
|
147
|
+
"request": req$,
|
|
148
|
+
response: doResult.value,
|
|
149
|
+
}];
|
|
150
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: c7035627e653
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { LightsageMcpCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
+
import {
|
|
23
|
+
V2PromptRunStatusRetrieveRequest,
|
|
24
|
+
V2PromptRunStatusRetrieveRequest$zodSchema,
|
|
25
|
+
} from "../models/v2promptrunstatusretrieveop.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Get Prompt Run Status
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Return status and progress for a queued prompt run.
|
|
34
|
+
*
|
|
35
|
+
* Poll this endpoint until `status` is `completed`, `failed`, or `cancelled`.
|
|
36
|
+
* Individual stored results are available from `GET /v2/prompts/runs`.
|
|
37
|
+
*/
|
|
38
|
+
export function promptsRunStatus(
|
|
39
|
+
client$: LightsageMcpCore,
|
|
40
|
+
request: V2PromptRunStatusRetrieveRequest,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): APIPromise<
|
|
43
|
+
Result<
|
|
44
|
+
Response,
|
|
45
|
+
| APIError
|
|
46
|
+
| SDKValidationError
|
|
47
|
+
| UnexpectedClientError
|
|
48
|
+
| InvalidRequestError
|
|
49
|
+
| RequestAbortedError
|
|
50
|
+
| RequestTimeoutError
|
|
51
|
+
| ConnectionError
|
|
52
|
+
>
|
|
53
|
+
> {
|
|
54
|
+
return new APIPromise($do(
|
|
55
|
+
client$,
|
|
56
|
+
request,
|
|
57
|
+
options,
|
|
58
|
+
));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async function $do(
|
|
62
|
+
client$: LightsageMcpCore,
|
|
63
|
+
request: V2PromptRunStatusRetrieveRequest,
|
|
64
|
+
options?: RequestOptions,
|
|
65
|
+
): Promise<
|
|
66
|
+
[
|
|
67
|
+
Result<
|
|
68
|
+
Response,
|
|
69
|
+
| APIError
|
|
70
|
+
| SDKValidationError
|
|
71
|
+
| UnexpectedClientError
|
|
72
|
+
| InvalidRequestError
|
|
73
|
+
| RequestAbortedError
|
|
74
|
+
| RequestTimeoutError
|
|
75
|
+
| ConnectionError
|
|
76
|
+
>,
|
|
77
|
+
APICall,
|
|
78
|
+
]
|
|
79
|
+
> {
|
|
80
|
+
const parsed$ = safeParse(
|
|
81
|
+
request,
|
|
82
|
+
(value$) => V2PromptRunStatusRetrieveRequest$zodSchema.parse(value$),
|
|
83
|
+
"Input validation failed",
|
|
84
|
+
);
|
|
85
|
+
if (!parsed$.ok) {
|
|
86
|
+
return [parsed$, { status: "invalid" }];
|
|
87
|
+
}
|
|
88
|
+
const payload$ = parsed$.value;
|
|
89
|
+
const body$ = null;
|
|
90
|
+
|
|
91
|
+
const pathParams$ = {
|
|
92
|
+
run_id: encodeSimple("run_id", payload$.run_id, {
|
|
93
|
+
explode: false,
|
|
94
|
+
charEncoding: "percent",
|
|
95
|
+
}),
|
|
96
|
+
};
|
|
97
|
+
const path$ = pathToFunc("/v2/prompts/runs/{run_id}/status")(
|
|
98
|
+
pathParams$,
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
const headers$ = new Headers(compactMap({
|
|
102
|
+
Accept: "application/json",
|
|
103
|
+
}));
|
|
104
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
105
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
106
|
+
|
|
107
|
+
const context = {
|
|
108
|
+
options: client$._options,
|
|
109
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
110
|
+
operationID: "v2_prompt_run_status_retrieve",
|
|
111
|
+
oAuth2Scopes: null,
|
|
112
|
+
resolvedSecurity: requestSecurity,
|
|
113
|
+
securitySource: client$._options.security,
|
|
114
|
+
retryConfig: options?.retries
|
|
115
|
+
|| client$._options.retryConfig
|
|
116
|
+
|| { strategy: "none" },
|
|
117
|
+
retryCodes: options?.retryCodes || [
|
|
118
|
+
"429",
|
|
119
|
+
"500",
|
|
120
|
+
"502",
|
|
121
|
+
"503",
|
|
122
|
+
"504",
|
|
123
|
+
],
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
const requestRes = client$._createRequest(context, {
|
|
127
|
+
security: requestSecurity,
|
|
128
|
+
method: "GET",
|
|
129
|
+
baseURL: options?.serverURL,
|
|
130
|
+
path: path$,
|
|
131
|
+
headers: headers$,
|
|
132
|
+
body: body$,
|
|
133
|
+
userAgent: client$._options.userAgent,
|
|
134
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
135
|
+
|| -1,
|
|
136
|
+
}, options);
|
|
137
|
+
if (!requestRes.ok) {
|
|
138
|
+
return [requestRes, { status: "invalid" }];
|
|
139
|
+
}
|
|
140
|
+
const req$ = requestRes.value;
|
|
141
|
+
|
|
142
|
+
const doResult = await client$._do(req$, {
|
|
143
|
+
context,
|
|
144
|
+
errorCodes: [],
|
|
145
|
+
retryConfig: context.retryConfig,
|
|
146
|
+
retryCodes: context.retryCodes,
|
|
147
|
+
});
|
|
148
|
+
if (!doResult.ok) {
|
|
149
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
150
|
+
}
|
|
151
|
+
return [doResult, {
|
|
152
|
+
status: "complete",
|
|
153
|
+
"request": req$,
|
|
154
|
+
response: doResult.value,
|
|
155
|
+
}];
|
|
156
|
+
}
|
package/src/landing-page.ts
CHANGED
|
@@ -931,7 +931,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
|
|
|
931
931
|
<h1>Instructions</h1>
|
|
932
932
|
<p>One-click installation for Claude Desktop users</p>
|
|
933
933
|
<div class="instruction-item">
|
|
934
|
-
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.
|
|
934
|
+
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.3/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
935
935
|
📥 Download MCP Bundle
|
|
936
936
|
</a>
|
|
937
937
|
</div>
|
package/src/lib/config.ts
CHANGED
|
@@ -66,7 +66,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
66
66
|
export const SDK_METADATA = {
|
|
67
67
|
language: "typescript",
|
|
68
68
|
openapiDocVersion: "1.0.0",
|
|
69
|
-
sdkVersion: "0.4.
|
|
69
|
+
sdkVersion: "0.4.3",
|
|
70
70
|
genVersion: "2.941.0",
|
|
71
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.4.
|
|
71
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.4.3 2.941.0 1.0.0 @lightsage/mcp",
|
|
72
72
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -48,6 +48,8 @@ import { tool$evalTemplatesV2EvalTemplatesUpdate } from "./tools/evalTemplatesV2
|
|
|
48
48
|
import { tool$mcpServersV2MCPServersList } from "./tools/mcpServersV2MCPServersList.js";
|
|
49
49
|
import { tool$opportunitiesV2OpportunitiesList } from "./tools/opportunitiesV2OpportunitiesList.js";
|
|
50
50
|
import { tool$opportunitiesV2OpportunitiesRetrieve } from "./tools/opportunitiesV2OpportunitiesRetrieve.js";
|
|
51
|
+
import { tool$promptsRun } from "./tools/promptsRun.js";
|
|
52
|
+
import { tool$promptsRunStatus } from "./tools/promptsRunStatus.js";
|
|
51
53
|
import { tool$promptsV2PromptRunsList } from "./tools/promptsV2PromptRunsList.js";
|
|
52
54
|
import { tool$promptsV2PromptRunsRetrieve } from "./tools/promptsV2PromptRunsRetrieve.js";
|
|
53
55
|
import { tool$promptsV2PromptsCreate } from "./tools/promptsV2PromptsCreate.js";
|
|
@@ -96,7 +98,7 @@ export function createMCPServer(deps: {
|
|
|
96
98
|
sizes: ["any"],
|
|
97
99
|
}],
|
|
98
100
|
name: "LightsageMcp",
|
|
99
|
-
version: "0.4.
|
|
101
|
+
version: "0.4.3",
|
|
100
102
|
});
|
|
101
103
|
|
|
102
104
|
const getClient = deps.getSDK || (() =>
|
|
@@ -158,6 +160,8 @@ export function createMCPServer(deps: {
|
|
|
158
160
|
tool(tool$promptsV2PromptsRetrieve);
|
|
159
161
|
tool(tool$promptsV2PromptsUpdate);
|
|
160
162
|
tool(tool$promptsV2PromptsDelete);
|
|
163
|
+
tool(tool$promptsRun);
|
|
164
|
+
tool(tool$promptsRunStatus);
|
|
161
165
|
tool(tool$opportunitiesV2OpportunitiesList);
|
|
162
166
|
tool(tool$opportunitiesV2OpportunitiesRetrieve);
|
|
163
167
|
tool(tool$tasksV2TasksList);
|