Skip to main content

TecJustica CLI

CLI para consulta de processos judiciais brasileiros via MCP.

Acesse seus processos diretamente do terminal — navegue, busque, analise e consulte precedentes sem sair da linha de comando.

Instalacao

# Recomendado (instala em venv isolado)
pipx install tecjustica

# Alternativa (dentro de um venv existente)
pip install tecjustica

Nota: Em sistemas com Python 3.12+ (Ubuntu 24.04, Debian 13, etc.), pip install global e bloqueado por PEP 668. Use pipx ou instale dentro de um virtual environment.

Autenticacao

# Login via navegador (metodo padrao — abre OAuth no browser)
tecjustica login

# Alternativa: login com API key
tecjustica login --token tk_SUA_CHAVE

# Alternativa: login com email/senha
tecjustica login --email seu@email.com --password suasenha

# Verificar autenticacao
tecjustica whoami

# Desconectar
tecjustica logout

Comandos

Comando Descricao
login Autenticar (abre navegador por padrao)
logout Remover autenticacao salva
listar-processos Listar processos disponiveis
visao-geral Visao geral de um processo (metadados, partes, stats)
ls-docs Listar documentos de um processo
ls-movs Listar movimentacoes de um processo
read-doc Ler conteudo de um documento
grep-docs Buscar texto em documentos (full-text search)
grep-movs Buscar texto em movimentacoes
glob-docs Filtrar documentos por nome/tipo
localizar Localizar termo em documento (posicoes exatas)
analisar Analisar processo com IA
precedentes Buscar precedentes (sumulas, temas repetitivos, IRDR)
stats-docs Estatisticas de documentos de um processo
calc Calculadora de expressoes e prazos processuais
agora Data e hora atual
whoami Identidade do usuario autenticado

Exemplos

# Login
tecjustica login

# Listar processos
tecjustica listar-processos

# Visao geral de um processo
tecjustica visao-geral 1234567-89.2024.8.26.0100

# Buscar "dano moral" nos documentos
tecjustica grep-docs "dano moral" --processo 1234567-89.2024.8.26.0100

# Analisar processo com IA
tecjustica analisar 1234567-89.2024.8.26.0100 --pergunta "Qual a situacao atual?"

# Buscar precedentes
tecjustica precedentes "dano moral"

# Saida em JSON (para scripting)
tecjustica --json listar-processos

Configuracao

O token e configuracoes ficam em ~/.config/tecjustica/config.toml.

Para usar um servidor diferente:

tecjustica login --token tk_SUA_CHAVE --server https://seu-servidor.com/mcp

Links

Metadata

Release files for tecjustica 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tecjustica 0.1.6
File Size Uploaded
tecjustica-0.1.6.tar.gz 365.0 kB Details

Built distribution (wheel)

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

Total release size: 385.3 kB

Release files / tecjustica-0.1.6.tar.gz

Download URL tecjustica-0.1.6.tar.gz
Size 365.0 kB
Tags Source
SHA-256 checksum
How to use checksums
180b931b4c626cacac1446054725fc67ede9636eab89693582c6590f5019171f
BLAKE2b-256 checksum
How to use checksums
dc9a3ba1011325253d80b104fdc09dc2196da3ec5f607eb5829bb31a0c4944a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / tecjustica-0.1.6-py3-none-any.whl

Download URL tecjustica-0.1.6-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c11195b2450f7ea718f3d8a0d1604bf4d3e580bb4d8467e8ff831015f38cf8a
BLAKE2b-256 checksum
How to use checksums
525aedd071b59f65b4b6274234a0e3bf4fa95b5d37961050d3ee180de058d639
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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