From 4d270efe44cfa97e97b5a804e229c4178e65cdc3 Mon Sep 17 00:00:00 2001 From: siage Date: Fri, 18 Apr 2025 12:46:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20package.json=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E8=87=B3=201.0.5=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E4=BB=A5=E5=BC=B7=E8=AA=BF=E9=87=9D=E5=B0=8D=20AI=20?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E7=9A=84=E4=BB=BB=E5=8B=99=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=96=B0=E5=A2=9E=20GitHub=20?= =?UTF-8?q?=E5=80=89=E5=BA=AB=E3=80=81=E5=95=8F=E9=A1=8C=E8=BF=BD=E8=B9=A4?= =?UTF-8?q?=E5=92=8C=E9=A6=96=E9=A0=81=E9=80=A3=E7=B5=90=E3=80=82=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=20README=20=E5=92=8C=E4=B8=AD=E6=96=87=E6=96=87?= =?UTF-8?q?=E6=AA=94=EF=BC=8C=E5=A2=9E=E5=8A=A0=E7=92=B0=E5=A2=83=E8=AE=8A?= =?UTF-8?q?=E6=95=B8=E9=85=8D=E7=BD=AE=E7=AF=84=E6=9C=AC=E4=BB=A5=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E7=94=A8=E6=88=B6=E8=87=AA=E5=AE=9A=E7=BE=A9=E4=BB=BB?= =?UTF-8?q?=E5=8B=99=E6=8F=90=E7=A4=BA=E8=A9=9E=E3=80=82=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=20GitHub=20Actions=20=E5=B7=A5=E4=BD=9C=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E4=BB=A5=E8=87=AA=E5=8B=95=E7=99=BC=E5=B8=83=E8=87=B3=20npm?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 31 +++++++++++++++++++++++++++++++ README.md | 30 ++++++++++++++++++++++++++++++ docs/zh/README.md | 28 ++++++++++++++++++++++++++++ package.json | 15 +++++++++++++-- 4 files changed, 102 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..151961d --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 }} diff --git a/README.md b/README.md index ca10b5a..f21a3ba 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docs/zh/README.md b/docs/zh/README.md index 4bc709b..3b3d3e1 100644 --- a/docs/zh/README.md +++ b/docs/zh/README.md @@ -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" // 必須使用絕對路徑 + } + } + } +} ``` ### ⚠️ 重要配置說明 diff --git a/package.json b/package.json index 9b2e3b2..7a0215c 100644 --- a/package.json +++ b/package.json @@ -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",