@lightsage/mcp 0.2.0 → 0.2.2
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 +37 -29
- package/bin/mcp-server.js.map +16 -16
- package/esm/funcs/evalsMonitor.d.ts +1 -1
- package/esm/funcs/evalsMonitor.js +1 -2
- package/esm/funcs/evalsMonitor.js.map +1 -1
- package/esm/funcs/evalsRun.d.ts +9 -2
- package/esm/funcs/evalsRun.d.ts.map +1 -1
- package/esm/funcs/evalsRun.js +9 -2
- package/esm/funcs/evalsRun.js.map +1 -1
- package/esm/funcs/repositoriesV2RepositoriesList.d.ts +1 -1
- package/esm/funcs/repositoriesV2RepositoriesList.js +1 -1
- 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.js +1 -1
- package/esm/mcp-server/tools/evalsMonitor.js +1 -1
- package/esm/mcp-server/tools/evalsMonitor.js.map +1 -1
- package/esm/mcp-server/tools/evalsRun.d.ts.map +1 -1
- package/esm/mcp-server/tools/evalsRun.js +9 -2
- package/esm/mcp-server/tools/evalsRun.js.map +1 -1
- package/esm/mcp-server/tools/repositoriesV2RepositoriesList.js +1 -1
- package/esm/mcp-server/tools/repositoriesV2RepositoriesList.js.map +1 -1
- package/esm/models/createv2evalrunrequest.d.ts +3 -0
- package/esm/models/createv2evalrunrequest.d.ts.map +1 -1
- package/esm/models/createv2evalrunrequest.js +9 -9
- package/esm/models/createv2evalrunrequest.js.map +1 -1
- package/esm/models/v2evalrunsmonitorop.d.ts +0 -1
- package/esm/models/v2evalrunsmonitorop.d.ts.map +1 -1
- package/esm/models/v2evalrunsmonitorop.js +1 -3
- package/esm/models/v2evalrunsmonitorop.js.map +1 -1
- package/esm/models/v2listtasksresponse.d.ts +1 -1
- package/esm/models/v2repository.d.ts +16 -0
- package/esm/models/v2repository.d.ts.map +1 -1
- package/esm/models/v2repository.js +13 -1
- package/esm/models/v2repository.js.map +1 -1
- package/esm/models/v2taskslistop.d.ts +1 -1
- package/esm/tool-names.js +3 -3
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/evalsMonitor.ts +1 -2
- package/src/funcs/evalsRun.ts +9 -2
- package/src/funcs/repositoriesV2RepositoriesList.ts +1 -1
- 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 +1 -1
- package/src/mcp-server/tools/evalsMonitor.ts +1 -1
- package/src/mcp-server/tools/evalsRun.ts +9 -2
- package/src/mcp-server/tools/repositoriesV2RepositoriesList.ts +1 -1
- package/src/models/createv2evalrunrequest.ts +16 -9
- package/src/models/v2evalrunsmonitorop.ts +3 -6
- package/src/models/v2repository.ts +26 -1
- package/src/tool-names.ts +3 -3
package/src/mcp-server/server.ts
CHANGED
|
@@ -15,7 +15,7 @@ export const tool$evalsMonitor: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "evals-monitor",
|
|
16
16
|
description: `Monitor Runs
|
|
17
17
|
|
|
18
|
-
Streams an immediate snapshot followed by live status and sanitized activity
|
|
18
|
+
Streams an immediate snapshot followed by live status and sanitized activity. Provide \`run_id\` to monitor one public v2 eval run, or omit it to capture all active runs when the connection opens.`,
|
|
19
19
|
annotations: {
|
|
20
20
|
"title": "",
|
|
21
21
|
"destructiveHint": false,
|
|
@@ -13,9 +13,16 @@ const args = {
|
|
|
13
13
|
|
|
14
14
|
export const tool$evalsRun: ToolDefinition<typeof args> = {
|
|
15
15
|
name: "evals-run",
|
|
16
|
-
description: `
|
|
16
|
+
description: `Start an eval run
|
|
17
17
|
|
|
18
|
-
Queues a durable eval job and returns immediately with a polling ID. Poll \`GET /v2/eval-runs/{run_id}\` until its status reaches a terminal value.
|
|
18
|
+
Queues a durable eval job and returns immediately with a polling ID. Poll \`GET /v2/eval-runs/{run_id}\` until its status reaches a terminal value.
|
|
19
|
+
|
|
20
|
+
Send one of these flat request forms:
|
|
21
|
+
|
|
22
|
+
- **Saved eval:** provide \`eval_id\`, \`configuration_id\`, and \`agent_id\`.
|
|
23
|
+
- **Direct create-and-run:** provide \`prompt\`, \`judges\`, and \`agent_id\`. You may also provide a repository, write-only environment variables, and public skill packages.
|
|
24
|
+
|
|
25
|
+
Do not combine saved-run and direct-run fields. No separate \`mode\` field is required.`,
|
|
19
26
|
annotations: {
|
|
20
27
|
"title": "",
|
|
21
28
|
"destructiveHint": false,
|
|
@@ -10,7 +10,7 @@ export const tool$repositoriesV2RepositoriesList: ToolDefinition = {
|
|
|
10
10
|
name: "repositories-v2-repositories-list",
|
|
11
11
|
description: `List Repositories
|
|
12
12
|
|
|
13
|
-
Returns Git repositories
|
|
13
|
+
Returns built-in templates and enabled saved Git repositories. Pass an item's \`id\` directly as \`repository\` in a direct eval run. Public GitHub URLs are also accepted by eval runs but are not included in this list.`,
|
|
14
14
|
annotations: {
|
|
15
15
|
"title": "",
|
|
16
16
|
"destructiveHint": false,
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Start an eval run using one of two flat request forms. Saved runs require `eval_id`, `configuration_id`, and `agent_id`. Direct create-and-run requests require `prompt`, at least one item in `judges`, and `agent_id`. Do not combine saved-run and direct-run fields; no separate mode field is required.
|
|
10
|
+
*/
|
|
8
11
|
export type CreateV2EvalRunRequest = {
|
|
9
12
|
eval_id?: string | undefined;
|
|
10
13
|
configuration_id?: string | undefined;
|
|
@@ -19,26 +22,30 @@ export type CreateV2EvalRunRequest = {
|
|
|
19
22
|
export const CreateV2EvalRunRequest$zodSchema: z.ZodType<
|
|
20
23
|
CreateV2EvalRunRequest
|
|
21
24
|
> = z.object({
|
|
22
|
-
agent_id: z.string().describe(
|
|
25
|
+
agent_id: z.string().describe(
|
|
26
|
+
"Required in both request forms. Runnable agent ID from `GET /v2/agents`.",
|
|
27
|
+
),
|
|
23
28
|
configuration_id: z.string().optional().describe(
|
|
24
|
-
"Saved runtime configuration
|
|
29
|
+
"Saved-run form only. Saved runtime configuration; required when `eval_id` is provided.",
|
|
25
30
|
),
|
|
26
31
|
env: z.record(z.string(), z.string()).optional().describe(
|
|
27
|
-
"Write-only environment variables
|
|
32
|
+
"Direct create-and-run form only. Write-only environment variables; values are stored only in the queued job's private configuration.",
|
|
28
33
|
),
|
|
29
34
|
eval_id: z.string().optional().describe(
|
|
30
|
-
"Existing eval definition to run. Omit to create
|
|
35
|
+
"Saved-run form only. Existing eval definition to run. Omit this field to use the direct create-and-run form.",
|
|
31
36
|
),
|
|
32
37
|
judges: z.array(z.string()).optional().describe(
|
|
33
|
-
"
|
|
38
|
+
"Direct create-and-run form only. Provide at least one success criterion. CLI clients may expose this string array as a repeatable `--judge` flag.",
|
|
34
39
|
),
|
|
35
40
|
prompt: z.string().optional().describe(
|
|
36
|
-
"Task prompt
|
|
41
|
+
"Direct create-and-run form only. Task prompt; required when `eval_id` is omitted.",
|
|
37
42
|
),
|
|
38
43
|
repository: z.string().optional().describe(
|
|
39
|
-
"
|
|
44
|
+
"Direct create-and-run form only. A saved repository ID, built-in alias such as `nextjs-starter`, or a public GitHub HTTPS URL.",
|
|
40
45
|
),
|
|
41
46
|
skills: z.array(z.string()).optional().describe(
|
|
42
|
-
"
|
|
47
|
+
"Additional public skill packages to install before the agent starts in either request form, using GitHub `owner/repository` references such as `resend/resend-skills`. CLI clients may expose this string array as a repeatable `--skill` flag.",
|
|
43
48
|
),
|
|
44
|
-
})
|
|
49
|
+
}).describe(
|
|
50
|
+
"Start an eval run using one of two flat request forms. Saved runs require `eval_id`, `configuration_id`, and `agent_id`. Direct create-and-run requests require `prompt`, at least one item in `judges`, and `agent_id`. Do not combine saved-run and direct-run fields; no separate mode field is required.",
|
|
51
|
+
);
|
|
@@ -29,7 +29,6 @@ export const Detail$zodSchema = z.enum([
|
|
|
29
29
|
|
|
30
30
|
export type V2EvalRunsMonitorRequest = {
|
|
31
31
|
run_id?: string | undefined;
|
|
32
|
-
all?: boolean | undefined;
|
|
33
32
|
detail?: Detail | undefined;
|
|
34
33
|
after_id?: number | undefined;
|
|
35
34
|
};
|
|
@@ -40,14 +39,12 @@ export const V2EvalRunsMonitorRequest$zodSchema: z.ZodType<
|
|
|
40
39
|
after_id: z.int().default(0).describe(
|
|
41
40
|
"Durable child-event cursor used when reconnecting.",
|
|
42
41
|
),
|
|
43
|
-
all: z.boolean().default(false).describe(
|
|
44
|
-
"Capture all currently active public v2 eval runs.",
|
|
45
|
-
),
|
|
46
42
|
detail: Detail$zodSchema.default("summary").describe(
|
|
47
43
|
"Reduced activity or the full sanitized durable trace.",
|
|
48
44
|
),
|
|
49
|
-
run_id: z.string().describe(
|
|
50
|
-
.
|
|
45
|
+
run_id: z.string().describe(
|
|
46
|
+
"Parent run ID returned by `POST /v2/eval-runs`. Omit to capture all currently active public v2 eval runs.",
|
|
47
|
+
).optional(),
|
|
51
48
|
});
|
|
52
49
|
|
|
53
50
|
export type V2EvalRunsMonitorResponse = string | HTTPValidationError;
|
|
@@ -6,6 +6,25 @@
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
import { ClosedEnum } from "../types/enums.js";
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Whether the repository is a read-only built-in template or an organization-owned saved repository.
|
|
11
|
+
*/
|
|
12
|
+
export const Kind = {
|
|
13
|
+
Template: "template",
|
|
14
|
+
Saved: "saved",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the repository is a read-only built-in template or an organization-owned saved repository.
|
|
18
|
+
*/
|
|
19
|
+
export type Kind = ClosedEnum<typeof Kind>;
|
|
20
|
+
|
|
21
|
+
export const Kind$zodSchema = z.enum([
|
|
22
|
+
"template",
|
|
23
|
+
"saved",
|
|
24
|
+
]).describe(
|
|
25
|
+
"Whether the repository is a read-only built-in template or an organization-owned saved repository.",
|
|
26
|
+
);
|
|
27
|
+
|
|
9
28
|
export const V2RepositoryFramework = {
|
|
10
29
|
Fastify: "fastify",
|
|
11
30
|
Nuxt: "nuxt",
|
|
@@ -35,6 +54,7 @@ export const V2RepositoryFramework$zodSchema = z.enum([
|
|
|
35
54
|
|
|
36
55
|
export type V2Repository = {
|
|
37
56
|
id: string;
|
|
57
|
+
kind: Kind;
|
|
38
58
|
name: string;
|
|
39
59
|
repo_url: string;
|
|
40
60
|
ref: string;
|
|
@@ -50,8 +70,13 @@ export const V2Repository$zodSchema: z.ZodType<V2Repository> = z.object({
|
|
|
50
70
|
created_at: z.string().nullable().optional(),
|
|
51
71
|
enabled: z.boolean(),
|
|
52
72
|
framework: V2RepositoryFramework$zodSchema.default("custom"),
|
|
53
|
-
id: z.string()
|
|
73
|
+
id: z.string().describe(
|
|
74
|
+
"Value to pass as `repository` in a direct eval run. Built-in templates use aliases such as `nextjs-starter`; saved repositories use their persisted IDs.",
|
|
75
|
+
),
|
|
54
76
|
install_steps: z.array(z.string()).optional(),
|
|
77
|
+
kind: Kind$zodSchema.describe(
|
|
78
|
+
"Whether the repository is a read-only built-in template or an organization-owned saved repository.",
|
|
79
|
+
),
|
|
55
80
|
name: z.string(),
|
|
56
81
|
ref: z.string(),
|
|
57
82
|
repo_url: z.string(),
|
package/src/tool-names.ts
CHANGED
|
@@ -150,11 +150,11 @@ export const toolNames: Array<{ name: string; description: string }>= [
|
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
"name": "evals-run",
|
|
153
|
-
"description": "
|
|
153
|
+
"description": "Start an eval run\n\nQueues a durable eval job and returns immediately with a polling ID. Poll `GET /v2/eval-runs/{run_id}` until its status reaches a terminal value.\n\nSend one of these flat request forms:\n\n- **Saved eval:** provide `eval_id`, `configuration_id`, and `agent_id`.\n- **Direct create-and-run:** provide `prompt`, `judges`, and `agent_id`. You may also provide a repository, write-only environment variables, and public skill packages.\n\nDo not combine saved-run and direct-run fields. No separate `mode` field is required."
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
"name": "evals-monitor",
|
|
157
|
-
"description": "Monitor Runs\n\nStreams an immediate snapshot followed by live status and sanitized activity
|
|
157
|
+
"description": "Monitor Runs\n\nStreams an immediate snapshot followed by live status and sanitized activity. Provide `run_id` to monitor one public v2 eval run, or omit it to capture all active runs when the connection opens."
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
"name": "eval-runs-v2-eval-runs-list",
|
|
@@ -178,7 +178,7 @@ export const toolNames: Array<{ name: string; description: string }>= [
|
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
"name": "repositories-v2-repositories-list",
|
|
181
|
-
"description": "List Repositories\n\nReturns Git repositories
|
|
181
|
+
"description": "List Repositories\n\nReturns built-in templates and enabled saved Git repositories. Pass an item's `id` directly as `repository` in a direct eval run. Public GitHub URLs are also accepted by eval runs but are not included in this list."
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
"name": "repositories-v2-repositories-create",
|