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

unitrail-mcp-server

v1.2.0

Published

MCP server for Uniware Unitrail (Grafana/Loki) log queries with auto-datasource detection

Downloads

158

Readme

Unitrail MCP

Simple MCP for querying production logs from Unitrail (Grafana + Loki).

2 tools: unitrail_status · unitrail_query_logs

Team setup (3 steps per developer)

1. Clone and build (one time)

git clone <internal-repo-url>/Unitrail_MCP.git ~/unicommerceRepo/Unitrail_MCP
cd ~/unicommerceRepo/Unitrail_MCP
npm install && npm run build

Or after npm publish: npx -y [email protected] (no clone needed).

2. Add credentials to ~/.cursor/mcp.env

UNITRAIL_USERNAME=your.ldap.user
UNITRAIL_PASSWORD=your_unitrail_password

Uses the same login as the Unitrail web UI. No cookie copying, no DevOps API token.

3. Open Uniware in Cursor

Uniware/.cursor/mcp.json already includes the unitrail server. Restart Cursor → MCP → enable unitrail.

Loki datasources

| Deployment | MCP datasource | Log file | |------------|------------------|----------| | Dedicated (Urbanclap, …) | dedicated | {tenantcode}.log | | ECloud shared | eclouds | {tenantcode}.log on ecloudN-* | | Cloud shared | clouds | {tenantcode}.log |

Example chat prompts

  • Urbanclap logs last 30 mindatasource: dedicated, tenant: urbanclap, hours: 0.5
  • Mosaicwellness on ecloud1 last hourdatasource: eclouds, tenant: mosaicwellnesspvtlmt, pod_name: ecloud1-uniware-api-0

Example tool params

{
  "datasource": "dedicated",
  "tenant": "urbanclap",
  "hours": 0.5,
  "limit": 100
}
{
  "datasource": "eclouds",
  "tenant": "mosaicwellnesspvtlmt",
  "pod_name": "ecloud1-uniware-api-0",
  "search": "ERROR",
  "hours": 1
}

Rollout options for platform team

| Option | Pros | |--------|------| | A. Project mcp.json (current) | Zero config beyond mcp.env; commit Uniware/.cursor/mcp.json | | B. npm package | npx -y unitrail-mcp-server — no fixed clone path | | C. Cursor Team MCP | Admin enables once for whole org |

Environment variables

| Variable | Required | Description | |----------|----------|-------------| | UNITRAIL_USERNAME | Yes* | Unitrail LDAP username | | UNITRAIL_PASSWORD | Yes* | Unitrail LDAP password | | UNITRAIL_URL | No | Default https://unitrail.unicommerce.co.in | | UNITRAIL_LOKI_DATASOURCE | No | Default eclouds |

*Or UNITRAIL_API_TOKEN / UNITRAIL_SESSION_COOKIE instead.