任务管理服务

一个基于Model Context Protocol (MCP)的小型服务器,用于管理简单的tasks.json文件,支持本地和HTTP模式运行。

  • by abyssbugg
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 abyssbugg/task-manager

使用说明

任务管理器(@abysburg/任务管理器)

一个小型模型上下文协议(MCP)服务器,管理一个简单的 tasks.json 文件。

快速开始

  • 与Bun一起跑步(推荐):
bunx @abyssbug/task-manager --tasks-file ~/Documents/tasks.json
  • 或者通过env设置路径(默认为 ~/Documents/tasks.json 如果省略):
TASK_MANAGER_FILE_PATH=/Users/you/Documents/tasks.json bunx @abyssbug/task-manager
  • 如果安装了Bun,则可以使用npx(二进制文件使用Bun-shebang):
npx -y @abyssbug/task-manager --tasks-file ~/Documents/tasks.json

MCP配置示例

适用于通用MCP客户端(~/.mcp/servers.json):

{
  "mcpServers": {
    "task-manager": {
      "command": "bunx",
      "args": ["@abyssbug/task-manager", "--tasks-file", "/Users/you/Documents/tasks.json"]
    }
  }
}

对于光标(~/.cursor/mcp.json):

{
  "task-manager": {
    "command": "bunx",
    "args": ["@abyssbug/task-manager", "--tasks-file", "/Users/you/Documents/tasks.json"],
    "working_directory": "/Users/you/Documents"
  }
}

HTTP模式(适用于Smithery或自定义主机)

  • 服务器可以在以下情况下通过HTTP运行 MCP_TRANSPORT=http.
  • 终点:
    • GET /health → { ok: true }
    • GET /tools → JSON工具列表
    • POST /call → Body: { "name": "tool_name", "arguments": { ... } }

使用Bun以HTTP模式在本地运行:

MCP_TRANSPORT=http PORT=3000 bun run dev
# then in another terminal
curl http://localhost:3000/health
curl http://localhost:3000/tools
curl -X POST http://localhost:3000/call -H 'content-type: application/json' -d '{"name":"list_requests","arguments":{}}'