@vat-mcp/daily-report 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +55 -0
  2. package/package.json +3 -2
package/README.md ADDED
@@ -0,0 +1,55 @@
1
+ # @vat-mcp/daily-report
2
+
3
+ MCP Server for daily report system(日报 MCP 服务)。
4
+
5
+ ## 安装与配置
6
+
7
+ 在 VS Code 的 `mcp.json`(用户全局:`%APPDATA%\Code\User\mcp.json`,或工作区:`.vscode/mcp.json`)中添加以下配置:
8
+
9
+ ```json
10
+ {
11
+ "servers": {
12
+ "daily-report": {
13
+ "type": "stdio",
14
+ "command": "npx",
15
+ "args": ["-y", "@vat-mcp/daily-report"],
16
+ "env": {
17
+ "SMS_TOKEN": "${input:sms_token}",
18
+ "SMS_BASE_URL": "${input:sms_base_url}"
19
+ }
20
+ }
21
+ },
22
+ "inputs": [
23
+ {
24
+ "id": "sms_token",
25
+ "type": "promptString",
26
+ "description": "SMS Bearer Token(SMS_TOKEN)",
27
+ "password": true
28
+ },
29
+ {
30
+ "id": "sms_base_url",
31
+ "type": "promptString",
32
+ "description": "SMS API 地址(SMS_BASE_URL),例如 https://your-domain.com"
33
+ }
34
+ ]
35
+ }
36
+ ```
37
+
38
+ 配置完成后,VS Code 启动 MCP 服务时会弹出输入框,填入 Token 和 API 地址即可。
39
+
40
+ ## 环境变量
41
+
42
+ | 变量名 | 必填 | 说明 |
43
+ |---|---|---|
44
+ | `SMS_TOKEN` | 是 | Bearer 认证 Token |
45
+ | `SMS_BASE_URL` | 是 | API 服务器地址,如 `https://your-domain.com` |
46
+
47
+ ## 提供的工具
48
+
49
+ | 工具名 | 说明 |
50
+ |---|---|
51
+ | `get_missing_dates` | 查询未填写日报的日期列表 |
52
+ | `get_kintai_by_date` | 查询指定日期的考勤记录 |
53
+ | `get_tasks` | 查询任务列表 |
54
+ | `get_reports_by_kintai` | 根据考勤查询日报 |
55
+ | `submit_daily_report` | 提交日报 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vat-mcp/daily-report",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "MCP Server for daily report system",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -8,7 +8,8 @@
8
8
  "vat-mcp-daily-report": "dist/index.js"
9
9
  },
10
10
  "files": [
11
- "dist"
11
+ "dist",
12
+ "README.md"
12
13
  ],
13
14
  "keywords": [
14
15
  "mcp",