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

@manuelcattelan/cue

v2.0.1

Published

MCP server designed to front-load prompt engineering for agentic workflows.

Readme

cue

MCP server designed to front-load prompt engineering for agentic workflows.

Installation

npm install -g @manuelcattelan/cue
# or
pnpm add -g @manuelcattelan/cue
# or
yarn global add @manuelcattelan/cue

Configuration

Example JSON configuration:

[!NOTE] The env field is only required if your client does not support MCP sampling as cue will fallback to using Anthropic models (specifically, claude-opus-4-5) in order to perform its task. You can generate a valid API key here.

{
  "mcpServers": {
    "cue": {
      "command": "cue",
      "env": {
        "ANTHROPIC_API_KEY": "<your-anthropic-api-key>"
      }
    }
  }
}

[!IMPORTANT]
Configuration may vary depending on the client, but any client that supports the MCP protocol should work. Refer to the documentation of your preferred client for more information.

Usage

cue exposes a single MCP tool called draft_prompt.

draft_prompt

This tool takes a task description and transforms it into a well-structured, optimized prompt by applying prompt engineering best practices. It supports iterative refinement through follow-up questions and it makes sure the relevant context from the current session is included in the payload to the server.

[!NOTE] Since draft_prompt is exposed as a tool, there is no way to manually invoke it. The client LLM decides when to invoke it based on the tool description and other factors. If the client doesn't invoke it automatically, phrases like "Help me craft a prompt for..." or "Improve this prompt" will help trigger it more reliably.

Input parameters

| Parameter | Required | Description | | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | task | Yes | What the end user wants to accomplish: their goal or objective. It could be a rough idea or a detailed description. | | context | Yes | Any additional information that would help produce a more effective and accurate prompt, including but not limited to codebase files and their content, user-provided details other than the task description itself, MCP resources. | | answers | No | User-provided answers to follow-up questions from the previous tool iteration. It should be omitted on first invocation since the tool hasn't generated any questions at that point. |

Usage tips

  • Use a dedicated session for prompt crafting: the iterative back-and-forth with cue may add unwanted noise to the conversation context and increase the context size itself. By crafting prompts in a separate session, you keep your main working conversation clean and focused.

  • Copy only the final prompt: once you're satisfied with the generated prompt, copy it to a fresh session where the LLM can execute the task. This avoids polluting the working context with the prompt refinement history and ensures the LLM is focused on executing the required task.