Skip to main content

plaky115 · Python SDK + MCP server for Plaky

CI Python 3.11+ License: MIT Typed

A clean, typed Python SDK and a Model Context Protocol server for the Plaky public API — every documented operation, one wheel, no surprises. Ported from the pinned TypeScript source apet97/plaky115 (33ae2926, v1.0.11) with behavior-level parity tests.

Plaky115 is unofficial and independent. It is not affiliated with, endorsed by, or sponsored by Plaky or CAKE.com. “Plaky” and “CAKE.com” are trademarks of their respective owners.

Install

pip install plaky115          # SDK only
pip install "plaky115[mcp]"   # SDK + MCP server

Python 3.11+. One dependency stack: httpx2 + pydantic v2 (+ the official mcp v2 SDK behind the extra).

Highlights

  • All 34 public operations across ten resources — spaces, boards, items, comments, reactions, subscriptions, users, teams, item groups, item files — each pinned by contract descriptors and cross-surface parity tests.
  • Async-first with a real sync client. AsyncPlakyClient and PlakyClient share pure logic only; the sync client never touches an event loop.
  • Safe under failure. GET requests retry (equal-jitter backoff, bounded Retry-After); a write is replayed only after a 429, which Plaky never commits, and otherwise makes exactly one network attempt — even with an idempotency key. An opt-in RequestPacer keeps a client under Plaky's 200-per-minute limit. Mutation receipts record attempted / mayHaveCommitted conservatively.
  • Strict wire contracts. Paged roots must be {"data": [...], "hasMore": bool}; unsafe int64 JSON integers survive as exact decimal strings; bodies are bounded (16 MiB default / 64 MiB max); redirects are never followed; plk_ keys are redacted everywhere.
  • Batteries for real workflows. Resolvers (exact-ID fast path, one bounded list for text refs), field builders, bounded chunk readers with exact {page, index} continuation, deterministic spreadsheet-safe CSV/JSONL export, bulk updates with durable receipts.
  • Deterministic generation. OpenAPI contract → models and raw MCP tools are committed, drift-checked artifacts; scripts/generate.py --check fails CI on a single changed byte.

SDK quick start

from plaky115 import AsyncPlakyClient

async with AsyncPlakyClient(api_key="...") as plaky:
    page = await plaky.spaces.list(page_size=50)
    for space in page.data:
        print(space.id, space.title)
from plaky115 import PlakyClient

with PlakyClient(api_key="...") as plaky:
    for space in plaky.spaces.iterate(page_size=100):
        print(space.id, space.title)

The API key is sent only in the X-API-Key header, only to the configured HTTPS origin. Python surfaces are snake_case; wire names stay Plaky camelCase via model aliases.

MCP server

export PLAKY115_API_KEY=...   # environment only; never an argument
plaky115-mcp --transport stdio                       # local hosts
plaky115-mcp --transport streamable-http --port 8000 # deployment
  • Safe by default: curated mode + read scope. Write and destructive tools mount only with explicit flags; mutation workflows default to dry-run.
  • Two tool surfaces: 34 generated raw tools (one per operation) and 8 curated tools with 11 workflow IDs (workspace.map, items.search, comments.thread, export.items, items.create, items.updateFields, comments.add, itemGroups.create, itemGroups.update, itemFiles.upload, itemFiles.update).
  • Structured everything: every tool publishes success and error output schemas; known failures return a typed envelope with attempt state; results are capped at 128 KiB with exact continuations.
  • Hardened HTTP: stateless Streamable HTTP with request-scoped SSE, 36 MiB body cap, DNS-rebinding protection, loopback-default binding, secret-free /healthz. Uploads accept canonical base64 + metadata — never local paths.

Host config example: examples/mcp_stdio.json. Deployment notes: docs/mcp.md and docs/deploy-cloudflare.md.

Documentation

Guide Contents
docs/sdk.md Clients, resources, server behaviour, field values, errors, rate limit, pagination
docs/mcp.md Modes, scopes, result contracts, deployment
docs/compatibility-inventory.md All 34 operations mapped to SDK + MCP names
CONTRIBUTING.md Architecture, generated boundaries, contract and evaluation workflow
SECURITY.md Credential and transport policy
docs/live-certification.md Read/write live gates

Development

uv sync --all-extras --group dev
uv run pytest
uv run python scripts/verify.py --offline  # full release-grade gate

The offline verifier checks: parity inventories, contract + generation determinism, format/lint, strict pyright, tests with branch coverage, example syntax, docs gates, wheel/sdist build, twine, fresh-environment package smoke (base install without mcp, installed-wheel typing proof), four-scope secret scan, and lock integrity. The read-only live certification exercises all 18 read operations across four independent surfaces.

License

MIT — see LICENSE. Retains the upstream copyright notice from the pinned source.

Metadata

Release files for plaky115 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plaky115 1.3.0
File Size Uploaded Provenance Actions
plaky115-1.3.0.tar.gz 103.4 kB With provenance Details for plaky115-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plaky115 1.3.0
File Interpreter ABI Platform Actions
plaky115-1.3.0-py3-none-any.whl Python 3 none any Details for plaky115-1.3.0-py3-none-any.whl

Total release size: 292.8 kB

Release files / plaky115-1.3.0.tar.gz

Download URL plaky115-1.3.0.tar.gz
Size 103.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f3688d3c386afbaa3b624574f34719935ab2166d92a741d7c44fac39bb6d76ca
BLAKE2b-256 checksum
How to use checksums
da88fd9ced2020da25c3022640f7d27e280b6187a927a2c357fabcfdb59750e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / plaky115-1.3.0-py3-none-any.whl

Download URL plaky115-1.3.0-py3-none-any.whl
Size 189.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2614fea9247c1472b1419b21ce53b375a9c57c1d2183343eaf4bc3715806f0d
BLAKE2b-256 checksum
How to use checksums
97f4634d5ddd287bac0a68c31b5fb2f2fadce8b1baf22b363c94d97374ae73c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Security for plaky115 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for plaky115-1.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page