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

@awarecorp/mcp-logger

v0.1.2

Published

Generic MCP-to-OTLP forwarder. Wraps any MCP server and emits OTel traces to OTEL_EXPORTER_OTLP_ENDPOINT.

Downloads

520

Readme

@awarecorp/mcp-logger

Generic MCP-to-OTLP forwarder — wrap any MCP server, intercept JSON-RPC messages, and emit OpenTelemetry traces to your collector of choice.

npm version License: MIT

Aware Corp


Install

# Stable (legacy 0.0.x — backend-direct, requires Pinta API key)
npm install -g @awarecorp/mcp-logger

# v0.1.x (generic OTLP forwarder — manager-relay or self-hosted collector)
npm install -g @awarecorp/mcp-logger@dev

The latest dist-tag still points at 0.0.14 to protect existing users — they keep working without any change. The dev tag tracks the generic forwarder (currently 0.1.1-dev.0). See CHANGELOG for breaking changes.

Usage

With Pinta Manager (recommended for Pinta users)

Pinta Manager v0.2+ auto-installs this adaptor from the dev tag via its catalog and wraps your MCP servers — for Claude Desktop, Cursor, and Claude Code — injecting the OTel env vars. No manual configuration. The manager forwards traces to the Pinta backend with proper authentication and identity attribution.

When Manager wraps a server, any legacy PINTA_API_KEY/PINTA_MEMBER_*/PINTA_TOKEN env vars on the wrapped command are stripped and replaced with OTEL_EXPORTER_OTLP_ENDPOINT/OTEL_EXPORTER_OTLP_HEADERS. Existing users who upgrade to Manager v0.2+ are migrated automatically on the next reconcile.

With your own OTel collector

OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 \
mcp-logger -- npx -y @modelcontextprotocol/server-slack

With a vendor (Datadog, Honeycomb, etc.)

OTEL_EXPORTER_OTLP_ENDPOINT=https://trace.agent.datadoghq.com/api/v0.2/traces \
OTEL_EXPORTER_OTLP_HEADERS='DD-API-KEY=xxx' \
mcp-logger -- npx -y your-mcp-server

What's emitted

OTLP HTTP+JSON traces with:

  • service.name — extracted from the wrapped command (e.g. @modelcontextprotocol/server-slack)
  • service.version — extracted or resolved via npm view
  • mcp.* attributes — full Bronze-flat encoding of every JSON-RPC message (see @pinta-ai/types for the schema)

Identity attribution (member.identity.*) is not added by this adaptor — it is the relay/collector's responsibility (Pinta Manager attaches on forward; OSS users attach via their own pipeline).

Configuration

All configuration via OTel SDK standard env vars.

| Env | Purpose | Default | |---|---|---| | OTEL_EXPORTER_OTLP_ENDPOINT | Where to send traces | http://localhost:4318 | | OTEL_EXPORTER_OTLP_HEADERS | Auth headers (key1=val1,key2=val2) | none | | PINTA_DEBUG | mcp-logger debug logs to stderr | off | | PINTA_RAW_DEBUG | verbose logs (raw OTLP, MCP messages) | off |

See the OpenTelemetry SDK docs for the full env spec.

Development

npm install
npm test                    # unit (vitest)
npm run build               # rollup → dist/
cd e2e && bash run.sh       # mock OTLP server + integration

License

MIT