Model Context Protocol (MCP) servers provide live integrations with external services and tools. The Unified Agent System integrates with four core MCP servers to enhance agent capabilities with real-time data, operations, and persistent organizational knowledge.
Live repository operations and GitHub API integration
Capabilities:
- Repository management and file operations
- Pull request creation, review, and merging
- Branch management and workflow operations
- Issue tracking and project management
- Workflow automation and CI/CD integration
Key Tools:
mcp__github__create_pull_requestmcp__github__get_pull_request_diffmcp__github__merge_pull_requestmcp__github__create_branchmcp__github__list_workflowsmcp__github__run_workflowmcp__github__get_job_logs
Project task management and complexity analysis
Capabilities:
- Project initialization and configuration
- Task creation, tracking, and status management
- Complexity analysis and task expansion
- Dependency management and workflow orchestration
- PRD parsing and task generation
Key Tools:
mcp__task-master__initialize_projectmcp__task-master__get_tasksmcp__task-master__add_taskmcp__task-master__set_task_statusmcp__task-master__analyze_project_complexitymcp__task-master__parse_prd
Live library documentation and code examples
Capabilities:
- Library and framework documentation retrieval
- Up-to-date API references and usage patterns
- Code examples and best practices
- Version compatibility checking
- Integration patterns and tutorials
Key Tools:
mcp__context7__resolve-library-idmcp__context7__get-library-docs
Persistent knowledge management and organizational memory
Capabilities:
- Note creation, editing, and management for persistent knowledge storage
- Context building from historical projects and implementations
- Pattern search and knowledge retrieval across organizational memory
- Living documentation maintenance and evolution tracking
- Project memory and architectural decision recording
- Cross-project learning and pattern reuse
Key Tools:
mcp__basic-memory__write_notemcp__basic-memory__read_notemcp__basic-memory__search_notesmcp__basic-memory__build_contextmcp__basic-memory__edit_note
# git-expert agent tools
tools: [
Read, Write, Edit, MultiEdit, Bash, Grep, Glob, LS,
mcp__github__create_pull_request,
mcp__github__get_pull_request,
mcp__github__merge_pull_request,
mcp__github__get_pull_request_diff,
mcp__github__create_branch,
mcp__github__list_branches,
mcp__github__get_file_contents,
mcp__github__create_or_update_file
]Integration Pattern:
## GitHub MCP Integration
You have access to GitHub MCP for live repository operations:
- Use GitHub MCP tools for real-time PR management, branch operations, and file operations
- Create and manage pull requests directly through the GitHub API
- Access repository contents and diff information for conflict analysis
- Manage branches and perform repository operations remotely
- Always prefer GitHub MCP tools for repository operations when available# code-reviewer agent tools
tools: [
Read, Grep, Glob, LS,
mcp__github__get_pull_request,
mcp__github__get_pull_request_diff,
mcp__github__get_pull_request_files,
mcp__github__create_and_submit_pull_request_review,
mcp__github__add_comment_to_pending_review
]# cicd-pipeline-engineer agent tools
tools: [
Read, Write, Edit, MultiEdit, Bash, Grep, Glob, LS,
mcp__github__list_workflows,
mcp__github__run_workflow,
mcp__github__get_workflow_run,
mcp__github__list_workflow_jobs,
mcp__github__get_job_logs,
mcp__github__cancel_workflow_run
]# orchestrator agent tools
tools: [
Task, Read, Glob, Grep, LS,
mcp__task-master__initialize_project,
mcp__task-master__get_tasks,
mcp__task-master__add_task,
mcp__task-master__set_task_status,
mcp__task-master__analyze_project_complexity
]Integration Pattern:
## Task Master MCP Integration
You have access to Task Master MCP for comprehensive project task management:
- Use Task Master MCP tools to initialize projects, manage tasks, and track complexity
- Create structured task breakdown and dependency management
- Monitor project progress and coordinate agent assignments based on task requirements
- Always prefer Task Master MCP tools for project orchestration when available# project-analyst agent tools
tools: [
Read, Grep, Glob, LS,
mcp__task-master__parse_prd,
mcp__task-master__add_task,
mcp__task-master__get_tasks,
mcp__task-master__expand_task
]# documentation-specialist agent tools
tools: [
Read, Write, Edit, MultiEdit, Bash, Grep, Glob, LS,
mcp__context7__resolve-library-id,
mcp__context7__get-library-docs
]Integration Pattern:
## Context7 MCP Integration
You have access to Context7 MCP for retrieving up-to-date library documentation and examples:
- Use `mcp__context7__resolve-library-id` to find the correct library identifier for any framework or library
- Use `mcp__context7__get-library-docs` to fetch current documentation, API references, and code examples
- Always verify documentation accuracy by checking the latest library versions and patterns
- Integrate live examples and current best practices from Context7 into your documentation# rails-backend-expert agent tools
tools: [
Read, Write, Edit, MultiEdit, Bash, Grep, Glob, LS,
mcp__context7__resolve-library-id,
mcp__context7__get-library-docs
]Framework-Specific Integration:
## Context7 MCP Integration
You have access to Context7 MCP for retrieving up-to-date Rails documentation and gem information:
- Use `mcp__context7__resolve-library-id` to find Rails gems and their documentation
- Use `mcp__context7__get-library-docs` to fetch current Rails API references, gem usage patterns, and best practices
- Always verify gem compatibility and current Rails versions before making recommendations
- Integrate the latest Rails patterns and gem examples from Context7 into your solutionsComprehensive Integration Pattern:
# Example: performance-optimizer agent tools
tools: [
Read, Write, Edit, MultiEdit, Bash, Grep, Glob, LS,
mcp__basic-memory__write_note,
mcp__basic-memory__read_note,
mcp__basic-memory__search_notes,
mcp__basic-memory__build_context,
mcp__basic-memory__edit_note
]Universal Integration Pattern:
## Basic Memory MCP Integration
You have access to Basic Memory MCP for [domain] patterns and [technology] knowledge:
- Use `mcp__basic-memory__write_note` to store [domain] patterns, [specific techniques], and [expertise] insights
- Use `mcp__basic-memory__read_note` to retrieve previous [domain] implementations and solutions
- Use `mcp__basic-memory__search_notes` to find similar [domain] challenges and approaches from past projects
- Use `mcp__basic-memory__build_context` to gather [domain] context from related systems and decisions
- Use `mcp__basic-memory__edit_note` to maintain living [domain] documentation and evolution guides
- Store [specific configurations], [pattern types], and organizational [domain] knowledgeUniversal Specialists & Quality:
# documentation-specialist
Basic Memory Focus: Architectural decision tracking, project memory, documentation patterns
# code-reviewer
Basic Memory Focus: Code review patterns, quality standards, best practices documentation
# performance-optimizer
Basic Memory Focus: Performance analysis memory, optimization patterns, benchmark tracking
# resilience-engineer
Basic Memory Focus: Fault tolerance patterns, circuit breaker configurations, resilience strategiesBackend Framework Specialists:
# rails-expert, django-expert, laravel-expert, etc.
Basic Memory Focus: Framework patterns, ORM optimizations, language best practices
# nodejs-expert, fastify-expert
Basic Memory Focus: Async implementations, JavaScript/TypeScript patterns, performance optimizations
# gin-expert, fiber-expert
Basic Memory Focus: Go patterns, middleware configurations, performance strategies
# prisma-expert
Basic Memory Focus: Schema designs, migration strategies, database optimization patternsFrontend Framework Specialists:
# angular-expert, nextjs-expert, vue-expert
Basic Memory Focus: Component architectures, framework patterns, performance optimizations
# react-component-architect
Basic Memory Focus: Component patterns, hooks patterns, React best practicesDevelopment Operations:
# git-expert
Basic Memory Focus: Git workflow patterns, conflict resolution strategies, branching models
# cicd-pipeline-engineer
Basic Memory Focus: Pipeline configurations, deployment strategies, automation patterns
# test-automation-expert, qa-automation-engineer
Basic Memory Focus: Testing strategies, automation patterns, QA insights and frameworksProject & Team Management:
# project-analyst, tech-lead-orchestrator
Basic Memory Focus: Requirements memory, architectural decisions, strategic planning
# business-analyst, product-manager
Basic Memory Focus: Business logic, stakeholder requirements, feature evolution tracking@git-expert+ GitHub MCP → Live repository analysis and operations@code-reviewer+ GitHub MCP → Automated PR reviews with real-time feedback@cicd-pipeline-engineer+ GitHub MCP → Workflow management and troubleshooting
@project-analyst+ Task Master MCP → PRD analysis and initial task generation@tech-lead-orchestrator+ Task Master MCP → Project complexity assessment and expansion- Task Master MCP → Continuous task tracking and dependency management across all agents
@documentation-specialist+ Context7 MCP → Retrieve up-to-date library documentation- Framework specialists + Context7 MCP → Access current patterns and best practices
@software-engineering-expert+ Context7 MCP → Validate implementation approaches
- Planning → Task Master MCP generates structured tasks from requirements
- Research → Context7 MCP provides current documentation and examples
- Development → Framework specialists implement with GitHub MCP for live repo operations
- Review →
@code-reviewer+ GitHub MCP for automated quality assurance - Deployment →
@release-manager+ GitHub MCP for orchestrated releases - Tracking → Task Master MCP maintains project progress visibility
Each MCP server requires specific configuration and permissions:
- GitHub personal access token with appropriate repository permissions
- Repository access for target repositories
- Workflow permissions for CI/CD operations
- Project root directory access
- File system permissions for task tracking
- Configuration for AI model integration (optional)
- Internet access for documentation retrieval
- API access to documentation sources
- Caching configuration for performance
Agents specify MCP tools in their configuration:
# Agent frontmatter
tools: [
# Standard tools
Read, Write, Edit, MultiEdit, Bash, Grep, Glob, LS,
# MCP tools
mcp__github__create_pull_request,
mcp__task-master__get_tasks,
mcp__context7__get-library-docs
]Agents should handle MCP server unavailability gracefully:
## MCP Error Handling
- Check MCP server availability before using MCP tools
- Provide fallback functionality when MCP servers are unavailable
- Clear error messages when MCP operations fail
- Graceful degradation to standard tools when needed- Availability Check: Always check if MCP servers are available before using MCP tools
- Fallback Strategy: Provide alternative approaches when MCP tools are unavailable
- Error Handling: Handle MCP errors gracefully with clear user messages
- Performance: Cache MCP results when appropriate to reduce API calls
- Prefer MCP: Use MCP tools when available for enhanced functionality
- Complement Standard Tools: Use MCP tools to enhance, not replace, standard capabilities
- Context Sharing: Share MCP data between agents when collaborating
- Security: Handle MCP credentials and data securely
- Sequential Operations: Chain MCP operations logically
- Parallel Processing: Use multiple MCP servers simultaneously when beneficial
- State Management: Track MCP operation state across agent interactions
- Progress Reporting: Provide clear progress updates for long-running MCP operations
Combine multiple MCP servers in single workflows:
# Example: Complete feature development workflow
"Use @project-analyst with Task Master MCP to parse PRD, then @rails-backend-expert with Context7 MCP for implementation patterns, and @git-expert with GitHub MCP for PR creation"Agents share MCP data and coordinate operations:
# Example: Code review with task tracking
"Use @code-reviewer with GitHub MCP to review PR, then update task status using Task Master MCP based on review results"Proactive agents use MCP data for better activation decisions:
## MCP-Enhanced Proactive Triggers
- Monitor GitHub MCP for PR events to trigger @code-reviewer
- Use Task Master MCP task status to activate relevant specialists
- Leverage Context7 MCP for framework detection to suggest appropriate agents- Problem: MCP server not responding
- Solution: Check server status, network connectivity, and authentication
- Problem: Access denied for MCP operations
- Solution: Verify credentials, permissions, and scope access
- Problem: Too many MCP API calls
- Solution: Implement caching, reduce call frequency, or use batch operations
- Problem: Inconsistent data between MCP servers
- Solution: Implement data validation and synchronization checks
- Enable Debug Logging: Turn on detailed MCP operation logging
- Test Individual Tools: Verify each MCP tool works independently
- Check Permissions: Ensure all required permissions are granted
- Validate Configuration: Verify MCP server configuration and credentials
- Caching: Implement intelligent caching for frequently accessed MCP data
- Batch Operations: Use batch MCP operations when available
- Async Processing: Use asynchronous MCP calls when possible
- Connection Pooling: Reuse MCP connections efficiently