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

@tellagen/mcp-server

v0.1.1

Published

Tellagen MCP server — investigate incidents with AI agents

Downloads

16

Readme

@tellagen/mcp-server

MCP server for Tellagen — investigate incidents with AI agents.

Works with any MCP-compatible client: Claude Code, Cursor, VS Code Copilot, Windsurf.

Quick start

1. Create an API key

In Tellagen, go to Settings > API Keys and create a key with both incidents:read and incidents:write scopes.

Important: incidents:write does NOT imply incidents:read. You need both scopes for full investigation capabilities.

2. Add to your MCP client config

Claude Code (~/.claude.json or project .mcp.json):

{
  "mcpServers": {
    "tellagen": {
      "command": "npx",
      "args": ["-y", "@tellagen/mcp-server"],
      "env": {
        "TELLAGEN_API_KEY": "tllg_...",
        "TELLAGEN_API_URL": "https://yourcompany.api.tellagen.com"
      }
    }
  }
}

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "tellagen": {
      "command": "npx",
      "args": ["-y", "@tellagen/mcp-server"],
      "env": {
        "TELLAGEN_API_KEY": "tllg_...",
        "TELLAGEN_API_URL": "https://yourcompany.api.tellagen.com"
      }
    }
  }
}

3. Investigate

Ask your AI agent: "Investigate incident #42 on Tellagen"

Tools

Read tools

| Tool | Description | |------|-------------| | tellagen_get_incident | Get incident details (severity, status, services, timestamps) | | tellagen_list_incidents | List all incidents, optionally filtered by status | | tellagen_get_incident_timeline | Get the timeline of events for an incident | | tellagen_list_investigation_runs | List investigation runs for an incident | | tellagen_list_findings | List findings for an incident, optionally filtered by run | | tellagen_get_finding | Get a single finding with full details |

Write tools

| Tool | Description | |------|-------------| | tellagen_start_investigation | Start a new investigation run on an incident | | tellagen_post_finding | Post a structured finding to an active investigation | | tellagen_complete_investigation | Mark an investigation as completed or failed | | tellagen_update_finding | Update a finding's status (dismiss or restore) | | tellagen_promote_finding | Promote a finding to the incident timeline |

Composing with other MCP servers

The Tellagen MCP server is designed to work alongside vendor MCP servers for observability and source control. Install whichever match your stack:

{
  "mcpServers": {
    "tellagen": {
      "command": "npx",
      "args": ["-y", "@tellagen/mcp-server"],
      "env": {
        "TELLAGEN_API_KEY": "tllg_...",
        "TELLAGEN_API_URL": "https://yourcompany.api.tellagen.com"
      }
    },
    "grafana": {
      "command": "uvx",
      "args": ["mcp-grafana"],
      "env": {
        "GRAFANA_URL": "https://yourcompany.grafana.net",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "glsa_..."
      }
    },
    "github": {
      "command": "npx",
      "args": ["@anthropic-ai/github-mcp-server"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_..."
      }
    }
  }
}

The agent uses Tellagen tools to manage the investigation lifecycle and vendor tools to gather evidence:

  1. Read the incident from Tellagen
  2. Query Grafana Loki for error logs, Prometheus for metrics
  3. Check GitHub for recent deploys and code changes
  4. Post findings back to Tellagen as they're discovered
  5. Complete the investigation run

Authentication

  • API key is passed via TELLAGEN_API_KEY environment variable (never in args)
  • The server validates the key on startup by calling /api/v1/auth/me
  • All requests include Authorization: Bearer tllg_... header
  • The MCP server acts as the API key's creating user

Scopes

The API key needs both scopes:

| Scope | Required for | |-------|-------------| | incidents:read | Reading incidents, timelines, investigation runs, findings | | incidents:write | Starting investigations, posting findings, promoting to timeline |

Development

Setup

npm install
npm run build
npm test

Running the dev server locally

  1. Build the project (or use watch mode):

    npm run build
    # or, to rebuild on every change:
    npm run dev
  2. Point your MCP client at the local build instead of the published npm package.

    Claude Code — add to ~/.claude.json (global) or .mcp.json (per-project):

    {
      "mcpServers": {
        "tellagen": {
          "command": "node",
          "args": ["/absolute/path/to/tellagen-mcp-server/dist/index.js"],
          "env": {
            "TELLAGEN_API_KEY": "tllg_...",
            "TELLAGEN_API_URL": "https://yourcompany.api.tellagen.com"
          }
        }
      }
    }

    Cursor — add to .cursor/mcp.json:

    {
      "mcpServers": {
        "tellagen": {
          "command": "node",
          "args": ["/absolute/path/to/tellagen-mcp-server/dist/index.js"],
          "env": {
            "TELLAGEN_API_KEY": "tllg_...",
            "TELLAGEN_API_URL": "https://yourcompany.api.tellagen.com"
          }
        }
      }
    }

    Replace /absolute/path/to/tellagen-mcp-server with the actual path to your clone.

  3. Restart the MCP client so it picks up the new config. In Claude Code, run /mcp to verify the server is connected.

  4. Iterate: if you're running npm run dev, every save recompiles. Restart the MCP connection (or restart your client) to pick up changes.

Running tests

npm test                              # all tests
npx vitest run test/client.test.ts    # single file
npx vitest                            # watch mode

Type-checking

npm run lint    # tsc --noEmit

Environment variables

| Variable | Required | Description | |----------|----------|-------------| | TELLAGEN_API_KEY | Yes | API key (format: tllg_...) | | TELLAGEN_API_URL | Yes | API base URL (e.g., https://yourcompany.api.tellagen.com) |