🤖 项目1网络(调度服务器)
自述(西班牙语)->docsreadme_run_es.md
本文档描述了为开发的host agent的操作 项目1-使用现有协议(CC3067),它使用 法学硕士(克劳德) 通过某种方式解释自然语言指令并执行工具 本地MCP服务器 与官方协议兼容。
编制人: 布兰登·雷耶斯·莫拉莱斯22992
______________________________________________________________________
可用工具
本地MCP服务器(mcp_schedulizer.py)
主题: 任务管理和进度生成(Schedulizer)
主要功能:
- 添加具有持续时间、优先级和截止日期的任务
- 列出任务(
list_tasks) - 生成优化的时间表(
generate_schedule) - 将任务保存在本地
tasks_db.json
目标: 作为项目的核心,模拟一个根据你的任务组织你一周的助理。它可以扩展到优先考虑课程、工作、休息等。
______________________________________________________________________
远程MCP服务器(谷歌云运行)
主题: 补充教育服务和福祉
已实现的功能:
suggest_breaks:建议日程表中任务之间的休息时间daily_quote:返回当天的励志名言
目标: 扩展助手的功能,支持学生或员工的幸福感,通过动力和健康的停顿来提高生产力。作为云托管服务器的示例。
______________________________________________________________________
💬 对话示例
在线服务器
Google Cloud(FastAPI)上的远程服务器示例:
Can you suggest breaks if I study for 4 hours?Give me a motivational quoteAdd a task to study networks...Write to file notes.txt*建议_休息——番茄风格建议*
If I plan to study 3 hours, how many breaks should I take?I’ll work for 5 hours straight, can you suggest pauses?Can you give me a Pomodoro-style routine for 2.5 hours of study?Give me a list of breaks if I plan a 4-hour study sessionI want to organize my 6-hour workday with breaks every 45 minutesSuggest work and break blocks for a 3-hour session*daily_quote——励志名言*
Give me a motivational quote to start my dayDo you have a positive quote to inspire me today?I want an inspiring quote, pleaseMotivate me with a quote for studyingCan you give me a quote that helps me focus?如何验证远程服务器是否正在使用?
您应该在控制台中看到类似这样的内容:
🔗 Claude API used to interpret user instructions...
🔧 Executing 'suggest_breaks' with: {'hours': 4}
🌐 Using remote server on Google Cloud (endpoint /suggest_breaks)
📬 Response: { ... }或
🔧 Executing 'daily_quote' with: {}
🌐 Using remote server on Google Cloud (endpoint /daily_quote)______________________________________________________________________
本地服务器
任务输入示例(add_task):
Add a task to study for the networks final, 90 minutes, deadline 2025-09-30Add a task to study for the networks exam, 90 minutes, deadline 2025-09-30, high priority, category universityCreate a new task called “Read chapter 5 of artificial intelligence,” duration 60 minutes, deadline 2025-10-01, medium priority, category studyAdd a task to review algorithms, duration 45 minutes, deadline 2025-09-25, low priority, category universityAdd a task to write the networks lab report, 120 minutes, deadline 2025-10-02, category university, high priorityRegister a task to review cybersecurity for 30 minutes before September 28, category work, medium priority列出任务的示例(list_tasks):
Show me all my tasksWhat tasks do I have pending?I want to see my task list______________________________________________________________________
文件系统MCP服务器(STDIO)示例
*write_file--写入或创建文件*
Create a file called resumen.txt with the content: OSI model layers and their functionsWrite in a file called tareas.txt the following: study networks, program simulatorSave in notes/monday.txt: review Claude and remote server tasksCreate a folder 'reports' and inside save a file called info.txt with the content: MCP working correctlyWrite in workspace/week1.txt the following: Monday - study, Tuesday - rest, Wednesday - lab*read_file--读取现有文件*
Read the file resumen.txtShow me the content of tareas.txtOpen and read the file called info.txt in the reports folderI want to see what I wrote in week1.txtCan you read the file notes/monday.txt?如何知道是否正在使用文件系统服务器?
当您使用其中一个命令时,您的控制台应显示:
🔧 Executing 'read_file' with: {'path': 'workspace/resumen.txt'}
📁 Using filesystem STDIO server (Filesystem MCP)
📬 Response:
{
"output": {
"content": "OSI model layers and their functions"
}
}______________________________________________________________________
文件夹和文件结构
mcp-schedulizer-server-P1-Redes/
├── docs/ # General and technical documentation
│ ├── screenshots/ # Screenshots used in reports
│ │ ├── README_LLM_ES.md # Write-up about LLM integration
│ │ ├── README_LLM_ES copy.md # Duplicate/backup version
│ │ └── README.md # General screenshot instructions
│ ├── captura wireshark 1.png # Chatbot-server communication capture
│ ├── captura_wireshark_mcp_local.png
│ ├── captura_wireshark_server_remoto.png
│ ├── INFORME.docx # Formal project report (editable)
│ ├── INFORME.pdf # Report in PDF format
│ └── prueba2.pcap # Network capture file (Wireshark)
│
├── src/ # Main MCP server source code
│ ├── tools/ # Tool definitions
│ │ ├── add_task.tool.json
│ │ ├── definition.json
│ │ ├── generate_schedule.tool.json
│ │ ├── get_calendar.tool.json
│ │ ├── list_tasks.tool.json
│ │ └── remove_task.tool.json
│ ├── mcp_schedulizer.py # Local MCP server that organizes tasks
│ ├── cliente_chatbot_fs_rr.py # Client interacting with Claude and servers (FS + Remote)
│ └── mcp_log.txt # Execution log
│
├── workspace/ # Local workspace (simulated user storage)
│ ├── university/ # Example subfolder
│ └── agenda.txt # File generated with schedule
│
├── venv_mcp/ # Python virtual environment
│ └── ... (internal files) ...
│
├── .env # Local config environment variables
├── .gitignore # Git ignored files
├── env.example # `.env` template
├── mcp_log.txt # Duplicate log outside `src`
├── README_LLM_EN.md # English LLM integration guide
├── README_mcp_oficial_servers.md # Instructions to run official MCP servers (FS, Git, etc.)
├── README.md # Main project instructions
├── README(1).md # Duplicate/backup README
├── requirements.txt # Project dependencies______________________________________________________________________
✅ 先决条件
- Python 3.12+
- 图书馆:
anthropic,requests,flask - 有效的Anthropic API密钥
- MCP服务器正在运行
http://localhost:5000
pip install flask
pip install requests
pip install rich
pip install anthropic
pip install anthropic python-dotenv requests mcp
pip install flask anthropic python-dotenv requests mcp______________________________________________________________________
📌 备注
- 此代理 不使用菜单,它充当一个自然的会话法学硕士。
- Claude必须使用完全有效的JSON进行响应,因此为
json ...模型的响应。
