@pantheon.ai/mcp 0.1.1 → 0.1.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.
Files changed (3) hide show
  1. package/README.md +11 -0
  2. package/dist/cli.js +13 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -71,6 +71,17 @@ listProjectBranches
71
71
  - Body: none
72
72
  - Output: paged `branch`
73
73
 
74
+ createProjectBranch
75
+ - Description: Create a new branch under a project.
76
+ - Params:
77
+ - `projectId` (string, required)
78
+ - Body:
79
+ - `name` (string, required)
80
+ - `display_name` (string, required)
81
+ - `parent_id` (string, required)
82
+ - `project_id` (string, required)
83
+ - Output: `branch`
84
+
74
85
  getProject
75
86
  - Description: Get a project by id.
76
87
  - Params:
package/dist/cli.js CHANGED
@@ -858,7 +858,7 @@ function getServerErrorMessage(error) {
858
858
 
859
859
  //#endregion
860
860
  //#region package.json
861
- var version = "0.1.0";
861
+ var version = "0.1.1";
862
862
 
863
863
  //#endregion
864
864
  //#region src/mcp/mcp.ts
@@ -931,6 +931,18 @@ async function mcpServer({ authorizationHeader }) {
931
931
  bodySchema: null,
932
932
  outputSchema: paged(branchSchema)
933
933
  });
934
+ registerApiTool("createProjectBranch", createProjectBranch, {
935
+ title: "Create project branch",
936
+ description: "Create a new branch under a project from a parent branch.",
937
+ paramsSchema: z.object({ projectId: z.string().describe("Project (forest) ID.") }),
938
+ bodySchema: z.object({
939
+ name: z.string().describe("Branch name (identifier)."),
940
+ display_name: z.string().describe("Human-readable branch name."),
941
+ parent_id: z.string().describe("Parent branch ID to fork from."),
942
+ project_id: z.string().describe("Project ID (must match params projectId).")
943
+ }),
944
+ outputSchema: branchSchema
945
+ });
934
946
  registerApiTool("getProject", getProject, {
935
947
  title: "Get Pantheon project",
936
948
  description: "Get a project by ID.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pantheon.ai/mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "bin": "dist/cli.js",