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 com API key
tecjustica auth login --token tk_SUA_CHAVE

# Verificar autenticacao
tecjustica whoami

Comandos

Comando Descricao
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
auth Gerenciar autenticacao

Exemplos

# Listar processos
tecjustica listar-processos

# Visao geral de um processo
tecjustica visao-geral 0000105-15.2017.8.06.0203

# Buscar "dano moral" nos documentos
tecjustica grep-docs "dano moral" --processo 0000105-15.2017.8.06.0203

# Analisar processo com IA
tecjustica analisar 0000105-15.2017.8.06.0203 --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 auth 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.2.tar.gz (364.0 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.2-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tecjustica-0.1.2.tar.gz
  • Upload date:
  • Size: 364.0 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.2.tar.gz
Algorithm Hash digest
SHA256 652acac93d6769d4c3fd0b4676026743a7b51104eb9b5517bfbe78cfd3afb6ae
MD5 a7c3939a28311f798b8de96b600c298d
BLAKE2b-256 6c554bc11cecde6f27959b3f4c13c40644a4f33b92931a9fe7be0bf4dadf8af9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tecjustica-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1f85d26ab5138845ae76419ddd39fc1412b0fea26258f6b39f9b475e83bb637e
MD5 2194ff4b9dc2ff3b454e917b2913c45e
BLAKE2b-256 7b57fda3ffe50ae1607ceda57de4ebd7c4b6085d24c970d14792014dcf88b30b

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