Skip to main content

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

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

tecjustica-0.1.4.tar.gz (364.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tecjustica-0.1.4-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file tecjustica-0.1.4.tar.gz.

File metadata

  • Download URL: tecjustica-0.1.4.tar.gz
  • Upload date:
  • Size: 364.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for tecjustica-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cafd0f9049856fd3cd2f69f21bb65d63eff65b8d00f9500f5801e9fac08dfdf2
MD5 a50d9b08f5e8fa2cc7955334f889fa9a
BLAKE2b-256 ef87ad0f438d55f57f66762dce9fd9e1e4fc71c273bfd041a72626a9ff7837d0

See more details on using hashes here.

File details

Details for the file tecjustica-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: tecjustica-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for tecjustica-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 47913cac6fb9bd97ed9c169f65ac611dcde9ee37586e96d8830a88696639f30d
MD5 251b21416eff5747cce07a58c9e5c3ad
BLAKE2b-256 77179a558092ab8a828fd42e4a373d67dde385b55a6097fc4e51751cd7485595

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page