plane-mcp-server icon indicating copy to clipboard operation
plane-mcp-server copied to clipboard

feat: Add Pages/Wiki API support

Open 1nk1 opened this issue 10 months ago • 5 comments

Summary

Adds Pages/Wiki API support to Plane MCP server.

New Tools

Tool Description
`list_project_pages` List all pages in a project
`list_workspace_pages` List all workspace pages
`search_pages` Search pages by query
`update_page` Update an existing page
`delete_page` Delete a page

Technical Details

  • Uses `plane-sdk.pages` module from Plane SDK v0.2.2
  • Adds missing `list_pages` endpoints (official server only has `retrieve_page`)
  • Adds `update_page` and `delete_page` (official server only has `create_page`)
  • Adds `search_pages` tool with `workspace_level` parameter

Testing

Tested with:

  • `PLANE_API_KEY=...`
  • `PLANE_WORKSPACE_SLUG=qantum-ai`

Related

  • Enhances official `makeplane/plane-mcp-server`
  • Maintains all existing tools compatibility

Summary by CodeRabbit

Release Notes

  • New Features
    • Added pagination support for listing project and workspace pages with cursor-based navigation.
    • Added ability to update existing pages with customizable fields including name, description, access level, and color.
    • Added page deletion functionality.
    • Added page search capability with workspace and project-level options.

✏️ Tip: You can customize this high-level summary in your review settings.

1nk1 avatar Jan 28 '26 14:01 1nk1

[!IMPORTANT]

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fd621895-617a-43f8-9471-03ff912babf9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • [ ] 🔍 Trigger review
📝 Walkthrough

Walkthrough

The pages tool module has been refactored to replace single-page retrieval methods with paginated list operations (list_project_pages, list_workspace_pages), and introduces new CRUD operations (update_page, delete_page, search_pages) for comprehensive page management with dynamic field updates and optional workspace-level search.

Changes

Cohort / File(s) Summary
List-based pagination
plane_mcp/tools/pages.py
Replaced retrieve_workspace_page and retrieve_project_page with list_project_pages(project_id, per_page, cursor) and list_workspace_pages(per_page, cursor) for pagination support using client list endpoints.
CRUD operations
plane_mcp/tools/pages.py
Added update_page() with dynamic payload building from optional fields (name, description_html, access, color, is_locked, parent_page, archived_at, view_props, logo_props, external_id, external_source). Added delete_page() for page deletion. Added search_pages(query, workspace_level) with conditional workspace vs. project-level search logic.
Type and return adjustments
plane_mcp/tools/pages.py
Updated imports to include Optional and standardized all method returns to JSON strings for consistency with new tool outputs.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🐰 Pages now list with grace and pagination's dance,
Update them, delete them, give workflows a chance!
Dynamic fields flutter like carrots in spring,
Search through the workspace—oh what joy this will bring!
hops around celebrating ✨📄

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: Add Pages/Wiki API support' directly matches the PR objective of adding Pages/Wiki API support with new tools for listing, updating, deleting, and searching pages.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • [ ] Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar Jan 28 '26 14:01 coderabbitai[bot]

Hello guys is there a reason we arn't merging this yet? this is really needed i was just about to do this myself before i came across this PR. @Prashant-Surya

obiMadu avatar Feb 03 '26 18:02 obiMadu

Hello guys is there a reason we arn't merging this yet? this is really needed i was just about to do this myself before i came across this PR. @Prashant-Surya

@obiMadu we don't have list and update endpoints for pages in sdk yet. I don't think these tools will work. Is this tested?

Prashant-Surya avatar Feb 03 '26 18:02 Prashant-Surya

Hello guys is there a reason we arn't merging this yet? this is really needed i was just about to do this myself before i came across this PR. @Prashant-Surya

@obiMadu we don't have list and update endpoints for pages in sdk yet. I don't think these tools will work. Is this tested?

Yeaa none of those endpoints on the sdk. I just saw, they only exist in the internal API. Guess we need to start there then :+1:

obiMadu avatar Feb 03 '26 19:02 obiMadu

@Prashant-Surya Is there any ETA on when those endpoint will be added to public sdk? Wanted to add support for listing / editing project pages in my plane-cli (https://github.com/jzakirov/plane-cli) Need that for agentic automations of task management

jzakirov avatar Feb 22 '26 21:02 jzakirov