npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-whatsmeow

v1.0.0

Published

MCP Server para contexto da biblioteca WhatsMeow (Go) - tipos, funções, métodos, constantes, busca semântica e exploração de módulos.

Readme

MCP WhatsMeow Context

Servidor MCP (Model Context Protocol) para fornecer contexto completo da biblioteca WhatsMeow (Go/WhatsApp).

O repositório tulir/whatsmeow é baixado automaticamente na primeira execução.

Funcionalidades

Este servidor implementa extração e indexação de código Go para mapear símbolos exportados, incluindo:

  • Interfaces
  • Structs
  • Types
  • Functions
  • Methods
  • Constants
  • Variables

Também inclui busca semântica contextual, resumo por módulo, mapa de tópicos, estatísticas e ferramentas de atualização.

Ferramentas Disponíveis

Ferramentas Básicas

| Ferramenta | Descrição | |------------|-----------| | whatsmeow_estrutura | Lista a estrutura de arquivos do projeto | | whatsmeow_ler_arquivo | Lê conteúdo de arquivo específico | | whatsmeow_extrair_tipos | Extrai declarações exportadas | | whatsmeow_buscar_tipo | Busca definição por nome exato | | whatsmeow_buscar_fuzzy | Busca com correspondência aproximada | | whatsmeow_buscar_contexto | Busca semântica por tópico/domínio com ranking | | whatsmeow_listar_exports | Lista todos os exports agrupados | | whatsmeow_resumo_modulo | Resume um módulo com arquivos, categorias e símbolos-chave | | whatsmeow_topicos | Mapa de tópicos práticos (pairing, events, message, media, etc.) |

Ferramentas por Categoria

| Ferramenta | Descrição | |------------|-----------| | whatsmeow_categorias | Lista declarações de categoria específica | | whatsmeow_interfaces | Lista todas as interfaces | | whatsmeow_funcoes | Lista funções e métodos | | whatsmeow_constantes | Lista constantes e variáveis |

Ferramentas de Análise

| Ferramenta | Descrição | |------------|-----------| | whatsmeow_estatisticas | Estatísticas detalhadas da biblioteca | | whatsmeow_hierarquia | Mostra relacionamentos de tipo | | whatsmeow_dependencias | Analisa imports/exports entre módulos |

Ferramentas de Auto-Update

| Ferramenta | Descrição | |------------|-----------| | whatsmeow_check_updates | Verifica atualizações no GitHub | | whatsmeow_update | Atualiza o repositório local | | whatsmeow_status | Mostra status atual do repositório | | whatsmeow_self_update | Verifica/atualiza o pacote mcp-whatsmeow no npm |

Categorias Suportadas

interface
struct
type
function
method
const
variable

Instalação

Opção 1: Via npx (recomendado)

{
  "servers": {
    "whatsmeow-context": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "mcp-whatsmeow"]
    }
  }
}

Opção 2: Instalação global

npm install -g mcp-whatsmeow
{
  "servers": {
    "whatsmeow-context": {
      "type": "stdio",
      "command": "mcp-whatsmeow"
    }
  }
}

Variáveis de Ambiente

| Variável | Descrição | Default | |----------|-----------|---------| | WHATSMEOW_PATH | Caminho para o repositório WhatsMeow (raiz com go.mod) | Auto-download em ~/.mcp-whatsmeow/ | | AUTO_UPDATE_ENABLED | Habilita verificação automática de atualizações | true | | AUTO_UPDATE_INTERVAL | Intervalo de verificação em ms | 3600000 (1 hora) | | GITHUB_TOKEN | Token do GitHub para evitar rate limiting | - |

Exemplos de Uso

whatsmeow_extrair_tipos({ modulo: "types" })
whatsmeow_buscar_tipo({ nome: "Client" })
whatsmeow_buscar_fuzzy({ query: "send message" })
whatsmeow_buscar_contexto({ query: "qr pairing", limite: 10 })
whatsmeow_resumo_modulo({ modulo: "root", destaque: 15 })
whatsmeow_topicos({ topico: "newsletter" })

Desenvolvimento Local

npm install
npm run build
npm start