Skip to content

Conversation

@virginprogrammer
Copy link
Owner

This commit implements comprehensive Microsoft Teams integration via Model Context Protocol:

New Modules:

  • Teams MCP Module with complete message and recording retrieval
    • McpTeamsService: Core service for Teams operations via MCP
    • TeamsRecordingProcessor: Background meeting recording processing
    • McpTeamsController: REST API endpoints for Teams MCP operations

Key Features:

  • Team and channel listing using MCP tools
  • Channel message retrieval with pagination
  • Message reply support
  • Team member and user information retrieval
  • Online meeting discovery
  • Meeting recording retrieval and processing
  • Automated recording transcription workflow
  • Integration with existing NLP processing pipeline
  • Bulk sync capabilities for historical data

API Endpoints:

  • GET /teams-mcp/status - Check MCP availability
  • GET /teams-mcp/teams - List all teams
  • GET /teams-mcp/teams/:id/channels - List team channels
  • GET /teams-mcp/teams/:id/members - Get team members
  • GET /teams-mcp/messages - Get channel messages
  • POST /teams-mcp/sync - Sync channel to database
  • GET /teams-mcp/users/:id - Get user info
  • GET /teams-mcp/meetings - Get online meetings
  • GET /teams-mcp/recordings - Get meeting recordings
  • POST /teams-mcp/recordings/process - Process recording
  • POST /teams-mcp/recordings/sync - Bulk recording sync

Technical Details:

  • Proper error handling and retry logic
  • Integration with Bull queues for async processing
  • Uses existing TranscriptionService for Azure Speech integration
  • Automatic NLP processing after message/recording storage
  • TypeScript interfaces for all Teams entities
  • DTOs with validation for API endpoints
  • Parser methods for Graph API response normalization

All code compiles successfully and follows existing patterns.

This commit implements comprehensive Microsoft Teams integration via Model Context Protocol:

**New Modules:**
- Teams MCP Module with complete message and recording retrieval
  - McpTeamsService: Core service for Teams operations via MCP
  - TeamsRecordingProcessor: Background meeting recording processing
  - McpTeamsController: REST API endpoints for Teams MCP operations

**Key Features:**
- Team and channel listing using MCP tools
- Channel message retrieval with pagination
- Message reply support
- Team member and user information retrieval
- Online meeting discovery
- Meeting recording retrieval and processing
- Automated recording transcription workflow
- Integration with existing NLP processing pipeline
- Bulk sync capabilities for historical data

**API Endpoints:**
- GET /teams-mcp/status - Check MCP availability
- GET /teams-mcp/teams - List all teams
- GET /teams-mcp/teams/:id/channels - List team channels
- GET /teams-mcp/teams/:id/members - Get team members
- GET /teams-mcp/messages - Get channel messages
- POST /teams-mcp/sync - Sync channel to database
- GET /teams-mcp/users/:id - Get user info
- GET /teams-mcp/meetings - Get online meetings
- GET /teams-mcp/recordings - Get meeting recordings
- POST /teams-mcp/recordings/process - Process recording
- POST /teams-mcp/recordings/sync - Bulk recording sync

**Technical Details:**
- Proper error handling and retry logic
- Integration with Bull queues for async processing
- Uses existing TranscriptionService for Azure Speech integration
- Automatic NLP processing after message/recording storage
- TypeScript interfaces for all Teams entities
- DTOs with validation for API endpoints
- Parser methods for Graph API response normalization

All code compiles successfully and follows existing patterns.
@virginprogrammer virginprogrammer merged commit 2a0a621 into main Nov 26, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants