TDN Protheus MCP
MCP público e open source para pesquisar um snapshot local controlado pela pessoa usuária da documentação TDN Protheus. O servidor funciona exclusivamente por stdio, é somente leitura e não possui capacidade de rede ou atualização de snapshot.
O código usa Apache-2.0. A licença não transfere direitos sobre conteúdo, marcas ou serviços TOTVS/TDN; não publique snapshots nem dados de clientes.
Responsabilidade
- Lê snapshots locais produzidos pela skill complementar ou por outro produtor compatível.
- Cria índice SQLite FTS5 local e vincula o índice ao fingerprint exato do snapshot.
- Recusa consultas quando o índice está ausente, inválido ou desatualizado.
- Deriva metadados de módulo, tabela, parâmetro, rotina e ponto de entrada durante a indexação.
- Expõe tools/resources/prompts MCP via
stdio.
O que ele não faz
- Não coleta documentação da internet.
- Não atualiza snapshots.
- Não conecta no ERP, banco, AppServer ou RPO.
- Não executa AdvPL/TLPP.
Início rápido
uvx --from tdn-protheus-mcp tdn-protheus-mcp doctor --config ./tdn-protheus-mcp.config.json --json
uvx --from tdn-protheus-mcp tdn-protheus-mcp index --config ./tdn-protheus-mcp.config.json --root-id 235312129 --json
Depois configure o cliente para iniciar:
tdn-protheus-mcp serve --config ./tdn-protheus-mcp.config.json --transport stdio
Após qualquer snapshot/refresh feito pela Skill, execute index novamente. Se isso não ocorrer, a busca retorna POLICY_INDEX_STALE em vez de responder com evidência antiga.
Skill complementar
https://github.com/danielmontagna86-source/tdn-protheus-skill-kit
A Skill é o único componente responsável por localizar, coletar e atualizar a documentação. O MCP somente consome o snapshot já preparado.
Desenvolvimento
python -m pip install -e .
python -m unittest discover -s tests -p "test_*.py" -v
python -m build
python -m twine check dist/*
Release files for tdn-protheus-mcp 0.4.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 | |
|---|---|---|---|
| tdn_protheus_mcp-0.4.0.tar.gz | 25.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tdn_protheus_mcp-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.3 kB
Release files / tdn_protheus_mcp-0.4.0.tar.gz
| Download URL | tdn_protheus_mcp-0.4.0.tar.gz |
|---|---|
| Size | 25.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d897f6f9e65f6113723c4eeca824141c09a2f8bc02572cd57af52c1a265e81cb
|
|
BLAKE2b-256 checksum How to use checksums |
12d6a6edb34d45f10fb5015f4db0b1de7ba18bc5fa6416f3eea0b763335ab30a
|
| 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 16, 2026.
Transparency logRelease files / tdn_protheus_mcp-0.4.0-py3-none-any.whl
| Download URL | tdn_protheus_mcp-0.4.0-py3-none-any.whl |
|---|---|
| Size | 22.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c821db3faaebbc7ebe4943d8fca3d6c5ccde22f80625618ef40bbc8485ea9ecb
|
|
BLAKE2b-256 checksum How to use checksums |
3cf86871571dd46c02c12e3623e78b48de86de8ee8ba86cd45922bfc529cbf40
|
| 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 16, 2026.
Transparency log