Skip to main content

TDN Protheus MCP

MCP público e open source para pesquisar documentação TDN Protheus a partir de um snapshot local controlado pela pessoa usuária. Funciona por stdio, não exige token de LLM e não depende do Chat Protheus IA Lab.

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.

O que ele faz

  • Pesquisa um índice SQLite FTS5 local e devolve citações (source_url, página e chunk).
  • Expõe tools, resources e prompts MCP para qualquer harness compatível com MCP por stdio; Codex e Claude Code são apenas clientes de referência.
  • Inicia offline e read-only. Não baixa documentos durante consultas.
  • A obtenção e atualização do snapshot são capacidades do próprio pacote, sempre acionadas explicitamente.

Início rápido

Depois da publicação no PyPI:

uvx --from "tdn-protheus-mcp[snapshot]" tdn-protheus-mcp doctor --config ./tdn-protheus-mcp.config.json --json
uvx --from "tdn-protheus-mcp[snapshot]" tdn-protheus-mcp index --config ./tdn-protheus-mcp.config.json --root-id 235312129 --json

Copie tdn-protheus-mcp.config.example.json, altere cache_root e, quando quiser atualizar, use apply-refresh com os opt-ins exigidos. Veja instalação, segurança e o contrato MCP.

Clientes MCP

OpenRouter é um gateway/model provider, não um host MCP por si só. Use-o somente através de um cliente que implemente MCP stdio.

Compatibilidade de harness

O servidor não depende do Chat Protheus IA Lab, de um modelo específico ou de um fornecedor de agentes. Claude Code, Codex, Claude Desktop, Cursor, Cline, IDEs e outros harnesses usam o mesmo processo stdio e contrato. Qualquer ferramenta que produza o formato público de snapshot local pode alimentar o MCP.

Desenvolvimento

python -m pip install -e ".[snapshot]"
python -m unittest discover -s tests -p "test_*.py" -v
python -m build
python -m twine check dist/*

Não envie tdn-cache/, .venv/, snapshots, JSONL, HTML coletado, segredos ou dados de clientes. Consulte CONTRIBUTING.md, SECURITY.md, SUPPORT.md e CHANGELOG.md.

Release files for tdn-protheus-mcp 0.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 tdn-protheus-mcp 0.3.0
File Size Uploaded
tdn_protheus_mcp-0.3.0.tar.gz 35.9 kB Details

Built distribution (wheel)

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

Total release size: 66.7 kB

Release files / tdn_protheus_mcp-0.3.0.tar.gz

Download URL tdn_protheus_mcp-0.3.0.tar.gz
Size 35.9 kB
Tags Source
SHA-256 checksum
How to use checksums
752c45a35c22fccd871ef6ef75dd1a7137cd8fddaec1492c7258f6a8a2c183d2
BLAKE2b-256 checksum
How to use checksums
17ac822b3713d62d632072bce428d9cd7fb423d8538884e5f4672927bfd922d3
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 15, 2026.

Transparency log

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

Download URL tdn_protheus_mcp-0.3.0-py3-none-any.whl
Size 30.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1c73291cf9b0e337fbebfb692c927db6d749ff344dc69431a5f89a9177d47ff
BLAKE2b-256 checksum
How to use checksums
8f6cacb4ac985e11fd961ecf206365e82b8ae8a8bcc031c022d54a2cb3100d7f
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 15, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

This release

0.3.0 This release

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