plane-mcp-oss 0.1.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.
- plane_mcp_oss-0.1.0/.env.example +27 -0
- plane_mcp_oss-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +79 -0
- plane_mcp_oss-0.1.0/.github/ISSUE_TEMPLATE/config.yml +11 -0
- plane_mcp_oss-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +40 -0
- plane_mcp_oss-0.1.0/.github/dependabot.yml +11 -0
- plane_mcp_oss-0.1.0/.github/pull_request_template.md +28 -0
- plane_mcp_oss-0.1.0/.github/workflows/ci.yml +42 -0
- plane_mcp_oss-0.1.0/.github/workflows/publish.yml +48 -0
- plane_mcp_oss-0.1.0/.gitignore +17 -0
- plane_mcp_oss-0.1.0/.python-version +1 -0
- plane_mcp_oss-0.1.0/CHANGELOG.md +36 -0
- plane_mcp_oss-0.1.0/CODE_OF_CONDUCT.md +128 -0
- plane_mcp_oss-0.1.0/CONTRIBUTING.md +109 -0
- plane_mcp_oss-0.1.0/LICENSE +21 -0
- plane_mcp_oss-0.1.0/PKG-INFO +266 -0
- plane_mcp_oss-0.1.0/README.md +234 -0
- plane_mcp_oss-0.1.0/SECURITY.md +42 -0
- plane_mcp_oss-0.1.0/main.py +4 -0
- plane_mcp_oss-0.1.0/pyproject.toml +55 -0
- plane_mcp_oss-0.1.0/src/plane_mcp/__init__.py +8 -0
- plane_mcp_oss-0.1.0/src/plane_mcp/__main__.py +6 -0
- plane_mcp_oss-0.1.0/src/plane_mcp/client.py +542 -0
- plane_mcp_oss-0.1.0/src/plane_mcp/config.py +118 -0
- plane_mcp_oss-0.1.0/src/plane_mcp/server.py +815 -0
- plane_mcp_oss-0.1.0/tests/test_client.py +370 -0
- plane_mcp_oss-0.1.0/tests/test_server.py +158 -0
- plane_mcp_oss-0.1.0/uv.lock +2083 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Copy to `.env` (loaded automatically) or export these in your shell / MCP
|
|
2
|
+
# client config. CLI flags override all of these.
|
|
3
|
+
|
|
4
|
+
# --- Credentials -------------------------------------------------------------
|
|
5
|
+
# Personal access token from Plane: Profile settings -> Personal access tokens.
|
|
6
|
+
# Sent as the `X-API-Key` header. Alias: PLANE_TOKEN.
|
|
7
|
+
PLANE_API_KEY=plane_api_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
8
|
+
|
|
9
|
+
# Alternative to the API key: an OAuth access token, sent as `Authorization: Bearer ...`.
|
|
10
|
+
# PLANE_OAUTH_TOKEN=
|
|
11
|
+
|
|
12
|
+
# --- Instance ----------------------------------------------------------------
|
|
13
|
+
# Workspace slug from your Plane URL: https://app.plane.so/<workspace-slug>/projects/
|
|
14
|
+
# Alias: PLANE_WORKSPACE.
|
|
15
|
+
PLANE_WORKSPACE_SLUG=my-team
|
|
16
|
+
|
|
17
|
+
# Plane instance URL. Alias: PLANE_URL.
|
|
18
|
+
# Leave as the default for Plane Cloud, or point it at your self-hosted instance.
|
|
19
|
+
# All of these are accepted:
|
|
20
|
+
# https://api.plane.so (Plane Cloud)
|
|
21
|
+
# https://plane.example.com (self-hosted)
|
|
22
|
+
# https://example.com/plane (self-hosted behind a subpath)
|
|
23
|
+
# https://plane.example.com/api/v1 (version suffix included)
|
|
24
|
+
PLANE_BASE_URL=https://api.plane.so
|
|
25
|
+
|
|
26
|
+
# Request timeout in seconds.
|
|
27
|
+
PLANE_TIMEOUT=30
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Report something that is broken or behaves unexpectedly
|
|
3
|
+
title: "[Bug]: "
|
|
4
|
+
labels: ["bug"]
|
|
5
|
+
body:
|
|
6
|
+
- type: markdown
|
|
7
|
+
attributes:
|
|
8
|
+
value: |
|
|
9
|
+
Thanks for taking the time to file a bug! Please fill in as much as you
|
|
10
|
+
can — it makes fixing much faster.
|
|
11
|
+
- type: checkboxes
|
|
12
|
+
id: preflight
|
|
13
|
+
attributes:
|
|
14
|
+
label: Preflight
|
|
15
|
+
options:
|
|
16
|
+
- label: I searched existing issues and this is not a duplicate.
|
|
17
|
+
required: true
|
|
18
|
+
- label: I am running the latest commit on `main`.
|
|
19
|
+
required: false
|
|
20
|
+
- type: input
|
|
21
|
+
id: version
|
|
22
|
+
attributes:
|
|
23
|
+
label: Version / commit
|
|
24
|
+
description: Output of `uv run plane-mcp --show-config`, or the commit SHA.
|
|
25
|
+
validations:
|
|
26
|
+
required: true
|
|
27
|
+
- type: dropdown
|
|
28
|
+
id: plane-edition
|
|
29
|
+
attributes:
|
|
30
|
+
label: Plane edition
|
|
31
|
+
description: "`GET /api/instances/` reports this under `instance.edition`."
|
|
32
|
+
options:
|
|
33
|
+
- Plane Cloud
|
|
34
|
+
- Community Edition (self-hosted)
|
|
35
|
+
- Enterprise (self-hosted)
|
|
36
|
+
- Not sure
|
|
37
|
+
validations:
|
|
38
|
+
required: true
|
|
39
|
+
- type: input
|
|
40
|
+
id: plane-version
|
|
41
|
+
attributes:
|
|
42
|
+
label: Plane version
|
|
43
|
+
description: "`instance.current_version` from `GET /api/instances/`."
|
|
44
|
+
validations:
|
|
45
|
+
required: false
|
|
46
|
+
- type: input
|
|
47
|
+
id: transport
|
|
48
|
+
attributes:
|
|
49
|
+
label: Transport & client
|
|
50
|
+
placeholder: "stdio via Claude Desktop / http via Cursor"
|
|
51
|
+
validations:
|
|
52
|
+
required: true
|
|
53
|
+
- type: textarea
|
|
54
|
+
id: what-happened
|
|
55
|
+
attributes:
|
|
56
|
+
label: What happened?
|
|
57
|
+
description: Include the tool name, arguments, and the full error message.
|
|
58
|
+
validations:
|
|
59
|
+
required: true
|
|
60
|
+
- type: textarea
|
|
61
|
+
id: expected
|
|
62
|
+
attributes:
|
|
63
|
+
label: What did you expect?
|
|
64
|
+
validations:
|
|
65
|
+
required: true
|
|
66
|
+
- type: textarea
|
|
67
|
+
id: repro
|
|
68
|
+
attributes:
|
|
69
|
+
label: Steps to reproduce
|
|
70
|
+
validations:
|
|
71
|
+
required: true
|
|
72
|
+
- type: textarea
|
|
73
|
+
id: logs
|
|
74
|
+
attributes:
|
|
75
|
+
label: Relevant logs
|
|
76
|
+
description: Redact tokens before pasting.
|
|
77
|
+
render: shell
|
|
78
|
+
validations:
|
|
79
|
+
required: false
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
blank_issues_enabled: false
|
|
2
|
+
contact_links:
|
|
3
|
+
- name: Question or usage help
|
|
4
|
+
url: https://github.com/abelsr/plane-mcp-oss/discussions
|
|
5
|
+
about: Ask how to configure or use the server.
|
|
6
|
+
- name: Security report
|
|
7
|
+
url: https://github.com/abelsr/plane-mcp-oss/security/advisories/new
|
|
8
|
+
about: Please report vulnerabilities privately, not as a public issue.
|
|
9
|
+
- name: Plane API reference
|
|
10
|
+
url: https://developers.plane.so/api-reference/introduction
|
|
11
|
+
about: Documentation for the underlying Plane REST API.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Suggest a new tool, capability, or improvement
|
|
3
|
+
title: "[Feature]: "
|
|
4
|
+
labels: ["enhancement"]
|
|
5
|
+
body:
|
|
6
|
+
- type: checkboxes
|
|
7
|
+
id: preflight
|
|
8
|
+
attributes:
|
|
9
|
+
label: Preflight
|
|
10
|
+
options:
|
|
11
|
+
- label: I searched existing issues and this is not a duplicate.
|
|
12
|
+
required: true
|
|
13
|
+
- type: textarea
|
|
14
|
+
id: problem
|
|
15
|
+
attributes:
|
|
16
|
+
label: Problem
|
|
17
|
+
description: What are you trying to do that the server does not support yet?
|
|
18
|
+
validations:
|
|
19
|
+
required: true
|
|
20
|
+
- type: textarea
|
|
21
|
+
id: proposal
|
|
22
|
+
attributes:
|
|
23
|
+
label: Proposed solution
|
|
24
|
+
description: |
|
|
25
|
+
If you know the Plane endpoint, include its method and path
|
|
26
|
+
(see https://developers.plane.so/api-reference/introduction).
|
|
27
|
+
validations:
|
|
28
|
+
required: true
|
|
29
|
+
- type: textarea
|
|
30
|
+
id: alternatives
|
|
31
|
+
attributes:
|
|
32
|
+
label: Alternatives considered
|
|
33
|
+
validations:
|
|
34
|
+
required: false
|
|
35
|
+
- type: textarea
|
|
36
|
+
id: context
|
|
37
|
+
attributes:
|
|
38
|
+
label: Additional context
|
|
39
|
+
validations:
|
|
40
|
+
required: false
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
## What does this PR do?
|
|
2
|
+
|
|
3
|
+
<!-- A short description of the change and the motivation behind it. -->
|
|
4
|
+
|
|
5
|
+
## Related issue
|
|
6
|
+
|
|
7
|
+
<!-- e.g. Closes #12 -->
|
|
8
|
+
|
|
9
|
+
## Type of change
|
|
10
|
+
|
|
11
|
+
- [ ] Bug fix
|
|
12
|
+
- [ ] New tool / feature
|
|
13
|
+
- [ ] Documentation
|
|
14
|
+
- [ ] Refactor / chore
|
|
15
|
+
- [ ] Breaking change
|
|
16
|
+
|
|
17
|
+
## Plane endpoint(s) used
|
|
18
|
+
|
|
19
|
+
<!-- If adding a tool: METHOD /api/v1/path -->
|
|
20
|
+
|
|
21
|
+
## Checklist
|
|
22
|
+
|
|
23
|
+
- [ ] `uv run pytest` passes locally
|
|
24
|
+
- [ ] New tools are added to `EXPECTED_TOOLS` in `tests/test_server.py`
|
|
25
|
+
- [ ] New client methods have an offline test asserting method/path/body
|
|
26
|
+
- [ ] `README.md` tool table updated (if a tool changed)
|
|
27
|
+
- [ ] `CHANGELOG.md` updated under `[Unreleased]`
|
|
28
|
+
- [ ] No credentials, `.env` files, or real workspace data included
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: ci-${{ github.ref }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
test:
|
|
18
|
+
name: tests (py${{ matrix.python-version }})
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
strategy:
|
|
21
|
+
fail-fast: false
|
|
22
|
+
matrix:
|
|
23
|
+
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v7
|
|
26
|
+
|
|
27
|
+
- name: Install uv
|
|
28
|
+
uses: astral-sh/setup-uv@v10.2.0
|
|
29
|
+
with:
|
|
30
|
+
enable-cache: true
|
|
31
|
+
|
|
32
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
33
|
+
run: uv python install ${{ matrix.python-version }}
|
|
34
|
+
|
|
35
|
+
- name: Install dependencies
|
|
36
|
+
run: uv sync --extra dev --python ${{ matrix.python-version }}
|
|
37
|
+
|
|
38
|
+
- name: Run tests
|
|
39
|
+
run: uv run --python ${{ matrix.python-version }} pytest -q
|
|
40
|
+
|
|
41
|
+
- name: Build the distribution
|
|
42
|
+
run: uv build
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
# Publishes the built distribution to PyPI using Trusted Publishing (OIDC):
|
|
4
|
+
# no API token is stored in the repository.
|
|
5
|
+
#
|
|
6
|
+
# One-time setup on PyPI (Account -> Publishing -> Add a pending publisher):
|
|
7
|
+
# PyPI project name : plane-mcp-oss
|
|
8
|
+
# Owner : abelsr
|
|
9
|
+
# Repository name : plane-mcp-oss
|
|
10
|
+
# Workflow name : publish.yml
|
|
11
|
+
# Environment name : pypi
|
|
12
|
+
#
|
|
13
|
+
# After that, publishing a GitHub Release triggers this workflow. It can also
|
|
14
|
+
# be run manually from the Actions tab.
|
|
15
|
+
|
|
16
|
+
on:
|
|
17
|
+
release:
|
|
18
|
+
types: [published]
|
|
19
|
+
workflow_dispatch:
|
|
20
|
+
|
|
21
|
+
permissions:
|
|
22
|
+
contents: read
|
|
23
|
+
|
|
24
|
+
jobs:
|
|
25
|
+
publish:
|
|
26
|
+
name: Build and publish
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
environment:
|
|
29
|
+
name: pypi
|
|
30
|
+
url: https://pypi.org/p/plane-mcp-oss
|
|
31
|
+
permissions:
|
|
32
|
+
id-token: write # required for Trusted Publishing
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@v7
|
|
35
|
+
|
|
36
|
+
- name: Install uv
|
|
37
|
+
uses: astral-sh/setup-uv@v10.2.0
|
|
38
|
+
|
|
39
|
+
- name: Run tests
|
|
40
|
+
run: |
|
|
41
|
+
uv sync --extra dev
|
|
42
|
+
uv run pytest -q
|
|
43
|
+
|
|
44
|
+
- name: Build sdist and wheel
|
|
45
|
+
run: uv build
|
|
46
|
+
|
|
47
|
+
- name: Publish to PyPI
|
|
48
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here. The format is based on
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
|
|
5
|
+
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.1.0] - 2026-09-25
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- FastMCP server exposing the Plane REST API over stdio, HTTP, and SSE.
|
|
14
|
+
- Configuration from environment variables, a `.env` file, or CLI flags, with
|
|
15
|
+
precedence and aliases (`PLANE_URL`, `PLANE_WORKSPACE`, `PLANE_TOKEN`); self-hosted
|
|
16
|
+
URL normalization (subpaths, trailing slashes, versioned URLs).
|
|
17
|
+
- `--show-config` to print the resolved configuration with secrets redacted.
|
|
18
|
+
- Tools for projects, work items, states, labels, cycles, modules, workspace
|
|
19
|
+
members, the current user, and work item comments (create/list/update/delete).
|
|
20
|
+
- Tools for pages — workspace wiki and project pages — with the full
|
|
21
|
+
create/update/archive/restore/delete lifecycle.
|
|
22
|
+
- `search_work_items` (public search endpoint) and
|
|
23
|
+
`advanced_search_work_items` (permission-gated).
|
|
24
|
+
- MCP resources `plane://me`, `plane://projects`,
|
|
25
|
+
`plane://projects/{project_id}/states` and the `triage_work_items` prompt.
|
|
26
|
+
- 32 offline tests using `httpx.MockTransport` and an in-memory FastMCP client.
|
|
27
|
+
|
|
28
|
+
### Notes
|
|
29
|
+
|
|
30
|
+
- The public Pages REST API is **Plane Cloud only**; it is absent from the
|
|
31
|
+
open-source Community Edition, so the page tools return an explanatory error
|
|
32
|
+
there.
|
|
33
|
+
- `advanced_search_work_items` may return 403 depending on workspace permissions.
|
|
34
|
+
|
|
35
|
+
[Unreleased]: https://github.com/abelsr/plane-mcp-oss/compare/v0.1.0...HEAD
|
|
36
|
+
[0.1.0]: https://github.com/abelsr/plane-mcp-oss/releases/tag/v0.1.0
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity
|
|
10
|
+
and orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
19
|
+
|
|
20
|
+
* Demonstrating empathy and kindness toward other people
|
|
21
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
* Giving and gracefully accepting constructive feedback
|
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the
|
|
26
|
+
overall community
|
|
27
|
+
|
|
28
|
+
Examples of unacceptable behavior include:
|
|
29
|
+
|
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or advances
|
|
31
|
+
of any kind
|
|
32
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
+
* Public or private harassment
|
|
34
|
+
* Publishing others' private information, such as a physical or email
|
|
35
|
+
address, without their explicit permission
|
|
36
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
## Enforcement Responsibilities
|
|
40
|
+
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
45
|
+
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official email address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
58
|
+
|
|
59
|
+
## Enforcement
|
|
60
|
+
|
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
+
reported to the community leaders responsible for enforcement at
|
|
63
|
+
abelsantillanrdz@gmail.com.
|
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
+
|
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
+
reporter of any incident.
|
|
68
|
+
|
|
69
|
+
## Enforcement Guidelines
|
|
70
|
+
|
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
+
|
|
74
|
+
### 1. Correction
|
|
75
|
+
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
+
unprofessional or unwelcome in the community.
|
|
78
|
+
|
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
|
82
|
+
|
|
83
|
+
### 2. Warning
|
|
84
|
+
|
|
85
|
+
**Community Impact**: A violation through a single incident or series
|
|
86
|
+
of actions.
|
|
87
|
+
|
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
+
like social media. Violating these terms may lead to a temporary or
|
|
93
|
+
permanent ban.
|
|
94
|
+
|
|
95
|
+
### 3. Temporary Ban
|
|
96
|
+
|
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
|
98
|
+
sustained inappropriate behavior.
|
|
99
|
+
|
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
+
communication with the community for a specified period of time. No public or
|
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
+
Violating these terms may lead to a permanent ban.
|
|
105
|
+
|
|
106
|
+
### 4. Permanent Ban
|
|
107
|
+
|
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
+
|
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within
|
|
113
|
+
the community.
|
|
114
|
+
|
|
115
|
+
## Attribution
|
|
116
|
+
|
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
+
version 2.1, available at
|
|
119
|
+
https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.
|
|
120
|
+
|
|
121
|
+
Community Impact Guidelines were inspired by
|
|
122
|
+
[Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
|
123
|
+
|
|
124
|
+
[homepage]: https://www.contributor-covenant.org
|
|
125
|
+
|
|
126
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
127
|
+
https://www.contributor-covenant.org/faq. Translations are available at
|
|
128
|
+
https://www.contributor-covenant.org/translations.
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for your interest in improving the Plane MCP server! This project is
|
|
4
|
+
small and friendly — issues and pull requests are welcome.
|
|
5
|
+
|
|
6
|
+
By participating you agree to the [Code of Conduct](CODE_OF_CONDUCT.md).
|
|
7
|
+
|
|
8
|
+
## Ways to contribute
|
|
9
|
+
|
|
10
|
+
- **Report a bug** — open an issue; include your Plane edition/version
|
|
11
|
+
(`GET /api/instances/` reports it) and the exact tool call.
|
|
12
|
+
- **Request an operation** — the server covers a subset of the Plane API. If a
|
|
13
|
+
tool is missing, say which endpoint you need.
|
|
14
|
+
- **Add a tool** — see [Adding a tool](#adding-a-tool) below.
|
|
15
|
+
- **Improve docs** — corrections to the README, examples, and error messages.
|
|
16
|
+
|
|
17
|
+
## Development setup
|
|
18
|
+
|
|
19
|
+
Requirements: Python 3.10+ and [uv](https://docs.astral.sh/uv/).
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
git clone https://github.com/abelsr/plane-mcp-oss.git
|
|
23
|
+
cd plane-mcp-oss
|
|
24
|
+
uv sync --extra dev
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Run the tests (they are fully offline — no Plane account required):
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
uv run pytest
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Try the server against a workspace:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
cp .env.example .env # then fill in PLANE_API_KEY / PLANE_WORKSPACE_SLUG
|
|
37
|
+
uv run plane-mcp --show-config
|
|
38
|
+
uv run plane-mcp # stdio; Ctrl-C to stop
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
> **Never commit real credentials.** `.env` is git-ignored; keep it that way.
|
|
42
|
+
> Tests use dummy tokens and `httpx.MockTransport`, so they never touch the
|
|
43
|
+
> network.
|
|
44
|
+
|
|
45
|
+
## Project layout
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
src/plane_mcp/
|
|
49
|
+
├── config.py # env/.env/CLI settings + validation
|
|
50
|
+
├── client.py # async httpx wrapper: auth, URLs, errors, pagination (no FastMCP)
|
|
51
|
+
├── server.py # FastMCP tools/resources/prompts + CLI
|
|
52
|
+
└── __main__.py
|
|
53
|
+
tests/ # offline: httpx.MockTransport + in-memory FastMCP client
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The split matters: `client.py` must not import FastMCP, so it stays reusable
|
|
57
|
+
and unit-testable. Keep API concerns there and tool wiring in `server.py`.
|
|
58
|
+
|
|
59
|
+
## Adding a tool
|
|
60
|
+
|
|
61
|
+
1. Add a method to `PlaneClient` in `client.py` using the helper that builds
|
|
62
|
+
workspace paths, and raise-through `PlaneAPIError` (do not import FastMCP).
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
async def list_pages(self, *, project_id: str | None = None) -> dict[str, Any]:
|
|
66
|
+
return await self.request("GET", self._pages_root(project_id))
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
2. Register the tool in `server.py`, wrapping the call with `_call` so failures
|
|
70
|
+
become clean `ToolError`s, and write a docstring with an `Args:` section —
|
|
71
|
+
MCP clients surface it directly to the model.
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
@mcp.tool
|
|
75
|
+
async def list_pages(project_id: str | None = None) -> dict[str, Any]:
|
|
76
|
+
"""List pages.
|
|
77
|
+
|
|
78
|
+
Args:
|
|
79
|
+
project_id: Project UUID, or omit for workspace wiki pages.
|
|
80
|
+
"""
|
|
81
|
+
client = get_client()
|
|
82
|
+
data = await _call(client.list_pages(project_id=project_id))
|
|
83
|
+
return summarize_paginated(data)
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
3. Add the tool name to `EXPECTED_TOOLS` in `tests/test_server.py`.
|
|
87
|
+
4. Add an offline test in `tests/test_client.py` that stubs the HTTP call and
|
|
88
|
+
asserts the method, path, and body — see existing tests for the pattern.
|
|
89
|
+
5. Update the tool table in `README.md` and add a `CHANGELOG.md` entry.
|
|
90
|
+
|
|
91
|
+
## Style
|
|
92
|
+
|
|
93
|
+
- Keep the `ruff` defaults in mind (line length ~100, imports sorted); no
|
|
94
|
+
formatter is enforced yet, so match the surrounding code.
|
|
95
|
+
- Prefer stdlib and the two runtime dependencies (`fastmcp`, `httpx`) over new
|
|
96
|
+
packages. Discuss in an issue before adding a dependency.
|
|
97
|
+
- Public functions and tools get type hints and a docstring.
|
|
98
|
+
|
|
99
|
+
## Commit and PR guidelines
|
|
100
|
+
|
|
101
|
+
- Branch from `main`; keep pull requests focused on one change.
|
|
102
|
+
- Write imperative, descriptive commits (e.g. `Add cycle work item tools`).
|
|
103
|
+
- Ensure `uv run pytest` passes and CI is green.
|
|
104
|
+
- Describe **what** and **why** in the PR; reference the Plane endpoint you used.
|
|
105
|
+
|
|
106
|
+
## License
|
|
107
|
+
|
|
108
|
+
By contributing, you agree that your contributions are licensed under the
|
|
109
|
+
[MIT License](LICENSE).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Abel Santillan Rodriguez
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|