@lightsage/mcp 0.4.25 → 0.4.27

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.
Files changed (130) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +548 -156
  3. package/bin/mcp-server.js.map +37 -32
  4. package/esm/funcs/promptsCreate.d.ts +1 -1
  5. package/esm/funcs/promptsCreate.js +1 -1
  6. package/esm/funcs/promptsTagsList.d.ts +15 -0
  7. package/esm/funcs/promptsTagsList.d.ts.map +1 -0
  8. package/esm/funcs/promptsTagsList.js +72 -0
  9. package/esm/funcs/promptsTagsList.js.map +1 -0
  10. package/esm/funcs/promptsUpdate.d.ts +1 -1
  11. package/esm/funcs/promptsUpdate.js +1 -1
  12. package/esm/landing-page.js +1 -1
  13. package/esm/lib/config.d.ts +2 -2
  14. package/esm/lib/config.js +2 -2
  15. package/esm/mcp-server/mcp-server.js +1 -1
  16. package/esm/mcp-server/server.d.ts.map +1 -1
  17. package/esm/mcp-server/server.js +3 -1
  18. package/esm/mcp-server/server.js.map +1 -1
  19. package/esm/mcp-server/tools/promptsCreate.js +1 -1
  20. package/esm/mcp-server/tools/promptsCreate.js.map +1 -1
  21. package/esm/mcp-server/tools/promptsTagsList.d.ts +3 -0
  22. package/esm/mcp-server/tools/promptsTagsList.d.ts.map +1 -0
  23. package/esm/mcp-server/tools/promptsTagsList.js +30 -0
  24. package/esm/mcp-server/tools/promptsTagsList.js.map +1 -0
  25. package/esm/mcp-server/tools/promptsUpdate.js +1 -1
  26. package/esm/mcp-server/tools/promptsUpdate.js.map +1 -1
  27. package/esm/models/createevaltemplaterequest.d.ts +2 -2
  28. package/esm/models/createevaltemplaterequest.d.ts.map +1 -1
  29. package/esm/models/createevaltemplaterequest.js +1 -1
  30. package/esm/models/createevaltemplaterequest.js.map +1 -1
  31. package/esm/models/createv2agentpreferenceevalrequest.d.ts +1 -0
  32. package/esm/models/createv2agentpreferenceevalrequest.d.ts.map +1 -1
  33. package/esm/models/createv2agentpreferenceevalrequest.js +1 -0
  34. package/esm/models/createv2agentpreferenceevalrequest.js.map +1 -1
  35. package/esm/models/createv2evalrequest.d.ts +1 -0
  36. package/esm/models/createv2evalrequest.d.ts.map +1 -1
  37. package/esm/models/createv2evalrequest.js +1 -0
  38. package/esm/models/createv2evalrequest.js.map +1 -1
  39. package/esm/models/createv2promptrequest.d.ts +1 -0
  40. package/esm/models/createv2promptrequest.d.ts.map +1 -1
  41. package/esm/models/createv2promptrequest.js +1 -0
  42. package/esm/models/createv2promptrequest.js.map +1 -1
  43. package/esm/models/createv2repositoryrequest.d.ts.map +1 -1
  44. package/esm/models/createv2repositoryrequest.js +1 -1
  45. package/esm/models/createv2repositoryrequest.js.map +1 -1
  46. package/esm/models/evaltemplate.d.ts +2 -2
  47. package/esm/models/evaltemplate.d.ts.map +1 -1
  48. package/esm/models/evaltemplate.js +1 -1
  49. package/esm/models/evaltemplate.js.map +1 -1
  50. package/esm/models/updateevaltemplaterequest.d.ts +2 -2
  51. package/esm/models/updateevaltemplaterequest.d.ts.map +1 -1
  52. package/esm/models/updateevaltemplaterequest.js +1 -1
  53. package/esm/models/updateevaltemplaterequest.js.map +1 -1
  54. package/esm/models/updatev2agentpreferenceevalrequest.d.ts +1 -0
  55. package/esm/models/updatev2agentpreferenceevalrequest.d.ts.map +1 -1
  56. package/esm/models/updatev2agentpreferenceevalrequest.js +1 -0
  57. package/esm/models/updatev2agentpreferenceevalrequest.js.map +1 -1
  58. package/esm/models/updatev2evalrequest.d.ts +1 -0
  59. package/esm/models/updatev2evalrequest.d.ts.map +1 -1
  60. package/esm/models/updatev2evalrequest.js +1 -0
  61. package/esm/models/updatev2evalrequest.js.map +1 -1
  62. package/esm/models/updatev2promptrequest.d.ts +1 -0
  63. package/esm/models/updatev2promptrequest.d.ts.map +1 -1
  64. package/esm/models/updatev2promptrequest.js +1 -0
  65. package/esm/models/updatev2promptrequest.js.map +1 -1
  66. package/esm/models/v2agent.d.ts +2 -0
  67. package/esm/models/v2agent.d.ts.map +1 -1
  68. package/esm/models/v2agent.js +2 -0
  69. package/esm/models/v2agent.js.map +1 -1
  70. package/esm/models/v2agentpreferenceeval.d.ts +1 -0
  71. package/esm/models/v2agentpreferenceeval.d.ts.map +1 -1
  72. package/esm/models/v2agentpreferenceeval.js +1 -0
  73. package/esm/models/v2agentpreferenceeval.js.map +1 -1
  74. package/esm/models/v2eval.d.ts +1 -0
  75. package/esm/models/v2eval.d.ts.map +1 -1
  76. package/esm/models/v2eval.js +1 -0
  77. package/esm/models/v2eval.js.map +1 -1
  78. package/esm/models/v2evalresultsummary.d.ts +1 -0
  79. package/esm/models/v2evalresultsummary.d.ts.map +1 -1
  80. package/esm/models/v2evalresultsummary.js +1 -0
  81. package/esm/models/v2evalresultsummary.js.map +1 -1
  82. package/esm/models/v2promptrundetail.d.ts +1 -0
  83. package/esm/models/v2promptrundetail.d.ts.map +1 -1
  84. package/esm/models/v2promptrundetail.js +3 -2
  85. package/esm/models/v2promptrundetail.js.map +1 -1
  86. package/esm/models/v2promptrunsummary.d.ts +1 -0
  87. package/esm/models/v2promptrunsummary.d.ts.map +1 -1
  88. package/esm/models/v2promptrunsummary.js +3 -2
  89. package/esm/models/v2promptrunsummary.js.map +1 -1
  90. package/esm/models/v2prompttagsresponse.d.ts +8 -0
  91. package/esm/models/v2prompttagsresponse.d.ts.map +1 -0
  92. package/esm/models/v2prompttagsresponse.js +12 -0
  93. package/esm/models/v2prompttagsresponse.js.map +1 -0
  94. package/esm/models/v2repository.d.ts +19 -0
  95. package/esm/models/v2repository.d.ts.map +1 -1
  96. package/esm/models/v2repository.js +15 -0
  97. package/esm/models/v2repository.js.map +1 -1
  98. package/esm/tool-names.d.ts.map +1 -1
  99. package/esm/tool-names.js +6 -2
  100. package/esm/tool-names.js.map +1 -1
  101. package/package.json +1 -1
  102. package/src/funcs/promptsCreate.ts +1 -1
  103. package/src/funcs/promptsTagsList.ts +124 -0
  104. package/src/funcs/promptsUpdate.ts +1 -1
  105. package/src/landing-page.ts +1 -1
  106. package/src/lib/config.ts +2 -2
  107. package/src/mcp-server/mcp-server.ts +1 -1
  108. package/src/mcp-server/server.ts +3 -1
  109. package/src/mcp-server/tools/promptsCreate.ts +1 -1
  110. package/src/mcp-server/tools/promptsTagsList.ts +36 -0
  111. package/src/mcp-server/tools/promptsUpdate.ts +1 -1
  112. package/src/models/createevaltemplaterequest.ts +4 -4
  113. package/src/models/createv2agentpreferenceevalrequest.ts +4 -0
  114. package/src/models/createv2evalrequest.ts +4 -0
  115. package/src/models/createv2promptrequest.ts +4 -0
  116. package/src/models/createv2repositoryrequest.ts +3 -1
  117. package/src/models/evaltemplate.ts +4 -4
  118. package/src/models/updateevaltemplaterequest.ts +4 -2
  119. package/src/models/updatev2agentpreferenceevalrequest.ts +4 -0
  120. package/src/models/updatev2evalrequest.ts +4 -0
  121. package/src/models/updatev2promptrequest.ts +4 -0
  122. package/src/models/v2agent.ts +12 -1
  123. package/src/models/v2agentpreferenceeval.ts +4 -0
  124. package/src/models/v2eval.ts +4 -0
  125. package/src/models/v2evalresultsummary.ts +4 -0
  126. package/src/models/v2promptrundetail.ts +6 -2
  127. package/src/models/v2promptrunsummary.ts +6 -2
  128. package/src/models/v2prompttagsresponse.ts +21 -0
  129. package/src/models/v2repository.ts +29 -0
  130. package/src/tool-names.ts +6 -2
@@ -45,6 +45,7 @@ export type V2PromptRunDetail = {
45
45
  prompt?: V2PromptRunPrompt | null | undefined;
46
46
  platform?: V2PromptRunPlatform | null | undefined;
47
47
  target_kind?: V2PromptRunDetailTargetKind | null | undefined;
48
+ agent?: string | null | undefined;
48
49
  harness?: string | null | undefined;
49
50
  model_id?: string | null | undefined;
50
51
  run_date: string;
@@ -67,6 +68,9 @@ export type V2PromptRunDetail = {
67
68
 
68
69
  export const V2PromptRunDetail$zodSchema: z.ZodType<V2PromptRunDetail> = z
69
70
  .object({
71
+ agent: z.string().nullable().optional().describe(
72
+ "The agent from `GET /v2/agents` that ran a coding-agent prompt, such as `claude-code:claude-sonnet-5-5`; null for answer engines.",
73
+ ),
70
74
  citation_count: z.int().default(0),
71
75
  citations: z.array(V2PromptRunCitation$zodSchema).optional(),
72
76
  conversation_turns: z.array(z.record(z.string(), z.any())).optional()
@@ -79,13 +83,13 @@ export const V2PromptRunDetail$zodSchema: z.ZodType<V2PromptRunDetail> = z
79
83
  "Whether the run satisfied the requested web access mode. Null means the default mode was used or isolation could not be proven.",
80
84
  ),
81
85
  harness: z.string().nullable().optional().describe(
82
- "Coding-agent harness for agent runs; otherwise the answer platform identifier.",
86
+ "Deprecated for coding agents: use `agent`. Coding-agent harness for agent runs; otherwise the answer platform identifier.",
83
87
  ),
84
88
  id: z.string(),
85
89
  is_brand_mentioned: z.boolean().nullable().optional(),
86
90
  mentions: z.array(V2PromptRunMention$zodSchema).optional(),
87
91
  model_id: z.string().nullable().optional().describe(
88
- "Public model ID. Internal hosting providers are never returned.",
92
+ "Deprecated for coding agents: use `agent`. Public model ID. Internal hosting providers are never returned.",
89
93
  ),
90
94
  platform: V2PromptRunPlatform$zodSchema.nullable().optional(),
91
95
  prompt: V2PromptRunPrompt$zodSchema.nullable().optional(),
@@ -37,6 +37,7 @@ export type V2PromptRunSummary = {
37
37
  prompt?: V2PromptRunPrompt | null | undefined;
38
38
  platform?: V2PromptRunPlatform | null | undefined;
39
39
  target_kind?: V2PromptRunSummaryTargetKind | null | undefined;
40
+ agent?: string | null | undefined;
40
41
  harness?: string | null | undefined;
41
42
  model_id?: string | null | undefined;
42
43
  run_date: string;
@@ -54,6 +55,9 @@ export type V2PromptRunSummary = {
54
55
 
55
56
  export const V2PromptRunSummary$zodSchema: z.ZodType<V2PromptRunSummary> = z
56
57
  .object({
58
+ agent: z.string().nullable().optional().describe(
59
+ "The agent from `GET /v2/agents` that ran a coding-agent prompt, such as `claude-code:claude-sonnet-5-5`; null for answer engines.",
60
+ ),
57
61
  citation_count: z.int().default(0),
58
62
  created_at: z.string().nullable().optional(),
59
63
  grounding_qualification_reason: z.string().nullable().optional(),
@@ -61,12 +65,12 @@ export const V2PromptRunSummary$zodSchema: z.ZodType<V2PromptRunSummary> = z
61
65
  "Whether the run satisfied the requested web access mode. Null means the default mode was used or isolation could not be proven.",
62
66
  ),
63
67
  harness: z.string().nullable().optional().describe(
64
- "Coding-agent harness for agent runs; otherwise the answer platform identifier.",
68
+ "Deprecated for coding agents: use `agent`. Coding-agent harness for agent runs; otherwise the answer platform identifier.",
65
69
  ),
66
70
  id: z.string(),
67
71
  is_brand_mentioned: z.boolean().nullable().optional(),
68
72
  model_id: z.string().nullable().optional().describe(
69
- "Public model ID. Internal hosting providers are never returned.",
73
+ "Deprecated for coding agents: use `agent`. Public model ID. Internal hosting providers are never returned.",
70
74
  ),
71
75
  platform: V2PromptRunPlatform$zodSchema.nullable().optional(),
72
76
  prompt: V2PromptRunPrompt$zodSchema.nullable().optional(),
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 7e7f898f3e77
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import {
8
+ PublicPromptTag,
9
+ PublicPromptTag$zodSchema,
10
+ } from "./publicprompttag.js";
11
+
12
+ export type V2PromptTagsResponse = {
13
+ data?: Array<PublicPromptTag> | undefined;
14
+ count: number;
15
+ };
16
+
17
+ export const V2PromptTagsResponse$zodSchema: z.ZodType<V2PromptTagsResponse> = z
18
+ .object({
19
+ count: z.int(),
20
+ data: z.array(PublicPromptTag$zodSchema).optional(),
21
+ });
@@ -52,6 +52,27 @@ export const V2RepositoryFramework$zodSchema = z.enum([
52
52
  "custom",
53
53
  ]);
54
54
 
55
+ /**
56
+ * How runs clone the repository: `public` without credentials, or `github_app` through your organization's Lightsage GitHub App installation, which is how private repositories are reached. `lost` means it was saved as private but the GitHub App can no longer read it, so runs using it fail until access is restored.
57
+ */
58
+ export const Access = {
59
+ Public: "public",
60
+ GithubApp: "github_app",
61
+ Lost: "lost",
62
+ } as const;
63
+ /**
64
+ * How runs clone the repository: `public` without credentials, or `github_app` through your organization's Lightsage GitHub App installation, which is how private repositories are reached. `lost` means it was saved as private but the GitHub App can no longer read it, so runs using it fail until access is restored.
65
+ */
66
+ export type Access = ClosedEnum<typeof Access>;
67
+
68
+ export const Access$zodSchema = z.enum([
69
+ "public",
70
+ "github_app",
71
+ "lost",
72
+ ]).describe(
73
+ "How runs clone the repository: `public` without credentials, or `github_app` through your organization's Lightsage GitHub App installation, which is how private repositories are reached. `lost` means it was saved as private but the GitHub App can no longer read it, so runs using it fail until access is restored.",
74
+ );
75
+
55
76
  export type V2Repository = {
56
77
  id: string;
57
78
  kind: V2RepositoryKind;
@@ -62,11 +83,16 @@ export type V2Repository = {
62
83
  install_steps?: Array<string> | undefined;
63
84
  framework?: V2RepositoryFramework | undefined;
64
85
  enabled: boolean;
86
+ access?: Access | undefined;
87
+ private?: boolean | undefined;
65
88
  created_at?: string | null | undefined;
66
89
  updated_at?: string | null | undefined;
67
90
  };
68
91
 
69
92
  export const V2Repository$zodSchema: z.ZodType<V2Repository> = z.object({
93
+ access: Access$zodSchema.default("public").describe(
94
+ "How runs clone the repository: `public` without credentials, or `github_app` through your organization's Lightsage GitHub App installation, which is how private repositories are reached. `lost` means it was saved as private but the GitHub App can no longer read it, so runs using it fail until access is restored.",
95
+ ),
70
96
  created_at: z.string().nullable().optional(),
71
97
  enabled: z.boolean(),
72
98
  framework: V2RepositoryFramework$zodSchema.default("custom"),
@@ -78,6 +104,9 @@ export const V2Repository$zodSchema: z.ZodType<V2Repository> = z.object({
78
104
  "Whether the repository is a read-only built-in template or an organization-owned saved repository.",
79
105
  ),
80
106
  name: z.string(),
107
+ private: z.boolean().default(false).describe(
108
+ "Whether the repository is private on GitHub.",
109
+ ),
81
110
  ref: z.string(),
82
111
  repo_url: z.string(),
83
112
  subdir: z.string().default(""),
package/src/tool-names.ts CHANGED
@@ -34,7 +34,11 @@ export const toolNames: Array<{ name: string; description: string }>= [
34
34
  },
35
35
  {
36
36
  "name": "prompts-create",
37
- "description": "Create Prompts\n\nCreates prompts in a batch. Each item is validated independently, so the response can contain both created prompts and individual errors."
37
+ "description": "Create Prompts\n\nCreates prompts in a batch. Each item is validated independently, so the response can contain both created prompts and individual errors. Tag names that match no existing prompt tag create new tags."
38
+ },
39
+ {
40
+ "name": "prompts-tags-list",
41
+ "description": "List Tags\n\nReturns the organization's prompt tags. Set tags on a prompt by name with `tags` on `POST /v2/prompts` or `PATCH /v2/prompts/{prompt_id}`; a name with no match creates the tag."
38
42
  },
39
43
  {
40
44
  "name": "prompts-topics-list",
@@ -74,7 +78,7 @@ export const toolNames: Array<{ name: string; description: string }>= [
74
78
  },
75
79
  {
76
80
  "name": "prompts-update",
77
- "description": "Update Prompt\n\nUpdates a prompt's text, topic, platforms, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged."
81
+ "description": "Update Prompt\n\nUpdates a prompt's text, topic, platforms, tags, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged; `tags` replaces the prompt's tags."
78
82
  },
79
83
  {
80
84
  "name": "prompts-delete",