plane-agent 2.3.16__tar.gz → 2.4.0__tar.gz

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 (88) hide show
  1. {plane_agent-2.3.16 → plane_agent-2.4.0}/PKG-INFO +8 -27
  2. {plane_agent-2.3.16 → plane_agent-2.4.0}/README.md +6 -25
  3. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/__init__.py +1 -1
  4. plane_agent-2.4.0/plane_agent/connector_contracts.py +82 -0
  5. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/kg_ingest.py +1 -1
  6. plane_agent-2.4.0/plane_agent/mcp_server.py +137 -0
  7. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/ontology/__init__.py +1 -1
  8. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/ontology/access_contracts.ttl +41 -42
  9. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/ontology/certification.json +4 -4
  10. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/ontology/mappings/source.yaml +1 -2
  11. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/ontology/plane.ttl +15 -13
  12. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/ontology/shapes/connector.shacl.ttl +2 -2
  13. plane_agent-2.4.0/plane_agent/prompts/plane-delivery-planner.json +133 -0
  14. plane_agent-2.4.0/plane_agent/prompts/plane-operator.json +170 -0
  15. plane_agent-2.4.0/plane_agent/prompts/project_tracking_specialist.json +127 -0
  16. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/skills/plane-agent-development/SKILL.md +7 -8
  17. plane_agent-2.4.0/plane_agent/skills/plane-agent-operations/SKILL.md +42 -0
  18. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/skills/plane-agent-operations/references/catalog.md +1 -1
  19. plane_agent-2.4.0/plane_agent/skills/plane-api-planning-objects/SKILL.md +61 -0
  20. plane_agent-2.4.0/plane_agent/skills/plane-api-project-model/SKILL.md +53 -0
  21. plane_agent-2.4.0/plane_agent/skills/plane-api-work-item-details/SKILL.md +54 -0
  22. plane_agent-2.4.0/plane_agent/skills/plane-create-work-item-guided/SKILL.md +38 -0
  23. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/skills/plane-create-work-item-guided/WORKFLOW.md +14 -19
  24. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/skills/plane-create-work-item-guided/references/property-discovery.md +5 -8
  25. plane_agent-2.4.0/plane_agent/skills/plane-cycle-planning/SKILL.md +92 -0
  26. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/skills/plane-cycle-planning/WORKFLOW.md +8 -14
  27. plane_agent-2.4.0/plane_agent/skills/plane-kg-ingestion/SKILL.md +34 -0
  28. plane_agent-2.4.0/plane_agent/skills/plane-kg-ingestion/WORKFLOW.md +62 -0
  29. plane_agent-2.4.0/plane_agent/skills/plane-my-priority-queue/SKILL.md +37 -0
  30. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/skills/plane-my-priority-queue/WORKFLOW.md +13 -16
  31. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/skills/plane-my-priority-queue/references/filter-recipes.md +3 -3
  32. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/skills/plane-my-priority-queue/scripts/rank_items.py +2 -2
  33. plane_agent-2.4.0/plane_agent/skills/plane-work-item-tracking/SKILL.md +112 -0
  34. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/skills/plane-work-item-tracking/WORKFLOW.md +6 -14
  35. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent.egg-info/PKG-INFO +8 -27
  36. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent.egg-info/SOURCES.txt +7 -1
  37. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent.egg-info/requires.txt +1 -1
  38. {plane_agent-2.3.16 → plane_agent-2.4.0}/pyproject.toml +2 -2
  39. plane_agent-2.4.0/tests/test_access_contracts.py +89 -0
  40. {plane_agent-2.3.16 → plane_agent-2.4.0}/tests/test_catalog_edges.py +6 -1
  41. {plane_agent-2.3.16 → plane_agent-2.4.0}/tests/test_coverage_gap_fillers.py +1 -1
  42. {plane_agent-2.3.16 → plane_agent-2.4.0}/tests/test_cq_paths.py +2 -2
  43. {plane_agent-2.3.16 → plane_agent-2.4.0}/tests/test_ingest_sources.py +3 -1
  44. {plane_agent-2.3.16 → plane_agent-2.4.0}/tests/test_kg_ingest.py +1 -1
  45. {plane_agent-2.3.16 → plane_agent-2.4.0}/tests/test_ontology_parent_link.py +12 -12
  46. {plane_agent-2.3.16 → plane_agent-2.4.0}/tests/test_publication_workflow.py +0 -2
  47. plane_agent-2.4.0/tests/test_scion_sdk_0_10_imports.py +59 -0
  48. plane_agent-2.3.16/plane_agent/mcp_server.py +0 -794
  49. plane_agent-2.3.16/plane_agent/prompts/project_tracking_specialist.json +0 -40
  50. plane_agent-2.3.16/plane_agent/skills/plane-agent-operations/SKILL.md +0 -33
  51. plane_agent-2.3.16/plane_agent/skills/plane-create-work-item-guided/SKILL.md +0 -109
  52. plane_agent-2.3.16/plane_agent/skills/plane-cycle-planning/SKILL.md +0 -91
  53. plane_agent-2.3.16/plane_agent/skills/plane-kg-ingestion/SKILL.md +0 -94
  54. plane_agent-2.3.16/plane_agent/skills/plane-kg-ingestion/WORKFLOW.md +0 -82
  55. plane_agent-2.3.16/plane_agent/skills/plane-my-priority-queue/SKILL.md +0 -113
  56. plane_agent-2.3.16/plane_agent/skills/plane-work-item-tracking/SKILL.md +0 -95
  57. plane_agent-2.3.16/tests/test_access_contracts.py +0 -68
  58. plane_agent-2.3.16/tests/test_action_discovery.py +0 -43
  59. {plane_agent-2.3.16 → plane_agent-2.4.0}/LICENSE +0 -0
  60. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/__main__.py +0 -0
  61. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/api/__init__.py +0 -0
  62. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/api/api_client_base.py +0 -0
  63. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/api/api_client_cycles.py +0 -0
  64. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/api/api_client_epics.py +0 -0
  65. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/api/api_client_initiatives.py +0 -0
  66. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/api/api_client_intake.py +0 -0
  67. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/api/api_client_milestones.py +0 -0
  68. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/api/api_client_modules_states.py +0 -0
  69. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/api/api_client_projects.py +0 -0
  70. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/api/api_client_work_items.py +0 -0
  71. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/api/api_client_workspace.py +0 -0
  72. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/api_client.py +0 -0
  73. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/auth.py +0 -0
  74. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/connector_sources.py +0 -0
  75. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/mcp_config.json +0 -0
  76. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/ontology/fixtures/records.json +0 -0
  77. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/ontology/migrations/manifest.json +0 -0
  78. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/plane_models.py +0 -0
  79. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent/skills/plane-agent-operations/agents/openai.yaml +0 -0
  80. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent.egg-info/dependency_links.txt +0 -0
  81. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent.egg-info/entry_points.txt +0 -0
  82. {plane_agent-2.3.16 → plane_agent-2.4.0}/plane_agent.egg-info/top_level.txt +0 -0
  83. {plane_agent-2.3.16 → plane_agent-2.4.0}/setup.cfg +0 -0
  84. {plane_agent-2.3.16 → plane_agent-2.4.0}/tests/conftest.py +0 -0
  85. {plane_agent-2.3.16 → plane_agent-2.4.0}/tests/test_init.py +0 -0
  86. {plane_agent-2.3.16 → plane_agent-2.4.0}/tests/test_init_dynamics.py +0 -0
  87. {plane_agent-2.3.16 → plane_agent-2.4.0}/tests/test_rank_items.py +0 -0
  88. {plane_agent-2.3.16 → plane_agent-2.4.0}/tests/test_startup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plane-agent
3
- Version: 2.3.16
3
+ Version: 2.4.0
4
4
  Summary: Plane MCP Agent
5
5
  Author-email: Repository Maintainers <maintainers@knuckles.team>
6
6
  License: MIT
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
12
12
  Requires-Python: <3.15,>=3.12
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
- Requires-Dist: scion-sdk[mcp]<0.7.0,>=0.6.4
15
+ Requires-Dist: scion-sdk[mcp]<0.12,>=0.11.0
16
16
  Requires-Dist: requests>=2.34.2
17
17
  Provides-Extra: test
18
18
  Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
@@ -100,25 +100,6 @@ This table is auto-generated from the live server — do not edit by hand.
100
100
 
101
101
  <!-- MCP-TOOLS-TABLE:START -->
102
102
 
103
- #### Condensed action-routed tools (`MCP_TOOL_MODE=condensed`)
104
-
105
- | MCP Tool | Toggle Env Var | Description |
106
- |----------|----------------|-------------|
107
- | `plane_cycles` | `CYCLESTOOL` | Manage plane cycles operations. |
108
- | `plane_epics` | `EPICSTOOL` | Manage plane epics operations. |
109
- | `plane_ingest` | `KGTOOL` | Natively ingest Plane records into epistemic-graph as typed OWL nodes. |
110
- | `plane_initiatives` | `INITIATIVESTOOL` | Manage plane initiatives operations. |
111
- | `plane_intake` | `INTAKETOOL` | Manage plane intake operations. |
112
- | `plane_labels` | `LABELSTOOL` | Manage plane labels operations. |
113
- | `plane_milestones` | `MILESTONESTOOL` | Manage plane milestones operations. |
114
- | `plane_modules` | `MODULESTOOL` | Manage plane modules operations. |
115
- | `plane_pages` | `PAGESTOOL` | Manage plane pages operations. |
116
- | `plane_projects` | `PROJECTSTOOL` | Manage plane projects operations. |
117
- | `plane_states` | `STATESTOOL` | Manage plane states operations. |
118
- | `plane_users` | `USERSTOOL` | Manage plane users operations. |
119
- | `plane_work_items` | `WORK_ITEMSTOOL` | Manage plane work items operations. |
120
- | `plane_workspaces` | `WORKSPACESTOOL` | Manage plane workspaces operations. |
121
-
122
103
  #### Verbose 1:1 API-mapped tools (`MCP_TOOL_MODE=verbose` or `both`)
123
104
 
124
105
  <details>
@@ -231,7 +212,7 @@ This table is auto-generated from the live server — do not edit by hand.
231
212
 
232
213
  </details>
233
214
 
234
- _14 action-routed tool(s) · 102 verbose 1:1 tool(s). Each is enabled unless its `<DOMAIN>TOOL` toggle is set false; `MCP_TOOL_MODE` selects the surface (**`intent` default** — the six verb-tools, granular set loaded on demand · `condensed` action-routed · `verbose` 1:1 · `both`). Auto-generated — do not edit._
215
+ _102 typed per-operation tool(s). Each is enabled unless its `<DOMAIN>TOOL` toggle is set false; `MCP_TOOL_MODE` selects the surface (**`intent` default** — the six verb-tools, granular set loaded on demand · `verbose` 1:1 · `both`). Auto-generated — do not edit._
235
216
  <!-- MCP-TOOLS-TABLE:END -->
236
217
 
237
218
  Detailed tool schemas, parameter shapes, and validation constraints are preserved in [docs/index.md](docs/index.md).
@@ -263,7 +244,7 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
263
244
 
264
245
  > **Install the connector-focused `[mcp]` extra.** Examples use `plane-agent[mcp]` to add
265
246
  > FastMCP / FastAPI through `scion-sdk`; the required Scion SDK core
266
- > still carries `epistemic-graph[full]`. The `[agent-runtime]` extra additionally
247
+ > still carries `medulla[full]`. The `[agent-runtime]` extra additionally
267
248
  > enables model orchestration.
268
249
 
269
250
  #### stdio Transport (local IDEs — Cursor, Claude Desktop, VS Code)
@@ -449,14 +430,14 @@ One multi-stage `docker/Dockerfile` builds the MCP-only image (`--target mcp`):
449
430
 
450
431
  agent (`immutable agent digest`) with a co-located `:mcp` sidecar.
451
432
 
452
- ### Knowledge-graph database (`epistemic-graph`)
433
+ ### Knowledge-graph database (`medulla`)
453
434
 
454
- Scion SDK core dependency (`epistemic-graph[full]`). The `[mcp]` extra keeps
435
+ Scion SDK core dependency (`medulla[full]`). The `[mcp]` extra keeps
455
436
  deployments can use the bundled engine. For production or shared state, run
456
- **epistemic-graph as a dedicated database service** and configure the runtime to use it.
437
+ **medulla as a dedicated database service** and configure the runtime to use it.
457
438
  Deployment recipes (single-node + Raft HA), connection configuration, and architecture
458
439
  diagrams are documented in the
459
- [epistemic-graph deployment guide](https://knuckles-team.github.io/epistemic-graph/deployment/).
440
+ [medulla deployment guide](https://knuckles-team.github.io/medulla/deployment/).
460
441
 
461
442
  ---
462
443
 
@@ -77,25 +77,6 @@ This table is auto-generated from the live server — do not edit by hand.
77
77
 
78
78
  <!-- MCP-TOOLS-TABLE:START -->
79
79
 
80
- #### Condensed action-routed tools (`MCP_TOOL_MODE=condensed`)
81
-
82
- | MCP Tool | Toggle Env Var | Description |
83
- |----------|----------------|-------------|
84
- | `plane_cycles` | `CYCLESTOOL` | Manage plane cycles operations. |
85
- | `plane_epics` | `EPICSTOOL` | Manage plane epics operations. |
86
- | `plane_ingest` | `KGTOOL` | Natively ingest Plane records into epistemic-graph as typed OWL nodes. |
87
- | `plane_initiatives` | `INITIATIVESTOOL` | Manage plane initiatives operations. |
88
- | `plane_intake` | `INTAKETOOL` | Manage plane intake operations. |
89
- | `plane_labels` | `LABELSTOOL` | Manage plane labels operations. |
90
- | `plane_milestones` | `MILESTONESTOOL` | Manage plane milestones operations. |
91
- | `plane_modules` | `MODULESTOOL` | Manage plane modules operations. |
92
- | `plane_pages` | `PAGESTOOL` | Manage plane pages operations. |
93
- | `plane_projects` | `PROJECTSTOOL` | Manage plane projects operations. |
94
- | `plane_states` | `STATESTOOL` | Manage plane states operations. |
95
- | `plane_users` | `USERSTOOL` | Manage plane users operations. |
96
- | `plane_work_items` | `WORK_ITEMSTOOL` | Manage plane work items operations. |
97
- | `plane_workspaces` | `WORKSPACESTOOL` | Manage plane workspaces operations. |
98
-
99
80
  #### Verbose 1:1 API-mapped tools (`MCP_TOOL_MODE=verbose` or `both`)
100
81
 
101
82
  <details>
@@ -208,7 +189,7 @@ This table is auto-generated from the live server — do not edit by hand.
208
189
 
209
190
  </details>
210
191
 
211
- _14 action-routed tool(s) · 102 verbose 1:1 tool(s). Each is enabled unless its `<DOMAIN>TOOL` toggle is set false; `MCP_TOOL_MODE` selects the surface (**`intent` default** — the six verb-tools, granular set loaded on demand · `condensed` action-routed · `verbose` 1:1 · `both`). Auto-generated — do not edit._
192
+ _102 typed per-operation tool(s). Each is enabled unless its `<DOMAIN>TOOL` toggle is set false; `MCP_TOOL_MODE` selects the surface (**`intent` default** — the six verb-tools, granular set loaded on demand · `verbose` 1:1 · `both`). Auto-generated — do not edit._
212
193
  <!-- MCP-TOOLS-TABLE:END -->
213
194
 
214
195
  Detailed tool schemas, parameter shapes, and validation constraints are preserved in [docs/index.md](docs/index.md).
@@ -240,7 +221,7 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
240
221
 
241
222
  > **Install the connector-focused `[mcp]` extra.** Examples use `plane-agent[mcp]` to add
242
223
  > FastMCP / FastAPI through `scion-sdk`; the required Scion SDK core
243
- > still carries `epistemic-graph[full]`. The `[agent-runtime]` extra additionally
224
+ > still carries `medulla[full]`. The `[agent-runtime]` extra additionally
244
225
  > enables model orchestration.
245
226
 
246
227
  #### stdio Transport (local IDEs — Cursor, Claude Desktop, VS Code)
@@ -426,14 +407,14 @@ One multi-stage `docker/Dockerfile` builds the MCP-only image (`--target mcp`):
426
407
 
427
408
  agent (`immutable agent digest`) with a co-located `:mcp` sidecar.
428
409
 
429
- ### Knowledge-graph database (`epistemic-graph`)
410
+ ### Knowledge-graph database (`medulla`)
430
411
 
431
- Scion SDK core dependency (`epistemic-graph[full]`). The `[mcp]` extra keeps
412
+ Scion SDK core dependency (`medulla[full]`). The `[mcp]` extra keeps
432
413
  deployments can use the bundled engine. For production or shared state, run
433
- **epistemic-graph as a dedicated database service** and configure the runtime to use it.
414
+ **medulla as a dedicated database service** and configure the runtime to use it.
434
415
  Deployment recipes (single-node + Raft HA), connection configuration, and architecture
435
416
  diagrams are documented in the
436
- [epistemic-graph deployment guide](https://knuckles-team.github.io/epistemic-graph/deployment/).
417
+ [medulla deployment guide](https://knuckles-team.github.io/medulla/deployment/).
437
418
 
438
419
  ---
439
420
 
@@ -7,5 +7,5 @@ connector = Connector(
7
7
  api=Api,
8
8
  get_client=get_client,
9
9
  tools="plane_agent.mcp_server",
10
- instructions="plane-agent MCP Server — Condensed Action-Routed Tools.",
10
+ instructions="plane-agent MCP Server — one typed tool per Plane API operation.",
11
11
  )
@@ -0,0 +1,82 @@
1
+ """Surface contracts: tool use, links, data locations and business roles."""
2
+
3
+ # ruff: noqa: E501
4
+ # fmt: off
5
+ from scion_sdk.surface_contracts import (
6
+ BusinessRole,
7
+ DataLocation,
8
+ Refusal,
9
+ SurfaceLink,
10
+ ToolStep,
11
+ ToolUseContract,
12
+ )
13
+
14
+ CONTRACTS = (
15
+ ToolUseContract("verify-workspace", (ToolStep("plane_get_me", params=(), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_get_workspace", params=(), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_get_workspace_members", params=(), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_get_workspace_features", params=(), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Confirm the credential, the workspace and its features."),
16
+ ToolUseContract("browse-projects", (ToolStep("plane_list_projects", params=("per_page", "cursor", "order_by"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_retrieve_project", params=("project_id",), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_get_project_members", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_get_project_features", params=("project_id",), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_states", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_labels", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Find a project and read its members, features, states and labels."),
17
+ ToolUseContract("find-work-items", (ToolStep("plane_list_work_items", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_search_work_items", params=("query", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_advanced_search_work_items", params=("data",), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_retrieve_work_item", params=("project_id", "work_item_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_retrieve_work_item_by_identifier", params=("project_identifier", "issue_identifier"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Find work items by filter, text or identifier and read one."),
18
+ ToolUseContract("create-work-item-guided", (ToolStep("plane_list_projects", params=("per_page", "cursor", "order_by"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_states", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_labels", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_work_item_types", params=("project_id",), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_work_item_properties", params=("project_id", "type_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_create_work_item", params=("project_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Discover the project's states, labels, types and custom properties, then create the work item."),
19
+ ToolUseContract("update-work-item", (ToolStep("plane_retrieve_work_item_by_identifier", params=("project_identifier", "issue_identifier"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_update_work_item", params=("project_id", "work_item_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_create_work_item_comment", params=("project_id", "work_item_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_work_item_comments", params=("project_id", "work_item_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_work_item_activities", params=("project_id", "work_item_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Change a work item and leave a comment with the reason."),
20
+ ToolUseContract("link-and-relate-work-items", (ToolStep("plane_create_work_item_link", params=("project_id", "work_item_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_work_item_links", params=("project_id", "work_item_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_create_work_item_relation", params=("project_id", "work_item_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_work_item_relations", params=("project_id", "work_item_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_remove_work_item_relation", params=("project_id", "work_item_id", "related_issue", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Attach links and relate work items to each other."),
21
+ ToolUseContract("my-priority-queue", (ToolStep("plane_get_me", params=(), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_projects", params=("per_page", "cursor", "order_by"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_states", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_work_items", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "List the work items assigned to the current user, ranked by priority and staleness."),
22
+ ToolUseContract("plan-cycle", (ToolStep("plane_create_cycle", params=("project_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_cycles", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_retrieve_cycle", params=("project_id", "cycle_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_update_cycle", params=("project_id", "cycle_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_add_work_items_to_cycle", params=("project_id", "cycle_id", "issue_ids"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_cycle_work_items", params=("project_id", "cycle_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_remove_work_item_from_cycle", params=("project_id", "cycle_id", "work_item_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_transfer_cycle_work_items", params=("project_id", "cycle_id", "new_cycle_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_archived_cycles", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Create a cycle, fill it with work items, move leftovers and read what is in it."),
23
+ ToolUseContract("plan-modules-and-milestones", (ToolStep("plane_create_module", params=("project_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_modules", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_update_module", params=("project_id", "module_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_add_work_items_to_module", params=("project_id", "module_id", "issue_ids"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_module_work_items", params=("project_id", "module_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_remove_work_item_from_module", params=("project_id", "module_id", "work_item_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_archive_module", params=("project_id", "module_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_unarchive_module", params=("project_id", "module_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_archived_modules", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_create_milestone", params=("project_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_milestones", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_update_milestone", params=("project_id", "milestone_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_add_work_items_to_milestone", params=("project_id", "milestone_id", "issue_ids"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_milestone_work_items", params=("project_id", "milestone_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_remove_work_items_from_milestone", params=("project_id", "milestone_id", "issue_ids", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Group work into modules and milestones."),
24
+ ToolUseContract("plan-epics-and-initiatives", (ToolStep("plane_create_epic", params=("project_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_epics", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_retrieve_epic", params=("project_id", "epic_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_update_epic", params=("project_id", "epic_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_create_initiative", params=("data",), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_initiatives", params=("per_page", "cursor", "order_by"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_retrieve_initiative", params=("initiative_id",), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_update_initiative", params=("initiative_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Plan epics and initiatives above individual work items."),
25
+ ToolUseContract("triage-intake", (ToolStep("plane_list_intake_work_items", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_retrieve_intake_work_item", params=("project_id", "work_item_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_create_intake_work_item", params=("project_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_update_intake_work_item", params=("project_id", "work_item_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Review incoming intake requests and accept, edit or reject them."),
26
+ ToolUseContract("track-time", (ToolStep("plane_create_work_log", params=("project_id", "work_item_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_work_logs", params=("project_id", "work_item_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_update_work_log", params=("project_id", "work_item_id", "work_log_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_get_project_worklog_summary", params=("project_id",), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Log time on work items and summarise it for a project."),
27
+ ToolUseContract("document-in-pages", (ToolStep("plane_create_project_page", params=("project_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_retrieve_project_page", params=("project_id", "page_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Write and read project pages."),
28
+ ToolUseContract("configure-project-model", (ToolStep("plane_list_states", params=("project_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_create_state", params=("project_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_retrieve_state", params=("project_id", "state_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_update_state", params=("project_id", "state_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_create_label", params=("project_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_work_item_types", params=("project_id",), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_create_work_item_type", params=("project_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_update_work_item_type", params=("project_id", "work_item_type_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_list_work_item_properties", params=("project_id", "type_id", "params_json"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_create_work_item_property", params=("project_id", "type_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_update_work_item_property", params=("project_id", "type_id", "work_item_property_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_update_project_features", params=("project_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Shape a project's states, labels, types and properties."),
29
+ ToolUseContract("retire-plane-objects", (ToolStep("plane_delete_work_item", params=("project_id", "work_item_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_delete_work_item_comment", params=("project_id", "work_item_id", "comment_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_delete_work_item_link", params=("project_id", "work_item_id", "link_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_delete_cycle", params=("project_id", "cycle_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_delete_module", params=("project_id", "module_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_delete_epic", params=("project_id", "epic_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_delete_initiative", params=("initiative_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_delete_milestone", params=("project_id", "milestone_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_delete_state", params=("project_id", "state_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_delete_project", params=("project_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_delete_intake_work_item", params=("project_id", "work_item_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_delete_work_log", params=("project_id", "work_item_id", "work_log_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_delete_work_item_property", params=("project_id", "type_id", "work_item_property_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_delete_work_item_type", params=("project_id", "work_item_type_id", "confirm"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Delete work items, comments, links, cycles, modules, epics, initiatives, milestones, states or a project after approval."),
30
+ ToolUseContract("mirror-plane-to-graph", (ToolStep("plane_ingest_projects", params=("per_page", "cursor"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_ingest_work_items", params=("project_id", "per_page", "cursor"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))), ToolStep("plane_ingest_cycles", params=("project_id", "per_page", "cursor"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Land projects, work items and cycles in the knowledge graph."),
31
+ ToolUseContract("plane_list_users", (ToolStep("plane_list_users", params=("per_page", "cursor", "order_by"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "List all users in the workspace."),
32
+ ToolUseContract("plane_retrieve_milestone", (ToolStep("plane_retrieve_milestone", params=("project_id", "milestone_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Retrieve a milestone by ID."),
33
+ ToolUseContract("plane_retrieve_module", (ToolStep("plane_retrieve_module", params=("project_id", "module_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Retrieve a module by ID."),
34
+ ToolUseContract("plane_retrieve_work_item_activity", (ToolStep("plane_retrieve_work_item_activity", params=("project_id", "work_item_id", "activity_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Retrieve a specific activity for a work item."),
35
+ ToolUseContract("plane_retrieve_work_item_comment", (ToolStep("plane_retrieve_work_item_comment", params=("project_id", "work_item_id", "comment_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Retrieve a specific comment for a work item."),
36
+ ToolUseContract("plane_retrieve_work_item_link", (ToolStep("plane_retrieve_work_item_link", params=("project_id", "work_item_id", "link_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Retrieve a specific link for a work item."),
37
+ ToolUseContract("plane_retrieve_work_item_property", (ToolStep("plane_retrieve_work_item_property", params=("project_id", "type_id", "work_item_property_id"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Retrieve a work item property by ID."),
38
+ ToolUseContract("plane_update_work_item_comment", (ToolStep("plane_update_work_item_comment", params=("project_id", "work_item_id", "comment_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Update a comment for a work item."),
39
+ ToolUseContract("plane_update_work_item_link", (ToolStep("plane_update_work_item_link", params=("project_id", "work_item_id", "link_id", "data"), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Update a link for a work item."),
40
+ ToolUseContract("plane_update_workspace_features", (ToolStep("plane_update_workspace_features", params=("data",), result=("result",), refusals=(Refusal("ACCESS_DENIED", "the credential lacks access to the operation"), Refusal("NOT_FOUND", "the requested record does not exist"), Refusal("INVALID_ARGUMENT", "the upstream system rejects the input"))),), "Update features of the current workspace."),
41
+ )
42
+
43
+ LINKS = (
44
+ SurfaceLink("verify-workspace", tools=("plane_get_me", "plane_get_workspace", "plane_get_workspace_members", "plane_get_workspace_features"), prompts=("plane-operator", "plane-delivery-planner"), skills=("plane-agent-operations",)),
45
+ SurfaceLink("browse-projects", tools=("plane_list_projects", "plane_retrieve_project", "plane_get_project_members", "plane_get_project_features", "plane_list_states", "plane_list_labels"), prompts=("plane-operator", "project_tracking_specialist", "plane-delivery-planner"), skills=("plane-work-item-tracking",)),
46
+ SurfaceLink("find-work-items", tools=("plane_list_work_items", "plane_search_work_items", "plane_advanced_search_work_items", "plane_retrieve_work_item", "plane_retrieve_work_item_by_identifier"), prompts=("plane-operator", "project_tracking_specialist", "plane-delivery-planner"), skills=("plane-work-item-tracking",)),
47
+ SurfaceLink("create-work-item-guided", tools=("plane_list_projects", "plane_list_states", "plane_list_labels", "plane_list_work_item_types", "plane_list_work_item_properties", "plane_create_work_item"), prompts=("plane-operator", "project_tracking_specialist"), skills=("plane-create-work-item-guided",)),
48
+ SurfaceLink("update-work-item", tools=("plane_retrieve_work_item_by_identifier", "plane_update_work_item", "plane_create_work_item_comment", "plane_list_work_item_comments", "plane_list_work_item_activities"), prompts=("plane-operator", "project_tracking_specialist"), skills=("plane-work-item-tracking",)),
49
+ SurfaceLink("link-and-relate-work-items", tools=("plane_create_work_item_link", "plane_list_work_item_links", "plane_create_work_item_relation", "plane_list_work_item_relations", "plane_remove_work_item_relation"), prompts=("plane-operator", "project_tracking_specialist"), skills=("plane-work-item-tracking",)),
50
+ SurfaceLink("my-priority-queue", tools=("plane_get_me", "plane_list_projects", "plane_list_states", "plane_list_work_items"), prompts=("plane-operator", "project_tracking_specialist"), skills=("plane-my-priority-queue",)),
51
+ SurfaceLink("plan-cycle", tools=("plane_create_cycle", "plane_list_cycles", "plane_retrieve_cycle", "plane_update_cycle", "plane_add_work_items_to_cycle", "plane_list_cycle_work_items", "plane_remove_work_item_from_cycle", "plane_transfer_cycle_work_items", "plane_list_archived_cycles"), prompts=("plane-operator", "plane-delivery-planner"), skills=("plane-cycle-planning",)),
52
+ SurfaceLink("plan-modules-and-milestones", tools=("plane_create_module", "plane_list_modules", "plane_update_module", "plane_add_work_items_to_module", "plane_list_module_work_items", "plane_remove_work_item_from_module", "plane_archive_module", "plane_unarchive_module", "plane_list_archived_modules", "plane_create_milestone", "plane_list_milestones", "plane_update_milestone", "plane_add_work_items_to_milestone", "plane_list_milestone_work_items", "plane_remove_work_items_from_milestone"), prompts=("plane-operator", "plane-delivery-planner"), skills=("plane-cycle-planning",)),
53
+ SurfaceLink("plan-epics-and-initiatives", tools=("plane_create_epic", "plane_list_epics", "plane_retrieve_epic", "plane_update_epic", "plane_create_initiative", "plane_list_initiatives", "plane_retrieve_initiative", "plane_update_initiative"), prompts=("plane-operator", "plane-delivery-planner"), skills=("plane-cycle-planning",)),
54
+ SurfaceLink("triage-intake", tools=("plane_list_intake_work_items", "plane_retrieve_intake_work_item", "plane_create_intake_work_item", "plane_update_intake_work_item"), prompts=("plane-operator", "project_tracking_specialist"), skills=("plane-work-item-tracking",)),
55
+ SurfaceLink("track-time", tools=("plane_create_work_log", "plane_list_work_logs", "plane_update_work_log", "plane_get_project_worklog_summary"), prompts=("plane-operator", "project_tracking_specialist"), skills=("plane-work-item-tracking",)),
56
+ SurfaceLink("document-in-pages", tools=("plane_create_project_page", "plane_retrieve_project_page"), prompts=("plane-operator", "project_tracking_specialist"), skills=("plane-work-item-tracking",)),
57
+ SurfaceLink("configure-project-model", tools=("plane_list_states", "plane_create_state", "plane_retrieve_state", "plane_update_state", "plane_create_label", "plane_list_work_item_types", "plane_create_work_item_type", "plane_update_work_item_type", "plane_list_work_item_properties", "plane_create_work_item_property", "plane_update_work_item_property", "plane_update_project_features"), prompts=("plane-operator", "plane-delivery-planner"), skills=("plane-agent-operations",)),
58
+ SurfaceLink("retire-plane-objects", tools=("plane_delete_work_item", "plane_delete_work_item_comment", "plane_delete_work_item_link", "plane_delete_cycle", "plane_delete_module", "plane_delete_epic", "plane_delete_initiative", "plane_delete_milestone", "plane_delete_state", "plane_delete_project", "plane_delete_intake_work_item", "plane_delete_work_log", "plane_delete_work_item_property", "plane_delete_work_item_type"), prompts=("plane-operator", "plane-delivery-planner"), skills=("plane-work-item-tracking", "plane-cycle-planning")),
59
+ SurfaceLink("mirror-plane-to-graph", tools=("plane_ingest_projects", "plane_ingest_work_items", "plane_ingest_cycles"), prompts=("plane-operator", "project_tracking_specialist"), skills=("plane-kg-ingestion",)),
60
+ SurfaceLink("plane_list_users", tools=("plane_list_users",), prompts=("plane-operator",), skills=("plane-api-project-model",)),
61
+ SurfaceLink("plane_retrieve_milestone", tools=("plane_retrieve_milestone",), prompts=("plane-operator",), skills=("plane-api-planning-objects",)),
62
+ SurfaceLink("plane_retrieve_module", tools=("plane_retrieve_module",), prompts=("plane-operator",), skills=("plane-api-planning-objects",)),
63
+ SurfaceLink("plane_retrieve_work_item_activity", tools=("plane_retrieve_work_item_activity",), prompts=("plane-operator",), skills=("plane-api-work-item-details",)),
64
+ SurfaceLink("plane_retrieve_work_item_comment", tools=("plane_retrieve_work_item_comment",), prompts=("plane-operator",), skills=("plane-api-work-item-details",)),
65
+ SurfaceLink("plane_retrieve_work_item_link", tools=("plane_retrieve_work_item_link",), prompts=("plane-operator",), skills=("plane-api-work-item-details",)),
66
+ SurfaceLink("plane_retrieve_work_item_property", tools=("plane_retrieve_work_item_property",), prompts=("plane-operator",), skills=("plane-api-project-model",)),
67
+ SurfaceLink("plane_update_work_item_comment", tools=("plane_update_work_item_comment",), prompts=("plane-operator",), skills=("plane-api-work-item-details",)),
68
+ SurfaceLink("plane_update_work_item_link", tools=("plane_update_work_item_link",), prompts=("plane-operator",), skills=("plane-api-work-item-details",)),
69
+ SurfaceLink("plane_update_workspace_features", tools=("plane_update_workspace_features",), prompts=("plane-operator",), skills=("plane-api-project-model",)),
70
+ )
71
+
72
+ LOCATIONS = (
73
+ DataLocation("plane-projects", ("SoftwareProject",), "PLANE_BASE_URL", "plane_list_projects", federation_key="id"),
74
+ DataLocation("plane-work-items", ("Issue",), "PLANE_BASE_URL", "plane_list_work_items", route_param="project_id", federation_key="id"),
75
+ DataLocation("plane-project-states", ("ProjectState",), "PLANE_BASE_URL", "plane_list_states", route_param="project_id", federation_key="id"),
76
+ )
77
+
78
+ ROLES = (
79
+ BusinessRole("project-tracking-specialist", ("browse-projects", "find-work-items", "create-work-item-guided", "update-work-item", "link-and-relate-work-items", "my-priority-queue", "triage-intake", "track-time", "document-in-pages", "mirror-plane-to-graph"), "Triages, creates, updates and relates work items and keeps the personal priority queue."),
80
+ BusinessRole("delivery-planner", ("verify-workspace", "plan-cycle", "plan-modules-and-milestones", "plan-epics-and-initiatives", "configure-project-model", "retire-plane-objects", "browse-projects", "find-work-items"), "Plans cycles, modules, milestones, epics and initiatives and keeps the project model tidy."),
81
+ )
82
+ # fmt: on
@@ -1,4 +1,4 @@
1
- """Native epistemic-graph ingestion for Plane work-management records.
1
+ """Native medulla ingestion for Plane work-management records.
2
2
 
3
3
  All writes go through the ``scion_sdk.ingest`` knowledge-ingest facade. Nodes
4
4
  use canonical ``node_type`` and edges use canonical ``relationship``; nodes and edges
@@ -0,0 +1,137 @@
1
+ #!/usr/bin/python
2
+ import warnings
3
+
4
+ from fastmcp import Context, FastMCP
5
+ from fastmcp.dependencies import Depends
6
+ from fastmcp.utilities.logging import get_logger
7
+ from pydantic import Field
8
+
9
+ # Filter RequestsDependencyWarning early to prevent log spam
10
+ with warnings.catch_warnings():
11
+ warnings.simplefilter("ignore")
12
+ try:
13
+ from requests.exceptions import RequestsDependencyWarning
14
+
15
+ warnings.filterwarnings("ignore", category=RequestsDependencyWarning)
16
+ except ImportError:
17
+ pass
18
+
19
+ warnings.filterwarnings("ignore", message=".*urllib3.*or chardet.*")
20
+ warnings.filterwarnings("ignore", message=".*urllib3.*or charset_normalizer.*")
21
+
22
+ import logging
23
+ from typing import Any
24
+
25
+ from scion_sdk.mcp.concurrency import run_blocking
26
+
27
+ from plane_agent.auth import get_client
28
+
29
+ logger = get_logger(name="plane-agent")
30
+ logger.setLevel(logging.INFO)
31
+
32
+
33
+ def _kg_records(result: Any, key: str = "results") -> list[dict[str, Any]]:
34
+ """Normalize a client Response/list into a list of plain record dicts."""
35
+ data = getattr(result, "data", result)
36
+ if isinstance(data, dict):
37
+ data = data.get(key, data.get("data", data))
38
+ records = data if isinstance(data, list) else [data]
39
+ out: list[dict[str, Any]] = []
40
+ for r in records:
41
+ if r is None:
42
+ continue
43
+ out.append(r.model_dump() if hasattr(r, "model_dump") else r)
44
+ return [r for r in out if isinstance(r, dict)]
45
+
46
+
47
+ def register_kg_tools(mcp: FastMCP):
48
+ """Register the Plane to medulla ingest tools (one tool per record kind).
49
+
50
+ Each tool lists records via the Plane API, then pushes them as typed nodes + links
51
+ via the fast engine client (best-effort: ``{"ingested": null}`` with no engine).
52
+ CONCEPT:AU-KG.ingest.enterprise-source-extractor.
53
+ """
54
+
55
+ @mcp.tool(
56
+ name="plane_ingest_projects",
57
+ tags={"kg"},
58
+ annotations={"readOnlyHint": False, "idempotentHint": True},
59
+ )
60
+ async def plane_ingest_projects(
61
+ per_page: int | None = Field(default=None, description="Page size"),
62
+ cursor: str | None = Field(default=None, description="Pagination cursor"),
63
+ client=Depends(get_client),
64
+ ctx: Context | None = Field(
65
+ default=None, description="MCP context for progress reporting"
66
+ ),
67
+ ) -> dict:
68
+ """Ingest Plane projects as :SoftwareProject nodes (+ :Workspace / :inWorkspace)."""
69
+ from plane_agent import kg_ingest
70
+
71
+ if ctx:
72
+ await ctx.info("Executing tool...")
73
+ kwargs = {
74
+ k: v for k, v in {"per_page": per_page, "cursor": cursor}.items() if v
75
+ }
76
+ result = await run_blocking(client.list_projects, **kwargs)
77
+ records = _kg_records(result)
78
+ ingested = await kg_ingest.ingest_projects(
79
+ records, workspace_slug=getattr(client, "workspace_slug", None)
80
+ )
81
+ return {"listed": len(records), "ingested": ingested}
82
+
83
+ @mcp.tool(
84
+ name="plane_ingest_work_items",
85
+ tags={"kg"},
86
+ annotations={"readOnlyHint": False, "idempotentHint": True},
87
+ )
88
+ async def plane_ingest_work_items(
89
+ project_id: str = Field(description="Project whose work items are ingested"),
90
+ per_page: int | None = Field(default=None, description="Page size"),
91
+ cursor: str | None = Field(default=None, description="Pagination cursor"),
92
+ client=Depends(get_client),
93
+ ctx: Context | None = Field(
94
+ default=None, description="MCP context for progress reporting"
95
+ ),
96
+ ) -> dict:
97
+ """Ingest a project's work items as :Issue nodes (+ :belongsToProject / :assignedTo / :hasState / :inCycle)."""
98
+ from plane_agent import kg_ingest
99
+
100
+ if ctx:
101
+ await ctx.info("Executing tool...")
102
+ kwargs = {
103
+ k: v for k, v in {"per_page": per_page, "cursor": cursor}.items() if v
104
+ }
105
+ result = await run_blocking(client.list_work_items, project_id, **kwargs)
106
+ records = _kg_records(result)
107
+ ingested = await kg_ingest.ingest_work_items(records, project_id=project_id)
108
+ return {"listed": len(records), "ingested": ingested}
109
+
110
+ @mcp.tool(
111
+ name="plane_ingest_cycles",
112
+ tags={"kg"},
113
+ annotations={"readOnlyHint": False, "idempotentHint": True},
114
+ )
115
+ async def plane_ingest_cycles(
116
+ project_id: str = Field(description="Project whose cycles are ingested"),
117
+ per_page: int | None = Field(default=None, description="Page size"),
118
+ cursor: str | None = Field(default=None, description="Pagination cursor"),
119
+ client=Depends(get_client),
120
+ ctx: Context | None = Field(
121
+ default=None, description="MCP context for progress reporting"
122
+ ),
123
+ ) -> dict:
124
+ """Ingest a project's cycles as :Cycle nodes (+ :belongsToProject)."""
125
+ from plane_agent import kg_ingest
126
+
127
+ if ctx:
128
+ await ctx.info("Executing tool...")
129
+ kwargs = {
130
+ k: v for k, v in {"per_page": per_page, "cursor": cursor}.items() if v
131
+ }
132
+ result = await run_blocking(client.list_cycles, project_id, **kwargs)
133
+ records = _kg_records(result)
134
+ ingested = await kg_ingest.ingest_cycles(records, project_id=project_id)
135
+ return {"listed": len(records), "ingested": ingested}
136
+
137
+ return None
@@ -1,7 +1,7 @@
1
1
  """Plane ontology contribution (CONCEPT:AU-KG.ontology.federation-provider-leg).
2
2
 
3
3
  Data-only subpackage: it carries ``plane.ttl`` (the ``owl:Ontology``
4
- ``http://knuckles.team/kg/plane`` module) which the scion-sdk hub federates in via
4
+ ``https://knuckles-team.github.io/ontology/connector/plane`` module) which the scion-sdk hub federates in via
5
5
  the ``scion_sdk.ontology_providers`` entry-point. It holds no business logic
6
6
  and no heavy imports so the hub can resolve it cheaply.
7
7
  """