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

@tenantegroup/ai-rules-mcp

v1.2.0

Published

Unified MCP server providing AI coding rules for Cloudflare Backend, Nuxt Frontend, Flutter Client, and dotNET MAUI stacks with smart context filtering

Readme

🎯 Unified AI Rules MCP Server (@tenantegroup/ai-rules-mcp)

npm version License: MIT Node.js Version

Model Context Protocol (MCP) server providing structured, production-tested AI coding rules for Cloudflare Backend, Nuxt Frontend, Flutter Client, and .NET MAUI Client stacks.

By dynamically scanning your current task, files, and keywords, it selects only the rules relevant to your active session. This achieves a ~75% token footprint reduction and prevents conflicting instructions between frontend, mobile, and backend paradigms (e.g., stopping mobile SQLite rules from polluting a Cloudflare D1 worker context).


⚡ Key Features

  1. Smart Context Filtering: Dynamically evaluates stack requirements, stripping out dotNET rules during Flutter sessions and vice-versa.
  2. Interactive AI Scaffolder: Integrates the install_rules_to_project tool. Running this inside any repository auto-detects the tech stack and copies appropriate .ai/rules, static compilers, and pre-commit Git validators.
  3. Multi-Agent Support: Out-of-the-box support for all major modern AI development interfaces.
  4. Obsidian Vault Synced: The source of truth rules are maintained in a structured Obsidian vault/ folder right in the repository, making it easy to version-control documentation alongside the MCP code.

🛠️ Supported Stacks

  • Cloudflare Backend: Workers runtime edge parity, Drizzle ORM, D1 SQLite, Workflows (durable sagas), KV storage, R2 bucket storage, and Durable Objects.
  • Nuxt Frontend: Nuxt 4 directories, Pinia reactive state, layout routing, and client-side API integrations.
  • Flutter Client: Riverpod state management, GoRouter, Retrofit clients, and Drift SQLite databases.
  • dotNET Client: .NET MAUI UI shell, XAML layouts, MVVM pattern (CommunityToolkit), Refit HTTP clients, and sqlite-net.

🚀 Installation

Ensure you have Node.js (version 18 or higher) installed, then install the package globally:

npm install -g @tenantegroup/ai-rules-mcp

⚙️ Configuration for Coding Agents

1. Claude Desktop (macOS & Windows)

Add the server to your desktop client configuration:

  • Configuration File Location:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • JSON Configuration:
    {
      "mcpServers": {
        "ai-rules": {
          "command": "ai-rules-mcp"
        }
      }
    }
  • To Apply: Restart the Claude Desktop application.

2. Claude Code (CLI)

Claude Code supports direct command-line utility configurations.

  • Using the CLI (Recommended): Run the interactive setup wizard in your terminal:
    claude mcp add --transport stdio ai-rules ai-rules-mcp
  • Manual Setup: Open or create ~/.claude.json and add the configuration under the mcpServers block:
    {
      "mcpServers": {
        "ai-rules": {
          "command": "ai-rules-mcp",
          "args": []
        }
      }
    }
  • Verify Configuration: Check connection status by running claude mcp list.

3. GitHub Copilot (CLI & IDEs)

GitHub Copilot handles MCP integrations across CLI contexts and IDE extension layers.

  • Using the Copilot CLI: Run the helper tool to bind the server:
    copilot mcp add
    (Follow the interactive terminal wizard to select stdio type, name it ai-rules, and enter ai-rules-mcp as the command.)
  • Manual CLI Config Location: Saved in ~/.copilot/mcp-config.json.
  • VS Code / Visual Studio: Click the Configure Tools gear icon inside the Copilot Chat pane, navigate to the MCP config panel, and add a local command server pointing to ai-rules-mcp.
  • Repository-Level (GitHub.com): Go to your repository SettingsCopilot (under Code & Automation) ➔ MCP Servers to configure server hooks globally for your team's Copilot workspace.

4. Antigravity CLI (agy)

The Google Antigravity developer environment natively integrates local and remote MCP hosts.

  • Configuration File Location:
    • Global Settings: ~/.gemini/antigravity-cli/mcp_config.json
    • Workspace-local Settings: .agents/mcp_config.json (inside your project directory)
  • JSON Configuration:
    {
      "mcpServers": {
        "ai-rules": {
          "command": "ai-rules-mcp",
          "args": []
        }
      }
    }
  • TUI Management: Launch agy in your terminal and type /mcp to open the Interactive MCP Manager to check statuses and reload configurations.

5. Pi Coding Agent

Pi manages external toolsets via the pi-mcp-adapter.

  • Step 1: Install the Adapter:
    pi install npm:pi-mcp-adapter
  • Step 2: Configuration File Location:
    • Global: ~/.pi/agent/mcp.json
    • Project-local: .pi/mcp.json (overrides global preferences)
  • JSON Configuration:
    {
      "mcpServers": {
        "ai-rules": {
          "command": "ai-rules-mcp",
          "args": []
        }
      }
    }
  • Step 3: Verification: Open the Pi REPL and use /mcp setup to auto-detect and register the server, or type /mcp to list active tools.

📖 Available Tools

  • get_relevant_rules(task_description, file_types, keywords, include_all): Evaluates task context, filters irrelevant tech stacks, and returns matching standards.
  • get_rule_by_name(rule_name): Directly retrieves a specific rule (e.g., flutter/riverpod, cloudflare/workflows).
  • search_rule_content(query, case_sensitive): Performs a regex search inside the contents of all rule files.
  • list_all_rules(): Lists all rule titles grouped by target technology stack.
  • install_rules_to_project(target_dir, stack): Scaffolds the .ai/ settings folder, copies rule files, and drops git validator scripts into the specified project root directory.

📁 Obsidian Vault Structure

The rules served by this MCP server are maintained in the vault/ folder of this repository. This folder is structured to be opened directly as an Obsidian vault:

  • 00 - Core Standards/ — General software engineering and reviewer standards.
  • 01 - Cloudflare Backend Stack/ — Workers, Workflows, and D1 configuration standards.
  • 02 - Nuxt Frontend Stack/ — Nuxt 4 and Vue configurations.
  • 03 - Flutter Client Stack/ — Dart and Riverpod layouts.
  • 04 - dotNET Client Stack/ — C# and .NET MAUI layouts.
  • 99 - Master Index.md — The central map linking all manual entries.

📄 License

This project is licensed under the MIT License. See LICENSE (if present) or package.json for details.