CLI para consulta de processos judiciais via MCP - TecJustica
Project description
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 installglobal e bloqueado por PEP 668. Usepipxou 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tecjustica-0.1.6.tar.gz.
File metadata
- Download URL: tecjustica-0.1.6.tar.gz
- Upload date:
- Size: 365.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
180b931b4c626cacac1446054725fc67ede9636eab89693582c6590f5019171f
|
|
| MD5 |
48b77288558423c12b98da5eebdd8650
|
|
| BLAKE2b-256 |
dc9a3ba1011325253d80b104fdc09dc2196da3ec5f607eb5829bb31a0c4944a0
|
File details
Details for the file tecjustica-0.1.6-py3-none-any.whl.
File metadata
- Download URL: tecjustica-0.1.6-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c11195b2450f7ea718f3d8a0d1604bf4d3e580bb4d8467e8ff831015f38cf8a
|
|
| MD5 |
c1ea88b08ee2f8ca144455c842c8f358
|
|
| BLAKE2b-256 |
525aedd071b59f65b4b6274234a0e3bf4fa95b5d37961050d3ee180de058d639
|