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

generate-llm-mcp

v1.1.0

Published

MCP server for optimizing requirements text with AI

Readme

GenerateLLM MCP Server

一个用于代码生成和项目优化的 Model Context Protocol (MCP) 服务器。

功能特性

  • 🚀 代码生成: 智能分析需求并生成代码
  • 🔍 项目分析: 分析项目结构、依赖关系和代码质量
  • 项目优化: 提供性能和结构优化建议
  • 📝 类型安全: 完整的 TypeScript 类型定义
  • 🛡️ 错误处理: 完善的错误处理和日志记录

安装

npm install
npm run build

使用方法

启动服务器

npm start
# 或者
node dist/index.js

开发模式

npm run dev

测试工具

# 测试工具列表
npm run test

# 测试代码生成工具
npm run test:generate

# 测试项目分析工具
npm run test:analyze

可用工具

1. start_generation_process

开始代码生成流程

参数:

  • project_path (必需): 项目目录路径
  • user_request (可选): 用户的生成请求

示例:

{
  "name": "start_generation_process",
  "arguments": {
    "project_path": ".",
    "user_request": "生成登录页面"
  }
}

2. analyze_project

分析项目结构、依赖关系和代码质量

参数:

  • project_path (必需): 项目目录路径
  • analysis_type (可选): 分析类型 (structure | dependencies | code_quality | all)

示例:

{
  "name": "analyze_project",
  "arguments": {
    "project_path": ".",
    "analysis_type": "all"
  }
}

3. optimize_project

分析项目并提供优化建议

参数:

  • project_path (必需): 项目目录路径
  • optimization_type (可选): 优化类型 (performance | structure | dependencies | all)
  • auto_apply (可选): 是否自动应用优化建议

示例:

{
  "name": "optimize_project",
  "arguments": {
    "project_path": ".",
    "optimization_type": "performance",
    "auto_apply": false
  }
}

项目结构

src/
├── config/          # 配置文件
├── constants/       # 常量定义
├── tools/          # MCP 工具实现
├── types/          # TypeScript 类型定义
├── utils/          # 工具函数
└── index.ts        # 主入口文件

开发

代码格式化

npm run format

代码检查

npm run lint
npm run lint:fix

类型检查

npm run type-check

环境变量

  • DEBUG: 启用调试日志 (true | false)
  • LOG_LEVEL: 日志级别 (debug | info | warn | error)

许可证

MIT