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

@wucai/code-standard-mcp

v1.0.0

Published

AI编程规范检查MCP服务 - 为wucai code等AI编程工具提供代码规范知识库服务

Readme

Code Standard MCP

AI编程规范检查MCP服务 - 为wucai code等AI编程工具提供代码规范知识库服务

特性

  • 🚀 即装即用: 通过 npx 直接使用,无需预安装
  • 📚 知识库服务: 专注于提供代码规范文档,不做具体检查
  • 🔄 版本控制: 智能版本管理,避免重复传输
  • 📋 多语言支持: C#、Java、XML/POM 等规范文档
  • 高性能: 智能分片,避免超出上下文限制

快速使用

在 AI 编程工具中配置

{
    "mcpServers": {
        "code-standard-mcp": {
            "command": "npx",
            "args": ["-y", "@wucai/[email protected]"],
            "disabled": false,
            "autoApprove": []
        }
    }
}

支持的工具函数

get_coding_standards

获取指定编程语言的代码规范文档

// 参数
{
    "language": "csharp", // csharp, java, xml, python
    "version": "1.0.0"    // 可选,本地缓存版本号
}

// 返回
{
    "status": "success",
    "version": "2025.01.15-a1b2c3d4",
    "language": "csharp",
    "standards": {
        "csharp_standards": ["规范文档内容段落1", "段落2", ...]
    }
}

get_standards_by_files

根据文件列表自动识别语言并获取规范

// 参数
{
    "files": ["MyClass.cs", "pom.xml", "Service.java"],
    "version": "1.0.0"
}

// 返回
{
    "status": "success",
    "detected_languages": ["csharp", "xml", "java"],
    "standards": {
        "csharp": {...},
        "xml": {...},
        "java": {...}
    }
}

get_available_standards

获取所有可用的规范文档列表

get_service_info

获取服务信息和使用说明

版本管理

本服务支持智能版本管理:

  • 自动检测: 基于文档内容生成版本号
  • 增量更新: 只在版本变化时传输新内容
  • 版本比较: 自动比较客户端和服务端版本

支持的规范

  • C# 编码规范: 命名约定、代码结构、异常处理
  • Java 后端开发规范: Spring Boot、MyBatis、Kafka 等
  • Maven POM 规范: 依赖管理、插件配置
  • FTP 模板规范: 文件传输组件使用指南

在 wucai code 中使用

  1. 配置 MCP 服务器
  2. 调用 get_coding_standards 获取规范文档
  3. 基于规范文档进行代码审查
  4. 利用版本控制避免重复获取

开发

本地开发

npm install
npm start

测试

npm test

发布

npm publish

许可证

MIT License

贡献

欢迎提交 Issue 和 Pull Request 改进项目。