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

@yinyoudexing/geoc-collect-node-api-mcp

v0.1.0

Published

MCP server for geoc-collect-node API tools

Readme

geoc-collect-node API MCP

这是 geoc-collect-node 项目的 MCP 服务,按 npm 包方式发布和接入。

工具来源

工具定义从仓库根目录的 docs/apifox-openapi.json 生成。生成规则:

  • 暴露普通 JSON API 为 MCP tools。
  • 跳过 MVT、文件流、导出下载等二进制接口。
  • 跳过 deleteremoveabortresetclear 等删除或清理类接口,避免 Agent 误操作真实数据。
  • 跳过 multipart/form-data 文件上传接口;文件上传更适合由业务系统或专门上传工具处理。

新增、更新、同步、执行类接口会保留,但 readOnlyHintfalse。调用这些工具前应确认参数和影响范围。

环境变量

  • GEOC_COLLECT_API_BASE_URL:接口服务基础地址,默认 http://localhost:6001
  • GEOC_COLLECT_API_TOKEN:鉴权 token。服务会自动补 Bearer
  • GEOC_COLLECT_API_AUTHORIZATION:完整 Authorization 值;当已包含 Bearer 时会原样使用。
  • GEOC_COLLECT_API_AK:可选 AK 请求头。

本地运行

npm install
npm run generate:tools
npm run build
GEOC_COLLECT_API_BASE_URL=http://localhost:6001 npm start

真实接口调用通常需要在 MCP 客户端配置或启动环境中设置 GEOC_COLLECT_API_TOKEN

发布为 npm 包

发布前确认 package.json 中的版本号,并确认当前 npm 账号有发布当前 scope 的权限。

cd mcp/geoc-collect-node-api
npm whoami
npm test
npm run build
npm pack --dry-run
npm publish --access public

当前包名是 @yinyoudexing/geoc-collect-node-api-mcp。如果公司使用内网 registry,不要把 registry 写死到包里,优先在本机或 CI 的 .npmrc 中配置。

Codex MCP 配置

包发布后,使用 npx 启动,不依赖本机绝对路径:

[mcp_servers.geoc-collect-node-api]
command = "npx"
args = ["-y", "@yinyoudexing/[email protected]"]

[mcp_servers.geoc-collect-node-api.env]
GEOC_COLLECT_API_BASE_URL = "http://localhost:6001"
GEOC_COLLECT_API_TOKEN = "your-token"

不要在包代码、README、测试或提交中写入真实 token。