@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.
- package/dist/cli.js +14 -11
- 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().
|
|
238
|
-
background_task_id: z.string().
|
|
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().
|
|
243
|
-
started_at: zodJsonDate.
|
|
244
|
-
ended_at: zodJsonDate.
|
|
245
|
-
created_at: zodJsonDate
|
|
246
|
-
updated_at: zodJsonDate
|
|
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.
|
|
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",
|