Skip to main content

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.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 tdn-protheus-mcp 0.4.1
File Size Uploaded
tdn_protheus_mcp-0.4.1.tar.gz 26.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tdn-protheus-mcp 0.4.1
File Interpreter ABI Platform
tdn_protheus_mcp-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 48.8 kB

Release files / tdn_protheus_mcp-0.4.1.tar.gz

Download URL tdn_protheus_mcp-0.4.1.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
893a8aed3279eb813578774f88bd5e204d7d77e5fd935676be71b64e72eaad53
BLAKE2b-256 checksum
How to use checksums
3440a69962ff993e55c4d2f154cd460bfbb3d92e0c85f961c3ccff29e9a4be16
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 17, 2026.

Transparency log

Release files / tdn_protheus_mcp-0.4.1-py3-none-any.whl

Download URL tdn_protheus_mcp-0.4.1-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acb8bdc5fb37794e3e88b7b036cdf1bee3d70fde926b2e7951fba1db105a53ca
BLAKE2b-256 checksum
How to use checksums
fa1d2bfac97f6cd211fbaf664415684ca702e8e69b7c9df545bb878b5a439bf8
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 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.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