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

mcp-hx-prompt-optimizer

v1.0.1

Published

基于模板优化API查询提示的MCP服务器,提供结构化的查询建议和代码生成

Readme

MCP HX Prompt Optimizer

基于模板优化API查询提示的MCP服务器,提供结构化的查询建议和代码生成。

功能特性

  • 🚀 基于模板的API查询提示优化
  • 📝 自动生成结构化需求文档
  • 🔧 支持自定义模板配置
  • 💡 智能代码生成建议
  • 🎯 专为Java API开发优化

安装

npm install -g mcp-hx-prompt-optimizer

MCP 配置

在您的 MCP 配置文件中添加以下配置:

使用 npm 全局安装

{
  "mcpServers": {
    "hx-prompt-optimizer": {
      "command": "mcp-hx-prompt-optimizer",
      "disabled": false,
      "autoApprove": ["hx-search", "hx-execute"]
    }
  }
}

使用 uvx (推荐)

{
  "mcpServers": {
    "hx-prompt-optimizer": {
      "command": "uvx",
      "args": ["mcp-hx-prompt-optimizer@latest"],
      "disabled": false,
      "autoApprove": ["hx-search", "hx-execute"]
    }
  }
}

工具说明

hx-search

基于模板优化API查询提示,提供结构化的查询建议。

参数:

  • prompt (string, 必填): 用户发送的完整提示词内容

hx-execute

基于生成的需求提示词,发起模型执行,返回结果。

参数:

使用流程

  1. 使用 hx-search 工具输入您的业务需求
  2. 系统会在您的项目中创建 .hx 文件夹结构
  3. 生成优化后的需求文档到 .hx/requirements.md
  4. 使用 hx-execute 工具执行代码生成

项目结构

运行后会在您的项目中创建以下结构:

your-project/
├── .hx/
│   ├── templates/
│   │   └── list-api-template.md
│   └── requirements.md

开发

# 克隆项目
git clone https://github.com/yourusername/mcp-hx-prompt-optimizer.git
cd mcp-hx-prompt-optimizer

# 安装依赖
npm install

# 开发模式
npm run dev

# 构建
npm run build:standalone

许可证

MIT License