What You’ll Learn
Practical integration workflows combining custom subagents, rules, and MCP servers for real-world development scenarios.Integration Methods
| Method | Best For | Configuration |
|---|---|---|
| Custom Subagents | AI-powered specialized tasks | ~/.verdent/subagents/*.md |
| Rules (AGENTS.md) | Team standards and behavior | Project root AGENTS.md |
| MCP Servers | Protocol-compliant external tools | .mcp.json (project root) |
Common Integration Patterns
Database Development Workflow
Stack: Migration Reviewer Subagent + AGENTS.md Standards + PostgreSQL MCP Server Subagent:API Development with Security
Stack: Security Auditor + AGENTS.md Rules + Custom API Testing Tool Components:- Subagent:
@api-security-auditor- Input validation, SQL injection, auth, rate limiting - Rules: All endpoints require security review, rate limiting on public APIs
- External Tools: Automated endpoint testing and security scans via custom integration
API testing and security scanning tools can be integrated via custom MCP server implementations or other integration methods depending on your tooling.
Frontend Accessibility
Stack: Accessibility Auditor + WCAG Rules + Lighthouse Integration Workflow:Lighthouse and other accessibility tools can be integrated through custom MCP servers or CI/CD pipeline integration depending on your workflow.
MCP Configuration Examples
Understanding MCP
Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to LLMs. MCP servers are executables that implement the protocol—they’re not database connections or API endpoints, but programs that run and communicate via JSON-RPC 2.0. Key Concepts:- MCP Servers: Executables (Node.js packages, Python scripts, etc.) that implement the MCP protocol
- Configuration: Tells Verdent how to start the server (
command+args) - Communication: Servers handle their own business logic (queries, API calls, etc.)
Basic Setup
Location:.mcp.json in project root
mcpServers- Required top-level key for MCP configurationcommand- Executable to run (typicallynpxfor Node.js packages)args- Arguments passed to the command (package name, connection strings, etc.)env- Environment variables for authentication/configuration
Multi-Environment
Workspace Integration
Project-Specific Configuration
Setup:- Store in project root:
.mcp.json - Commit to version control for team sharing
- Team members automatically use project MCP servers
For additional services like Kafka, you would need a compatible MCP server implementation. The official MCP server registry at mcp.so/servers lists available community servers.
Team Collaboration
Shared AGENTS.md Standards
Commit to version control for team-wide consistency:Multi-Agent Coordination
Complex Feature Workflow
Example: New payment endpointIntegration Best Practices
Progressive Adoption
Phase 1: Basic rulesStrategic Combinations
| Combination | Purpose | Example |
|---|---|---|
| Rules + Subagents | Rules define when, subagents analyze | AGENTS.md: “Review with @security-reviewer” |
| Rules + MCP | Rules specify which servers, MCP accesses | AGENTS.md: “Use db-staging only” |
| Subagents + MCP | Subagent uses MCP for external data | Security auditor queries API endpoints |
Team Documentation Best Practices
When documenting integrations for your team, include:- Custom Subagents: List each subagent’s name, purpose, and when to invoke it
- AGENTS.md Rules: Document rules with rationale explaining the “why” behind each standard
- MCP Servers: Describe each server’s purpose, access level (read-only/write), and when to use it
- Integration Workflows: Provide example workflows showing how components work together
- Troubleshooting: Document common issues specific to your setup and their solutions
Troubleshooting
- Subagent Issues
- AGENTS.md Issues
- MCP Server Issues
Problem: Subagent not invoking when expectedCheck:Location: File exists at
Common Causes:
~/.verdent/subagents/[name].mdYAML Frontmatter: Valid syntax with required name and description fieldsInvocation Policy: Matches usage (strict requires explicit @-mention)Description: Agent description accurately describes when the subagent should be usedRestart: Try restarting Verdent to reload subagent definitionsCommon Causes:
- Typo in subagent file name or @-mention
- Invalid YAML syntax in frontmatter
- Subagent
descriptiondoesn’t match task context