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

mapeye-mcp-server

v1.0.0

Published

MapEye MCP Server — 地图样式资源自动化检验,支持 AI 调用

Readme

👁️ mapeye-mcp-server

MCP Server for MapAsset Validation — 让 AI 能够自动检测地图样式资源的完整性、一致性和异常值。

安装

方式一:npx 直接运行(发布后)

npx mapeye-mcp-server

方式二:从源码运行

git clone <repo>
cd mapeye-mcp-server
npm install
npm run build
node dist/index.js

配置

Kiro / VS Code

.kiro/settings/mcp.json.vscode/settings.json

{
  "mcpServers": {
    "mapeye": {
      "command": "npx",
      "args": ["mapeye-mcp-server"]
    }
  }
}

从源码配置

{
  "mcpServers": {
    "mapeye": {
      "command": "node",
      "args": ["/path/to/mapeye-mcp-server/dist/index.js"]
    }
  }
}

Tools(6 个)

1. validate_mapasset

一键全量检测,返回完整报告。

| 参数 | 类型 | 必填 | 说明 | |------|------|------|------| | folderPath | string | ✅ | MapAsset 文件夹绝对路径 |

返回:文件统计、错误/警告/提示数量、各检测模块详细结果。

2. scan_mapasset

扫描文件夹,返回分类统计。

| 参数 | 类型 | 必填 | 说明 | |------|------|------|------| | folderPath | string | ✅ | MapAsset 文件夹绝对路径 |

返回:各类文件(style/config/icon/material 等)的数量和文件名列表。

3. check_styleiconslist

检测 styleiconslist.data 完整性。

| 参数 | 类型 | 必填 | 说明 | |------|------|------|------| | folderPath | string | ✅ | MapAsset 文件夹绝对路径 |

返回:注册文件列表、磁盘缺失文件、未注册文件。

4. check_config_scenes

检测 config 场景配置。

| 参数 | 类型 | 必填 | 说明 | |------|------|------|------| | folderPath | string | ✅ | MapAsset 文件夹绝对路径 |

返回:每个 config 文件的场景数、缺失 style、重复场景。

5. check_image_dimensions

检测图片尺寸异常。

| 参数 | 类型 | 必填 | 说明 | |------|------|------|------| | folderPath | string | ✅ | MapAsset 文件夹绝对路径 |

返回:尺寸为 0 或超过 4096 的图片列表。

6. check_icon_references

检测已解密 JSON 中的 icon 引用是否存在。需配合 mapasset-mcp-server 的 convert_data_to_json 使用。

| 参数 | 类型 | 必填 | 说明 | |------|------|------|------| | folderPath | string | ✅ | MapAsset 文件夹绝对路径 | | jsonData | object | ✅ | 已解密的 style/material JSON | | sourceFile | string | ❌ | 来源文件名 |

返回:引用的 icon 总数、缺失的 icon 列表。

Resources(2 个)

| 资源 | URI | 说明 | |------|-----|------| | 检测项说明 | mapeye://docs/check-items | 全部检测项的详细说明 | | 文件类型说明 | mapeye://docs/file-types | MapAsset 各类文件的命名规则和用途 |

Prompts(2 个)

| Prompt | 说明 | |--------|------| | validate-workflow | 完整检测工作流指引,引导 AI 按步骤执行检测 | | fix-suggestions | 根据检测结果给出修复建议 |

与 mapasset-mcp-server 配合使用

MapEye 的文件存在性检测不依赖任何外部工具。但对于 .data 文件的内容级深度检测(icon 引用、关联性、异常值),需要先用 mapasset-mcp-server 解密:

AI 工作流:
1. mapeye: validate_mapasset → 获取基础检测报告
2. mapasset: convert_data_to_json → 解密 style/material 文件
3. mapeye: check_icon_references → 检测解密后的 icon 引用

发布到 npm

npm login
npm publish

发布后用户即可通过 npx mapeye-mcp-server 使用。