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

@gurveenbagga/moqui-graphql-dsl-mcp

v1.0.1

Published

Internal MCP server for Moqui GraphQL DSL generation and validation

Downloads

251

Readme

Moqui GraphQL DSL MCP Server

[!TIP] Production Status: This MCP server is published on the global npm registry under the package @gurveenbagga/moqui-graphql-dsl-mcp. You can run it instantly using npx without checking out the source code!

Internal MCP (Model Context Protocol) server for planning, generating, applying, and validating Moqui GraphQL DSL snippets for Shopify Admin GraphQL use cases.

This server bridges your AI tools (e.g. Claude Desktop, Cursor, IntelliJ, VS Code) with your local moqui-framework repository, enabling automated, robust, policy-compliant Shopify API connector development.


🚀 Quick Start (IDE Integration)

To integrate this server directly into your Claude Desktop, Cursor, IntelliJ, or VS Code settings, add it to your configuration file (e.g., claude_desktop_config.json):

{
  "mcpServers": {
    "moqui-graphql-dsl-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@gurveenbagga/moqui-graphql-dsl-mcp"
      ],
      "env": {
        "MOQUI_REPO_PATH": "/Users/gurveenkaur/Documents/Work/git/oms/moqui-framework"
      }
    }
  }
}

Make sure to replace the MOQUI_REPO_PATH environment variable with your local path to your moqui-framework repository.


Features & Tools

📋 1. Planning & Service Generation

  • plan_graphql_dsl_change: Translates your natural language intent into a structural plan, identifying the operation type (queries/mutations) and mapping any required policy safeguards.
  • generate_graphql_dsl_service_code: Generates a standard Moqui <service> XML block with a fully operational GraphQL DSL script calling GraphqlFacade.
  • apply_graphql_dsl_service_change: Writes the generated Moqui service cleanly to disk (supporting creation and seamless updates). Features a soft-gate validation warning system to guide external AI clients (like Codex) through validation checks.

🧪 2. Test-Driven Development (TDD)

  • generate_graphql_dsl_test_code: Automatically generates Groovy Spock test blocks mocking standard contexts (ec.service.sync) and matching inputs/outputs.
  • apply_graphql_dsl_test_change: injects the Spock test block directly inside the target Groovy test file.

🛡️ 3. Safeguards & Validation

  • validate_graphql_dsl: Evaluates custom Moqui-Shopify standards, checking for:
    • Proper naming conventions (Dsl noun suffixes).
    • Safe pagination limits (both literal bounds and variables).
    • Missing pagination parameters like pageInfo on connections.
    • Correct mutation schemas and required userErrors/id parameters.

Local Developer Setup

If you wish to clone this repository and modify the source code locally, follow these steps:

Prerequisites

  • Node.js: v20 or higher
  • Package Manager: npm

1. Install Dependencies

npm install

2. Build the Server

Compiles the TypeScript codebase inside src/ to standard ES Modules JavaScript in the dist/ directory.

npm run build

3. Run Tests

Ensure all unit and smoke tests are passing:

npm run test

4. Start the MCP Server in Developer Mode

Run the server locally with live TypeScript compilation and hot-reloading:

npm run dev

5. Local IDE Configuration

If running your local compiled build instead of the global npm release, point your configuration to the local dist/server.js file:

{
  "mcpServers": {
    "moqui-graphql-dsl-mcp": {
      "command": "node",
      "args": [
        "/Users/gurveenkaur/Documents/Work/git/moqui-graphql-dsl-mcp/dist/server.js"
      ],
      "env": {
        "MOQUI_REPO_PATH": "/Users/gurveenkaur/Documents/Work/git/oms/moqui-framework"
      }
    }
  }
}