Complete calendar/time awareness MCP server integration
Implements comprehensive calendar and scheduling system with: - Event scheduling with conflict detection and priority management - Milestone and anniversary tracking with automatic celebrations - Relationship maintenance monitoring and auto-scheduling - Historical event tracking and productivity analysis - Time awareness tools for character self-reflection Updates main application to initialize calendar server alongside other MCP systems. Updates documentation to reflect completed implementation.
This commit is contained in:
@@ -110,6 +110,50 @@ Characters can autonomously modify their own traits and behaviors through a secu
|
|||||||
- Rollback capabilities
|
- Rollback capabilities
|
||||||
- Comprehensive logging
|
- Comprehensive logging
|
||||||
|
|
||||||
|
### Calendar/Time Awareness MCP Integration
|
||||||
|
|
||||||
|
Characters can autonomously schedule activities, track important dates, and maintain relationships through a comprehensive calendar system:
|
||||||
|
|
||||||
|
#### Available Tools:
|
||||||
|
|
||||||
|
1. **`schedule_event`**
|
||||||
|
- Schedule personal activities and events
|
||||||
|
- Support for different event types (personal reflection, creative sessions, relationship maintenance)
|
||||||
|
- Automatic conflict detection and priority management
|
||||||
|
- Recurring event scheduling with follow-up automation
|
||||||
|
|
||||||
|
2. **`get_upcoming_events`**
|
||||||
|
- View scheduled activities and their status
|
||||||
|
- Filter by time period and completion status
|
||||||
|
- Priority and type-based organization
|
||||||
|
|
||||||
|
3. **`create_milestone`**
|
||||||
|
- Create important personal milestones and anniversaries
|
||||||
|
- Automatic anniversary scheduling (yearly/monthly)
|
||||||
|
- Importance-weighted celebration reminders
|
||||||
|
|
||||||
|
4. **`track_interaction`**
|
||||||
|
- Track interactions with other characters
|
||||||
|
- Automatic relationship maintenance scheduling
|
||||||
|
- Social health monitoring and alerts
|
||||||
|
|
||||||
|
5. **`get_time_since_event`**
|
||||||
|
- Query historical events and activities
|
||||||
|
- Time awareness for personal growth tracking
|
||||||
|
- Pattern recognition for behavioral analysis
|
||||||
|
|
||||||
|
6. **`get_historical_summary`**
|
||||||
|
- Comprehensive activity summaries over time periods
|
||||||
|
- Productivity scoring and trend analysis
|
||||||
|
- Milestone celebration tracking
|
||||||
|
|
||||||
|
#### Autonomous Features:
|
||||||
|
- **Relationship Maintenance**: Automatic scheduling when characters haven't interacted for too long
|
||||||
|
- **Personal Reflection**: Regular self-analysis sessions based on character growth needs
|
||||||
|
- **Creative Sessions**: Dedicated time for artistic and intellectual development
|
||||||
|
- **Anniversary Tracking**: Automatic celebration scheduling for important milestones
|
||||||
|
- **Productivity Monitoring**: Health metrics and recommendations for balanced growth
|
||||||
|
|
||||||
### File System MCP Integration
|
### File System MCP Integration
|
||||||
|
|
||||||
Each character gets their own digital space with organized directories:
|
Each character gets their own digital space with organized directories:
|
||||||
@@ -227,7 +271,6 @@ The collective system:
|
|||||||
## 🔮 Future Enhancements
|
## 🔮 Future Enhancements
|
||||||
|
|
||||||
### Planned Features:
|
### Planned Features:
|
||||||
- **Calendar/Time Awareness MCP** - Characters schedule activities and track important dates
|
|
||||||
- **Cross-Character Memory Sharing** - Selective memory sharing between trusted characters
|
- **Cross-Character Memory Sharing** - Selective memory sharing between trusted characters
|
||||||
- **Advanced Community Governance** - Democratic decision-making tools
|
- **Advanced Community Governance** - Democratic decision-making tools
|
||||||
- **Creative Collaboration Framework** - Structured tools for group creative projects
|
- **Creative Collaboration Framework** - Structured tools for group creative projects
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ from rag.vector_store import vector_store_manager
|
|||||||
from rag.community_knowledge import initialize_community_knowledge_rag
|
from rag.community_knowledge import initialize_community_knowledge_rag
|
||||||
from mcp.self_modification_server import mcp_server
|
from mcp.self_modification_server import mcp_server
|
||||||
from mcp.file_system_server import filesystem_server
|
from mcp.file_system_server import filesystem_server
|
||||||
|
from mcp.calendar_server import calendar_server
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
# Setup logging first
|
# Setup logging first
|
||||||
@@ -95,6 +96,11 @@ class FishbowlApplication:
|
|||||||
self.mcp_servers.append(filesystem_server)
|
self.mcp_servers.append(filesystem_server)
|
||||||
logger.info("File system MCP server initialized")
|
logger.info("File system MCP server initialized")
|
||||||
|
|
||||||
|
# Initialize calendar/time awareness server
|
||||||
|
await calendar_server.initialize(character_names)
|
||||||
|
self.mcp_servers.append(calendar_server)
|
||||||
|
logger.info("Calendar/time awareness MCP server initialized")
|
||||||
|
|
||||||
# Initialize conversation engine
|
# Initialize conversation engine
|
||||||
self.conversation_engine = ConversationEngine()
|
self.conversation_engine = ConversationEngine()
|
||||||
logger.info("Conversation engine created")
|
logger.info("Conversation engine created")
|
||||||
|
|||||||
1280
src/mcp/calendar_server.py
Normal file
1280
src/mcp/calendar_server.py
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user