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.3.tar.gz (364.2 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.3-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tecjustica-0.1.3.tar.gz
  • Upload date:
  • Size: 364.2 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.3.tar.gz
Algorithm Hash digest
SHA256 05a31c2bc6cd4b9047aea41fe69407cfbfd8dade490182fbb4b0ce881c479248
MD5 f7e4f20c5e435a0963b026f1439da21b
BLAKE2b-256 ee81b807790ddad608e089cf48729a892028b42ab997e7d20573c3a802d83284

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tecjustica-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 19.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ed025c0d5f73e9df8ffe043193544f9f10f00392670cba263517cf3306198255
MD5 eca778629f6ea3b02c90f1c31ac5b4cb
BLAKE2b-256 c383aeb26794a3ffb022b7967f64bcca079de0f6b3185722608585831dcc46af

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