@pantheon.ai/mcp 0.1.5 → 0.1.6

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 (2) hide show
  1. package/dist/cli.js +14 -11
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -234,16 +234,16 @@ const explorationSchema = z.object({
234
234
  id: z.string(),
235
235
  project_id: z.string(),
236
236
  parent_branch_id: z.string(),
237
- tdd_baseline_branch_id: z.string().optional().nullable(),
238
- background_task_id: z.string().optional().nullable(),
237
+ tdd_baseline_branch_id: z.string().nullable(),
238
+ background_task_id: z.string().nullable(),
239
239
  num_branches: z.number().int(),
240
240
  shared_prompt_sequence: z.string().array(),
241
241
  status_text: z.string(),
242
- call_agent: z.string().optional().nullable(),
243
- started_at: zodJsonDate.optional().nullable(),
244
- ended_at: zodJsonDate.optional().nullable(),
245
- created_at: zodJsonDate.optional(),
246
- updated_at: zodJsonDate.optional(),
242
+ call_agent: z.string().nullable(),
243
+ started_at: zodJsonDate.nullable(),
244
+ ended_at: zodJsonDate.nullable(),
245
+ created_at: zodJsonDate,
246
+ updated_at: zodJsonDate,
247
247
  agent: z.string(),
248
248
  status: z.string()
249
249
  });
@@ -858,7 +858,7 @@ function getServerErrorMessage(error) {
858
858
 
859
859
  //#endregion
860
860
  //#region package.json
861
- var version = "0.1.5";
861
+ var version = "0.1.6";
862
862
 
863
863
  //#endregion
864
864
  //#region src/mcp/mcp.ts
@@ -889,13 +889,17 @@ async function mcpServer({ authorizationHeader }) {
889
889
  }, toolCallback ?? (async ({ params, body }) => {
890
890
  try {
891
891
  const result = await executor.execute(api, params, body);
892
- return {
892
+ if (options.outputSchema) return {
893
893
  content: [{
894
894
  type: "text",
895
895
  text: JSON.stringify(result)
896
896
  }],
897
897
  structuredContent: result
898
898
  };
899
+ else return { content: [{
900
+ type: "text",
901
+ text: JSON.stringify(result)
902
+ }] };
899
903
  } catch (e) {
900
904
  return {
901
905
  isError: true,
@@ -1007,8 +1011,7 @@ async function mcpServer({ authorizationHeader }) {
1007
1011
  shared_prompt_sequence: z.string().array().min(1).max(4).describe("Prompt sequence (1-4 items) shared by all branches."),
1008
1012
  num_branches: z.number().int().min(1).max(50).optional().default(3).describe("Number of parallel branches to create."),
1009
1013
  agent: z.string().optional().describe("Optional agent identifier.")
1010
- }),
1011
- outputSchema: explorationSchema
1014
+ })
1012
1015
  });
1013
1016
  registerApiTool("listProjectExplorations", listProjectExplorations, {
1014
1017
  title: "List project explorations",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pantheon.ai/mcp",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "bin": "dist/cli.js",