-
Notifications
You must be signed in to change notification settings - Fork 156
feat: add update_page and delete_page tools #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Galeforce1
wants to merge
2
commits into
makeplane:main
Choose a base branch
from
Galeforce1:feat/add-update-delete-page-tools
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+100
−1
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | 🏗️ Heavy lift
🧩 Analysis chain
🏁 Script executed:
Repository: makeplane/plane-mcp-server
Length of output: 5975
🏁 Script executed:
Repository: makeplane/plane-mcp-server
Length of output: 9718
🏁 Script executed:
Repository: makeplane/plane-mcp-server
Length of output: 1250
🌐 Web query:
PyPI plane-sdk 0.2.20 plane.api.pages Pages update_project_page update_workspace_page💡 Result:
In the plane-sdk (v0.2.20), the Page management functionality is available through the client.pages resource [1]. While the SDK is organized to follow standard CRUD patterns (list, create, retrieve, update, delete) [2][3], current developer documentation and resource availability for the specific methods update_workspace_page and update_project_page in the Python SDK are limited. As of recent updates to the Plane API (v1), support for Page CRUD operations (including update) has been added to the underlying REST API [4][5]. In the plane-sdk, you typically interact with resources via the PlaneClient [6][3]. Based on the established patterns for other resources in this SDK, these update operations, if exposed, would likely follow this signature structure: client.pages.update_workspace_page(workspace_slug, page_id, data) client.pages.update_project_page(workspace_slug, project_id, page_id, data) Please check the official Plane Python SDK repository directly for the most current implementation, as the SDK is frequently updated to reflect new v1 API endpoints [7][3]. If these specific methods are not yet explicitly defined in your current installed version, you may need to utilize the underlying client to perform the PATCH request directly against the v1 API endpoints documented in the Plane developer portal [4][5][8].
Citations:
🌐 Web query:
"def update_workspace_page" "makeplane.plane-python-sdk"💡 Result:
The
plane-python-sdkdoes not currently provide a native method namedupdate_workspace_page[1][2][3]. While the Plane API has recently expanded to include CRUD operations for pages [4], the current version of the official Python SDK primarily exposes methods such aslist_workspace_pages,list_project_pages,retrieve_workspace_page, andretrieve_project_page[1][2][3]. If you need to update a workspace page programmatically, you may need to use the underlying API directly via thePATCHmethod at the endpoint/api/v1/workspaces/{slug}/pages/{page_id}/[4][5], utilizing a standard HTTP client such asrequestsorhttpxalong with your API key or OAuth token for authentication [5]. Alternatively, check the repository for the most recent updates, as the SDK is actively maintained and methods are added to match API capabilities [3][6].Citations:
Ship an SDK version that implements these methods.
plane_mcp/tools/pages.py:update_page()callsclient.pages.update_project_page()andupdate_workspace_page(), but the pinnedplane-sdk==0.2.20lock is for0.2.16and the SDK pages resource only exposes list/retrieve/create/delete for pages. That makesupdate_pagefail immediately at runtime on installed environments. Pin a compatible SDK version that includes both methods, or implement the update calls through the existing SDK/client API before registering this tool.🤖 Prompt for AI Agents