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

worsoft-daily-mcp

v0.1.0

Published

MCP stdio server for Worsoft daily and monthly reports.

Readme

Worsoft Daily MCP

这个 MCP 用来让模型通过 Worsoft 后端接口读取日报、获取日报详情、收集月报总结素材,并提交日报或月报。

已对齐的现有接口

  • 登录:POST /auth/oauth/token
  • 当前用户:GET /admin/user/info
  • 日报查询:GET /hr/HrReportDaily/page
  • 日报详情:GET /hr/HrReportDaily/{id}
  • 新增日报/月报:POST /hr/HrReportDaily
  • 修改日报/月报:PUT /hr/HrReportDaily
  • 当前时间段任务:GET /hr/HrReportDaily/getTaskByExecuteUserId

前端开发代理里的 /api 已被折叠进 WORSOFT_BASE_URL,默认值是 https://saas.link-work.com.cn/api

配置

推荐在 MCP 客户端配置环境变量,不要把账号密码写进仓库。

{
  "mcpServers": {
    "worsoft-daily": {
      "command": "node",
      "args": ["E:\\project\\worsoft-daily-mcp\\src\\server.js"],
      "env": {
        "WORSOFT_BASE_URL": "https://saas.link-work.com.cn/api",
        "WORSOFT_USERNAME": "你的用户名",
        "WORSOFT_PASSWORD": "你的密码",
        "WORSOFT_PLATFORM": "pc_saas",
        "WORSOFT_VERSION": "LT",
        "WORSOFT_BASIC_AUTH": "Basic cGlnOnBpZw=="
      }
    }
  }
}

也可以复制 .env.example.env 后在本目录运行,但不要提交 .env

工具

  • worsoft_login:登录并缓存 token。
  • worsoft_get_user_info:获取当前登录用户。
  • worsoft_query_reports:按类型、时间和范围查询汇报。
  • worsoft_get_report:获取单条完整汇报详情。注意后端会把当前用户标记为已读。
  • worsoft_get_report_tasks:获取指定时间段内当前用户相关任务。
  • worsoft_month_summary_source:读取某个月的日报详情,供模型生成月报总结。
  • worsoft_submit_report:新增或修改日报、周报、月报。建议先传 dryRun: true 检查 payload。

查询语义

scope 会映射到后端的 sign

  • related -> 0,我提交或我收到
  • submitted -> 1,我提交的
  • received -> 2,我收到的

reportType 会映射到后端的 reportingType

  • daily -> 0
  • weekly -> 1
  • monthly -> 2
  • all -> 不过滤类型

日期过滤会按前端页面同款逻辑转换成:

  • startTime >= startDate
  • endTime <= endDate

月报流程建议

  1. worsoft_month_summary_source,例如 { "month": "2026-06", "scope": "submitted" }
  2. 模型根据返回的日报详情生成月报正文和下月计划。
  3. worsoft_submit_reportreportTypemonthlystartDate 传当月 1 日,endDate 传当月最后一天。
  4. 首次提交先用 dryRun: true,确认后再真实提交。

本地检查

cd E:\project\worsoft-daily-mcp
npm run check