更新 package.json 版本至 1.0.5,修改描述以強調針對 AI 代理的任務管理功能,新增 GitHub 倉庫、問題追蹤和首頁連結。更新 README 和中文文檔,增加環境變數配置範本以支持用戶自定義任務提示詞。新增 GitHub Actions 工作流程以自動發布至 npm。

This commit is contained in:
siage 2025-04-18 12:46:06 +08:00
parent 4d31da761e
commit 4d270efe44
4 changed files with 102 additions and 2 deletions

31
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Publish to npm
on:
push:
tags:
- "v*" # 只有 push tag 才會觸發
jobs:
release:
runs-on: ubuntu-latest
environment: NPM
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org/"
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@ -98,6 +98,21 @@ Shrimp Task Manager offers two configuration methods: global configuration and p
"shrimp-task-manager": {
"command": "node",
"args": ["/mcp-shrimp-task-manager/dist/index.js"],
"env": {
"DATA_DIR": "/path/to/project/data" // 必須使用絕對路徑
}
}
}
}
or
{
"mcpServers": {
"shrimp-task-manager": {
"command": "npx",
"args": ["@siage/shrimp-task-manager"],
"env": {
"DATA_DIR": "/mcp-shrimp-task-manager/data"
}
@ -127,6 +142,21 @@ You can also set up dedicated configurations for each project to use independent
}
}
}
or
{
"mcpServers": {
"shrimp-task-manager": {
"command": "npx",
"args": ["@siage/shrimp-task-manager"],
"env": {
"DATA_DIR": "/path/to/project/data" // 必須使用絕對路徑
}
}
}
}
```
### ⚠️ Important Configuration Notes

View File

@ -104,6 +104,20 @@ npm run build
}
}
}
or
{
"mcpServers": {
"shrimp-task-manager": {
"command": "npx",
"args": ["@siage/shrimp-task-manager"],
"env": {
"DATA_DIR": "/mcp-shrimp-task-manager/data"
}
}
}
}
```
> ⚠️ 請將 `/mcp-shrimp-task-manager` 替換為您的實際路徑。
@ -127,6 +141,20 @@ npm run build
}
}
}
or
{
"mcpServers": {
"shrimp-task-manager": {
"command": "npx",
"args": ["@siage/shrimp-task-manager"],
"env": {
"DATA_DIR": "/path/to/project/data" // 必須使用絕對路徑
}
}
}
}
```
### ⚠️ 重要配置說明

View File

@ -1,9 +1,20 @@
{
"name": "mcp-shrimp-task-manager",
"version": "1.0.3",
"description": "基於MCP的任務管理系統提供任務規劃、拆分和管理功能",
"version": "1.0.5",
"description": "Shrimp Task Manager is a task tool built for AI Agents, emphasizing chain-of-thought, reflection, and style consistency. It converts natural language into structured dev tasks with dependency tracking and iterative refinement, enabling agent-like developer behavior in reasoning AI systems",
"main": "dist/index.js",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/cjo4m06/mcp-shrimp-task-manager"
},
"bugs": {
"url": "https://github.com/cjo4m06/mcp-shrimp-task-manager/issues"
},
"homepage": "https://cjo4m06.github.io/mcp-shrimp-task-manager",
"bin": {
"shrimp-task-manager": "./dist/index.js"
},
"scripts": {
"build": "tsc",
"dev": "ts-node src/index.ts",