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 32 public operations across nine resources — spaces, boards, items, comments, reactions, 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. Only GET requests retry (equal-jitter backoff, bounded Retry-After); writes make exactly one network attempt — even with an idempotency key. 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: 32 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, options, resources, errors, pagination
docs/mcp.md Modes, scopes, result contracts, deployment
docs/compatibility-inventory.md All 32 operations mapped to SDK + MCP names
docs/api-behavior.md Wire-level behavior notes
docs/security.md · SECURITY.md Credential and transport policy
docs/contract-evolution.md fetch → diff → accept → regenerate
docs/live-certification.md Read/write live gates

Development

uv sync --all-extras --group dev
uv run pytest                              # 309 tests
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 17 read operations across four independent surfaces.

License

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

Release files for plaky115 1.2.1

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.2.1
File Size Uploaded
plaky115-1.2.1.tar.gz 88.1 kB Details

Built distribution (wheel)

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

Total release size: 245.0 kB

Release files / plaky115-1.2.1.tar.gz

Download URL plaky115-1.2.1.tar.gz
Size 88.1 kB
Tags Source
SHA-256 checksum
How to use checksums
afb4514904596c307e3f59cb87fbef2652eccb9cbf005cf4dcb2806935119aae
BLAKE2b-256 checksum
How to use checksums
37802aa63f433191102392d0baba1cddeb7f15d013ef22b5b7b59b0ed3a7bc07
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 Aug 14, 2026.

Transparency log

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

Download URL plaky115-1.2.1-py3-none-any.whl
Size 156.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb8e96eb67c4d30745205a879606df7eed6eed79e2c6f582bfb1b747664c8397
BLAKE2b-256 checksum
How to use checksums
3d067c8b5e623f7ef601f100735338d8cd5b4da7b10c47784ba3dc859d05b7f1
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 Aug 14, 2026.

Transparency log

Release history Release notifications | RSS feed

1.2.2

2 release files

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

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