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

kiro-mcp-telemetry-wrapper

v1.0.0

Published

Telemetry wrapper for any MCP server

Downloads

136

Readme

MCP Telemetry Wrapper

Proxy transparente que intercepta tool calls entre o Kiro IDE e qualquer MCP Server, registrando metadados de telemetria (timestamp, toolName, duração, erros) sem alterar o comportamento do MCP original.

Kiro IDE  →  mcp-telemetry-wrapper  →  MCP Original
                    ↓
              events.jsonl (local)
              ou endpoint HTTP (produção)

Funciona com qualquer MCP do ecossistema: npm (npx), Python (uvx), local.

Instalação

npm install
npm run build
npm link

Build

npm run build

Gera dist/index.js com shebang — executável como mcp-telemetry-wrapper após npm link.

Uso

No mcp.json, substitua o command do MCP original por mcp-telemetry-wrapper e passe o pacote via --mcp:

"filesystem": {
  "command": "mcp-telemetry-wrapper",
  "args": [
    "--mcp", "@modelcontextprotocol/server-filesystem",
    "--mcp-args", "/Users/leandrorocha",
    "--name", "filesystem",
    "--dest", "file",
    "--file", "/Users/leandrorocha/mcp-telemetry/events.jsonl"
  ],
  "disabled": false
}

O campo autoApprove e demais configurações do MCP original são preservados sem interferência.

Exemplos de mcp.json

Antes (sem wrapper)

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/leandrorocha"]
    },
    "memory": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-memory"]
    },
    "fetch": {
      "command": "uvx",
      "args": ["mcp-server-fetch"]
    },
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    }
  }
}

Depois (com wrapper)

{
  "mcpServers": {
    "filesystem": {
      "command": "mcp-telemetry-wrapper",
      "args": [
        "--mcp", "@modelcontextprotocol/server-filesystem",
        "--mcp-args", "/Users/leandrorocha",
        "--name", "filesystem"
      ]
    },
    "memory": {
      "command": "mcp-telemetry-wrapper",
      "args": [
        "--mcp", "@modelcontextprotocol/server-memory",
        "--name", "memory"
      ]
    },
    "fetch": {
      "command": "mcp-telemetry-wrapper",
      "args": [
        "--mcp", "uvx:mcp-server-fetch",
        "--name", "fetch"
      ]
    },
    "context7": {
      "command": "mcp-telemetry-wrapper",
      "args": [
        "--mcp", "@upstash/context7-mcp",
        "--name", "context7"
      ]
    }
  }
}

O prefixo uvx: instrui o wrapper a usar uvx em vez de npx.

Opções CLI

| Opção | Tipo | Obrigatório | Padrão | Descrição | |-------|------|:-----------:|--------|-----------| | --mcp | string | ✅ | — | Pacote MCP a ser envolvido. Prefixo uvx: para MCPs Python | | --mcp-args | string | — | — | Argumentos adicionais para o MCP (separados por espaço) | | --name | string | — | nome do pacote | Nome amigável para identificação nos logs de telemetria | | --dest | string | — | file | Destino da telemetria: file ou http | | --file | string | — | ~/mcp-telemetry/events.jsonl | Caminho do arquivo JSONL (quando --dest file) | | --endpoint | string | — | — | URL do endpoint HTTP (quando --dest http) | | --include-args | boolean | — | true | Incluir argumentos da tool call nos eventos de telemetria |

Validação

Após configurar o wrapper no mcp.json e usar o Kiro normalmente:

# Acompanhar eventos em tempo real
tail -f ~/mcp-telemetry/events.jsonl

# Contar total de eventos registrados
wc -l ~/mcp-telemetry/events.jsonl

Exemplo de evento registrado:

{"timestamp":"2026-04-13T10:00:01.123Z","toolName":"read_file","mcpName":"filesystem","arguments":{"path":"/Users/leandrorocha/projeto/index.ts"},"responseCode":200,"durationMs":8}

Testes

npm test

Executa testes unitários e property-based tests (fast-check) via vitest.