claude-mcp-scheduler
by tonybentley·★ 16·综合分 39
基于定时任务的调度器,使用 Claude API 和 MCP 服务器在计划 AI 任务中处理工具调用。
ai-llmproductivitydeveloper-tools
5
Forks
0
活跃 Issue
11 个月前
最近提交
2 天前
收录于
概述
该项目演示了如何将定时任务调度与 MCP 服务器集成,使 Claude AI 能够执行具有本地 MCP 工具访问权限的计划任务。它提供了使用文件系统 MCP 服务器的实际示例,同时支持其他 MCP 服务器的可扩展架构。调度器提供自动化任务执行、健壮的错误处理和适用于不同用例的灵活配置选项。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
你:按计划运行自动化 AI 报告
你:定期处理数据文件
你:将 AI 功能集成到 CI/CD 流程中
你:如何添加自定义 MCP 服务器?
你:这个调度器可以在无头服务器上运行吗?
什么时候选它
如果您需要在服务器或 CI/CD 管道中调度常规 AI 任务,并希望利用 MCP 服务器进行上下文感知的工具执行,请选择此工具。
什么时候不要选它
如果您需要交互式 AI 助手或实时对话,请避免使用此工具,因为它专为计划任务而非交互式会话设计。
此 server 暴露的工具
从 README 抽取出 1 个工具list_filesList files in a directory
说明:The README mentions using the filesystem MCP server but doesn't explicitly document the tool names. The 'list_files' tool is inferred from the example prompt 'List all files in the current directory' and the description of the filesystem se
可对比工具
mcp-cronclaude-desktopai-workflow-automationtaskcat
安装
安装
- 克隆仓库:
git clone https://github.com/tonybentley/claude-mcp-scheduler.git
cd claude-mcp-scheduler- 安装依赖:
npm install- 创建包含您的 Anthropic API 密钥的
.env文件:
ANTHROPIC_API_KEY=your-api-key-here- 复制示例配置:
cp config/config.example.json config/config.json要与 Claude Desktop 一起使用,将以下内容添加到您的 Claude Desktop 配置中:
{
"mcpServers": {
"claude-mcp-scheduler": {
"command": "node",
"args": ["path/to/claude-mcp-scheduler/dist/index.js"]
}
}
}FAQ
- 如何添加自定义 MCP 服务器?
- 编辑 config/config.json 文件,在 'mcp' 部分下添加新的 MCP 服务器配置。每个服务器需要命令、参数和可选配置。
- 这个调度器可以在无头服务器上运行吗?
- 是的,此调度器专为服务器环境设计,无需 GUI 即可运行。适合在虚拟机、容器或任何无头服务器上部署。
claude-mcp-scheduler 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。