Repository navigation
[PAI-2159] feat: add a workitem_subscriber tool - #294
Merged
akhil-vamshi-konam merged 3 commits intoNov 23, 2026
Merged
Conversation
list and manage (add_user_id / remove_user_id) a work item's subscribers through the v2 client, by identifier or by project and work item id. The API merges the change itself, so nothing reads and rewrites the list.
…to 73.6k The listing was at ~72.2k; the new tool's schema adds ~1.4k.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
Linked to Plane Work Item(s) References This comment was auto-generated by Plane |
This was referenced Nov 23, 2026
Prashant-Surya
pushed a commit
that referenced
this pull request
Nov 24, 2026
* fix: page the initiative list instead of returning only the first 20 (#282) * [PAI-2135] fix(workitem): let update clear a work item's parent (#283) `parent` was typed `str = ""` and passed through `opt()`, so null failed schema validation and "" was dropped as unset: no input could reach Plane as a clear. Make it `str | None`, and send an explicit null the way start_date/target_date already did. Also read a null spelled as text ("null", "None") as null for parent, start_date and target_date. Clients that stringify every argument send it that way; the coercion middleware leaves it alone because the fields accept strings, and Plane rejected it as an invalid UUID/date. * fix(pql): drop the 5-condition cap from the PQL reference; fix BETWEEN syntax (#284) The reference told models PQL allows at most 5 conditions. That cap is Pi's NL-to-PQL translator limit, not the API's: the API accepts up to 50 conditions (nesting depth 16) and returns a correctable error through pql_failure when exceeded. Models followed the stated cap and silently dropped conditions, returning the wrong work items. The reference also taught `BETWEEN (a, b)`, which the API rejects as invalid PQL; it now uses `BETWEEN a AND b`. The reference now states no size limit; the API stays the single place that enforces one. * fix(cycle): archive ends a cycle that finishes later today (#270) `archive` ends a running cycle before archiving it, but the check compared calendar dates and dropped the time of day. A cycle ending at 23:00 today counted as already ended at 02:00, so the end_date update was skipped and Plane refused the archive ("Only completed cycles can be archived"). Compare instants instead, as Plane does; a value without an offset is read as UTC. * feat: let MCP read inline images in work item descriptions (#267) Images embedded in a description are separate assets (ISSUE_DESCRIPTION), so workitem_attachment cannot list or read them. Add `workitem read_description_image`, which takes project_id, workitem_id and the asset id from the <image-component src> tag and returns the image inline. The asset endpoint authorises on the workspace, not the work item, so the action first retrieves the work item and only serves an asset that the description actually embeds. PNG/JPEG/GIF/WEBP up to IMAGE_READ_LIMIT; a missing or unfinished asset, an unsupported type, an oversize image and a null download URL each return a clear error. The download streams the Plane-issued storage URL with a size cap, as workitem_attachment read does, so self-hosted storage on a private address still works. upload_from_url keeps the SSRF-guarded fetch. Needs plane-sdk with Workspaces.get_asset; bump the pin once released. * test: raise the listing budget to 72,500 chars for the dashboard, view and member tools * feat(dashboard): add a dashboard tool for dashboards and their widgets (#280) makeplane/plane-ee#7936 put dashboards and dashboard widgets on the v2 API. This adds one `dashboard` tool covering them, built on the v2 client from makeplane/plane-python-sdk#77: - dashboards: list, retrieve, create, update, delete, copy, list_widget_types - widgets: list_widgets, retrieve_widget, create_widget, update_widget, delete_widget - chart data: get_chart (with TABLE_CHART column paging), get_charts Widgets are actions on `dashboard` rather than a tool of their own, to stay inside the listing budget. The tool is appended to RESOURCES, so the advertised order of the existing 30 tools, and clients' prompt caches, are unchanged. The listing is now 31 tools, 221 actions, 69,999 characters. It is the first resource on `client.v2`, which differs from v1 in two ways handled here: - Lists page by data/has_more/next_cursor. `cursor_page()` in toolkit/paging.py envelopes them; lists request paginate="cursor", the only style that carries a cursor. - Refusals are PlaneAPIError, not HttpError. `plan_gated` now catches both, so a 402 (Dashboards, or a chart type, not on the plan) is answered with a message. A 400 is answered with its per-field `errors`, which the exception's own message drops. Filtering is by `pql`. A widget given pql also gets last_used_filter="pql_filters", or its chart would read `filters` instead. `update_widget` takes `clear` to empty the four axis fields the server stores null in; unset fields are never sent, since an axis field set to None goes out as null. SpyClient resolved parameter annotations with get_type_hints, which is all-or-nothing. Every v2 list returns Page[T], a union alias that cannot be subscripted at runtime, so a v2 list's arguments were checked against bare strings pydantic cannot build. It now resolves each parameter on its own. The plane-sdk pin is unchanged at 0.3.1, which has no dashboards: the server needs the SDK release that ships #77 before this can merge. * [PAI-2127] feat: add a view tool for saved work-item views (#285) * feat: add a view tool for saved work-item views * fix: list views with only the fields the listing asked for * feat: clear a view's query with pql=null on update * [PAI-2126] feat: add, re-role and remove project members (#286) * feat: add, re-role and remove project members from the member tool * fix: leave removed members out of the project member list * feat: pass any project role slug to Plane, commenter and custom roles included * feat: change a workspace member's role from the member tool (#287) * chore: pin plane-sdk 0.3.3 * [PAI-2159] feat: add a workitem_subscriber tool (#294) * [PAI-2159] feat: add a workitem_subscriber tool list and manage (add_user_id / remove_user_id) a work item's subscribers through the v2 client, by identifier or by project and work item id. The API merges the change itself, so nothing reads and rewrites the list. * [PAI-2159] test: cover workitem_subscriber; raise the listing budget to 73.6k The listing was at ~72.2k; the new tool's schema adds ~1.4k. * [PAI-2159] docs: list workitem_subscriber (33 tools, 233 actions) * chore: lock plane-sdk 0.3.3 from PyPI pyproject already pins plane-sdk==0.3.3; uv.lock still resolved 0.3.1. Relocked with uv 0.13.5 (the Dockerfile's); only plane-sdk and its new certifi dependency change. --------- Co-authored-by: gurusainath <gurusainath007@gmail.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
workitem_subscribertool (v2 client):list— the subscriber idsmanage—add_user_id/remove_user_id, each one id or several; returns the new listworkitem_identifier(ENG-42) or byproject_id+workitem_id.add/removeitself, so the tool never reads and rewrites the list (no lost update between two writers).member list_project.Where to look
plane_mcp/tools/workitem_subscriber.py— actions, target selection, SDK calls;@plan_gatedturns the plan 402 into a readable messagetests/tools/test_conformance.py— listing budget 72,500 → 73,600plane_mcp/tools/registry.py(appended last, so tool order is unchanged),tests/tools/test_dispatch.py; counts inREADME.md,CLAUDE.md,plane_mcp/tools/README.md(33 tools, 233 actions)Watch out for: the listing was already ~72.2k of the 72.5k budget; this tool's schema adds ~1.4k, so the budget moves to 73.6k.
Proof
Important
Confidence: High — unit tests, plus Claude driving the tool in plain English through this server against a local Plane API, each result cross-checked with a direct API call
pytest -q(1532 passed, 35 skipped),ruff checkandruff format --checkclean, against the SDK branch with the new resource. Live,claude -pthrough this server: list by identifier; remove a member; add a member by display name; add two at once; add myself; add a non-member (400 surfaced as a clear tool error, nothing changed). Also theproject_id+workitem_idroute and the no-target error.Rollout
Links
release-0.3.7(release: plane-mcp-server 0.3.7 #289).