pdc-protocol — reference implementation
🌐 English · Português (Brasil)
Reference server for PDC — Continuity Point (Ponto de Continuidade) 1.0.
pdc/nucleo.py: pure-Python core (standard library only, SQLite), with the CF calculation, base-point control and idempotency.pdc/servidor_mcp.py: MCP server with the tools from section 6 of the specification (mcpSDK 1.x or 2.x).pdc/http_seguro.py: access control for HTTP mode (token in a header or in the URL, host checking,/health).pdc/instrucoes.py: protocol instructions given to AIs, in English (default) and Brazilian Portuguese.tests/: tests, including every vector intest-vectors/and the HTTP mode.
pip install -e ".[mcp]"
pdc-server --register-pa NB1 "Laptop"
pdc-server # stdio, for AI clients on this computer
pdc-server --lang pt-BR # instructions for AIs in Brazilian Portuguese
pdc-server --brief 12345678 # last point as plain text, for an AI with no connection
# remote: always behind HTTPS (see deploy/README.md in the repository)
export PDC_TOKEN="$(pdc-server --new-token)"
pdc-server --http --host 127.0.0.1 --port 8765 --allowed-host pdc.example.com
Data lives in ~/.pdc (variable PDC_DIR): pdc.sqlite3 and conferencia.key, both with mode 600. Back up both. Without the key, old CFs no longer verify.
Python identifiers and protocol names (operations, fields, error codes) are canonical and stay in Portuguese, as defined by the specification. The Portuguese spellings from the first release still work: pdc-servidor, --porta, --cadastrar-pa, --idioma, PDC_PASTA and PDC_IDIOMA.
License: MIT.
Metadata
Release files for pdc-protocol 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pdc_protocol-1.1.0.tar.gz | 22.2 kB | With provenance | Details for pdc_protocol-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdc_protocol-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for pdc_protocol-1.1.0-py3-none-any.whl |
Total release size: 41.0 kB
Release files / pdc_protocol-1.1.0.tar.gz
| Download URL | pdc_protocol-1.1.0.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7317ec7e37d2c8668a13e8b9cf3098e82a667806f2495703aa96908fe1502705
|
|
BLAKE2b-256 checksum How to use checksums |
657ded128719fa6e256362aa8404915ff07f6926c4e05c63cbb07c99c83ea4e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Dec 1, 2026.
Transparency logRelease files / pdc_protocol-1.1.0-py3-none-any.whl
| Download URL | pdc_protocol-1.1.0-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d07bb1ea1ce700b236e4dfa4a6844fef92f0cfc0785b00f0b05f6a07f2eb95d6
|
|
BLAKE2b-256 checksum How to use checksums |
8740b6c264ea9cec663e6384e83d3975dcb8848483c2e7a21153c9e465d35204
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Dec 1, 2026.
Transparency logSecurity for pdc-protocol 1.1.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.
Attestation for pdc_protocol-1.1.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 Dec 1, 2026.
Transparency logA 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.