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

@surajnarwade/plugin-tech-insights-mcp-actions-backend

v0.1.0

Published

MCP actions for the Backstage tech-insights plugin. Exposes tech-insights checks, facts, and entity insights as MCP tools.

Downloads

74

Readme

tech-insights-mcp-actions-backend

Exposes Backstage Tech Insights as MCP (Model Context Protocol) actions, so AI assistants can query checks, facts, scorecards, and maturity ranks for your entities.

Prerequisites

Setup

1. Install the plugin

# From your Backstage root directory
yarn --cwd packages/backend add @surajnarwade/plugin-tech-insights-mcp-actions-backend

2. Register the plugin

Add to packages/backend/src/index.ts:

backend.add(import('@surajnarwade/plugin-tech-insights-mcp-actions-backend'));

3. Configure plugin sources

Since this is a separate plugin (not built into tech-insights-backend), you need to add it to the MCP actions plugin sources in app-config.yaml:

backend:
  actions:
    pluginSources:
      - 'catalog'
      - 'tech-insights-mcp-actions'

Note: If MCP actions were built into tech-insights-backend directly, this step wouldn't be needed. The separate plugin approach gives you flexibility to adopt it independently of the upstream tech-insights release cycle.

Actions

| Action | Description | |--------|-------------| | get-checks | List all configured tech-insights checks | | run-checks | Run checks for a specific entity | | get-entity-insights | Comprehensive entity report — applicable checks with results, skipped checks with reasons, and latest facts | | get-entity-scorecard | Concise compliance scorecard grouped by category with pass/fail percentages | | get-entity-maturity | Maturity rank (🪨 Stone → 🥉 Bronze → 🥈 Silver → 🥇 Gold) with per-category breakdown | | get-fact-schemas | List available fact schemas and their fields | | get-latest-facts | Get the latest collected facts for an entity | | get-facts-range | Get historical facts within a date range |

How it works

The plugin registers MCP actions that communicate with the tech-insights and catalog backends via service-to-service auth. Key features:

  • Client-side filter matching — Replicates the server-side JsonRulesEngineFactChecker filter logic to determine which checks apply to an entity. This enables get-entity-insights to explain why checks were skipped (e.g., "Requires spec.lifecycle to be 'production' but entity has 'deprecated'").

  • Maturity calculation — Implements the same ranking algorithm as @backstage-community/plugin-tech-insights-maturity. Each check has a rank level (Bronze=1, Silver=2, Gold=3). The entity starts at the highest possible rank and drops for each failing check at or below the current rank.

  • Documentation links — Failing checks include solution hints and links to relevant documentation when configured on the check.

Example usage

Ask your AI assistant:

  • "What's the maturity status of production-service-1?"
  • "Show me the scorecard for my-api"
  • "Why are checks being skipped for deprecated-service-1?"
  • "What facts are collected for my component?"

Adding new actions

Each action lives in its own file under src/actions/. To add a new action:

  1. Create src/actions/createMyNewAction.ts following the existing pattern
  2. Import and call it in src/actions/index.ts

License

MIT