๐ Complete API Reference
MCP ADR Analysis Server - All available tools, parameters, and usage examples
Version: 2.1.11 | Tools: 52 comprehensive tools | Updated: October 2024
๐ฏ Quick Navigationโ
๐ Core Analysis Toolsโ
analyze_project_ecosystem- Comprehensive project analysis with AI insightsget_architectural_context- Extract architectural context and patternsdiscover_existing_adrs- Discover and catalog existing ADRsreview_existing_adrs- Review ADRs with tree-sitter analysisanalyze_environment- Environment analysis and containerization detection
๐ ADR Generation & Managementโ
generate_adrs_from_prd- Generate ADRs from Product Requirements Documentgenerate_adr_from_decision- Create ADR from decision datasuggest_adrs- Suggest missing ADRs with code analysisgenerate_adr_todo- Extract TODO items from ADRsgenerate_adr_bootstrap- Bootstrap ADR validation scriptsinteractive_adr_planning- Interactive ADR planning workflow
๐ Security & Content Protectionโ
analyze_content_security- Detect sensitive content with AIgenerate_content_masking- Create intelligent masking instructionsapply_basic_content_masking- Apply content masking patternsvalidate_content_masking- Validate masking effectivenessconfigure_custom_patterns- Configure custom security patterns
๐ Project Health & Deploymentโ
smart_score- AI-powered project health scoringcompare_adr_progress- Compare and validate ADR progressdeployment_readiness- Comprehensive deployment readiness analysisanalyze_deployment_progress- Analyze deployment progress and blockersgenerate_deployment_guidance- Generate deployment guidance
๐ ๏ธ Workflow & Developmentโ
troubleshoot_guided_workflow- Systematic troubleshooting workflowget_workflow_guidance- Intelligent workflow recommendationsget_development_guidance- Development roadmap guidancetool_chain_orchestrator- Orchestrate multiple tool workflowssmart_git_push- Intelligent Git operations with validationsmart_git_push_v2- NEW: Security-focused Git push with deployment readiness
๐ฌ Research & Knowledgeโ
perform_research- NEW: Answer questions using cascading data sourcesgenerate_research_questions- Generate targeted research questionscreate_research_template- Create research templatesincorporate_research- Integrate research findings into ADRsmemory_loading- Load and manage architectural memory
โ๏ธ Rules & Validationโ
generate_rules- Generate architectural validation rulesvalidate_rules- Validate code against architectural rulescreate_rule_set- Create machine-readable rule sets
๐๏ธ File & Cache Managementโ
read_file- Read files with security validationwrite_file- Write files with safety checkslist_directory- List directory contents securelymanage_cache- Manage analysis cachemanage_todo_json- Manage TODO JSON files
๐ง Configuration & Utilitiesโ
configure_output_masking- Configure output maskingrequest_action_confirmation- Request user confirmationcheck_ai_execution_status- Check AI execution statusmcp_planning- MCP server planning and coordination
๐ง Core Analysis Toolsโ
analyze_project_ecosystemโ
Purpose: Comprehensive recursive project ecosystem analysis with advanced AI prompting techniques
Use Cases:
- Initial project understanding and architecture discovery
- Complete technology stack analysis
- Knowledge graph building with architectural insights
- Context establishment for downstream analysis tools
Parameters:
{
"projectPath": "string (required) - Path to project root",
"enhancedMode": "boolean (default: false) - Enable enhanced analysis",
"knowledgeEnhancement": "boolean (default: false) - Enable knowledge generation",
"learningEnabled": "boolean (default: false) - Enable reflexion learning",
"includeEnvironment": "boolean (default: false) - Include environment analysis",
"recursiveDepth": "string (enum: 'shallow'|'medium'|'deep'|'comprehensive', default: 'medium')",
"conversationContext": "object (optional) - Conversation context for continuity",
"strictMode": "boolean (default: true) - Enable strict validation"
}
Example Usage:
{
"projectPath": ".",
"enhancedMode": true,
"knowledgeEnhancement": true,
"recursiveDepth": "comprehensive",
"includeEnvironment": true
}
Response Format:
{
"status": "success",
"analysis": {
"projectOverview": "string",
"technologies": ["array of detected technologies"],
"architecturalPatterns": ["array of patterns"],
"recommendations": ["array of recommendations"],
"knowledgeGraph": "object (if knowledgeEnhancement enabled)",
"environmentAnalysis": "object (if includeEnvironment enabled)"
},
"metadata": {
"analysisTime": "number",
"confidence": "number (0-1)",
"toolsUsed": ["array of tools"]
}
}
get_architectural_contextโ
Purpose: Extract architectural context, patterns, and decision history from project
Parameters:
{
"projectPath": "string (required)",
"includePatterns": "boolean (default: true)",
"includeDecisions": "boolean (default: true)",
"contextDepth": "string (enum: 'basic'|'detailed'|'comprehensive', default: 'detailed')"
}
discover_existing_adrsโ
Purpose: Discover, catalog, and analyze existing Architectural Decision Records
Parameters:
{
"projectPath": "string (required)",
"adrDirectory": "string (default: './adrs')",
"includeMetadata": "boolean (default: true)",
"validateStructure": "boolean (default: true)"
}
review_existing_adrsโ
Purpose: Review existing ADRs with advanced tree-sitter code analysis
Parameters:
{
"projectPath": "string (required)",
"adrDirectory": "string (default: './adrs')",
"includeTreeSitter": "boolean (default: true)",
"analysisDepth": "string (enum: 'basic'|'detailed'|'comprehensive', default: 'detailed')"
}
analyze_environmentโ
Purpose: Analyze project environment, containerization, and deployment configuration
Parameters:
{
"projectPath": "string (required)",
"analysisType": "string (enum: 'specs'|'containerization'|'requirements'|'compliance'|'comprehensive', default: 'comprehensive')",
"knowledgeEnhancement": "boolean (default: true)",
"enhancedMode": "boolean (default: true)",
"currentEnvironment": "string (required for compliance analysis)",
"requirements": "array (required for compliance analysis)"
}
๐ ADR Generation & Managementโ
generate_adrs_from_prdโ
Purpose: Generate comprehensive ADRs from Product Requirements Document
Parameters:
{
"prdContent": "string (required) - PRD content",
"projectPath": "string (default: '.')",
"outputDirectory": "string (default: './adrs')",
"adrTemplate": "string (enum: 'nygard'|'madr'|'custom', default: 'nygard')",
"includeImplementationPlan": "boolean (default: true)"
}
suggest_adrsโ
Purpose: Suggest missing ADRs based on code analysis and architectural gaps
Parameters:
{
"projectPath": "string (required)",
"existingAdrs": "array (optional) - Existing ADR summaries",
"beforeCode": "string (optional) - Code before changes",
"afterCode": "string (optional) - Code after changes",
"enableTreeSitterAnalysis": "boolean (default: false)",
"analysisDepth": "string (enum: 'basic'|'detailed'|'comprehensive', default: 'detailed')"
}
generate_adr_bootstrapโ
Purpose: Bootstrap ADR validation scripts and compliance checking
Parameters:
{
"projectPath": "string (required)",
"adrDirectory": "string (default: './adrs')",
"enableTreeSitterAnalysis": "boolean (default: false)",
"validationLevel": "string (enum: 'basic'|'standard'|'strict', default: 'standard')"
}
๐ Security & Content Protectionโ
analyze_content_securityโ
Purpose: Detect sensitive content, secrets, and security vulnerabilities with AI
Parameters:
{
"content": "string (required) - Content to analyze",
"contentType": "string (optional) - Content type hint",
"securityLevel": "string (enum: 'basic'|'standard'|'strict', default: 'standard')",
"enableTreeSitterAnalysis": "boolean (default: false)",
"customPatterns": "array (optional) - Custom security patterns"
}
generate_content_maskingโ
Purpose: Create intelligent masking instructions for sensitive content
Parameters:
{
"content": "string (required)",
"securityFindings": "array (required) - Security analysis results",
"maskingStrategy": "string (enum: 'conservative'|'balanced'|'aggressive', default: 'balanced')",
"preserveStructure": "boolean (default: true)"
}
๐ Project Health & Deploymentโ
smart_scoreโ
Purpose: AI-powered comprehensive project health scoring
Parameters:
{
"projectPath": "string (required)",
"scoringCriteria": "array (optional) - Custom scoring criteria",
"includeRecommendations": "boolean (default: true)",
"detailedAnalysis": "boolean (default: false)"
}
deployment_readinessโ
Purpose: Comprehensive deployment readiness analysis with security validation
Parameters:
{
"projectPath": "string (required)",
"environment": "string (enum: 'development'|'staging'|'production', default: 'production')",
"enableTreeSitterAnalysis": "boolean (default: false)",
"treeSitterLanguages": "array (optional) - Languages to analyze",
"strictMode": "boolean (default: true)"
}
๐ ๏ธ Workflow & Developmentโ
troubleshoot_guided_workflowโ
Purpose: Systematic troubleshooting workflow with intelligent guidance
Parameters:
{
"projectPath": "string (required)",
"issueDescription": "string (required) - Description of the issue",
"troubleshootingLevel": "string (enum: 'basic'|'intermediate'|'advanced', default: 'intermediate')",
"includeSystemInfo": "boolean (default: true)"
}
get_workflow_guidanceโ
Purpose: Intelligent workflow recommendations based on project state
Parameters:
{
"projectPath": "string (required)",
"currentPhase": "string (optional) - Current development phase",
"teamSize": "number (optional) - Team size",
"preferences": "object (optional) - Workflow preferences"
}
tool_chain_orchestratorโ
Purpose: Orchestrate multiple tool workflows for complex analysis tasks
Parameters:
{
"projectPath": "string (required)",
"workflow": "string (enum: 'full_analysis'|'security_audit'|'deployment_prep'|'custom')",
"tools": "array (required for custom workflow) - Tools to orchestrate",
"parallelExecution": "boolean (default: false)"
}
smart_git_push_v2โ
Purpose: Security-focused Git push with deployment readiness validation and metrics tracking
Use Cases:
- Secure git pushes with comprehensive security scanning
- Deployment readiness validation before pushing
- Metrics tracking for deployment success rates
- Prevention of credential leaks and sensitive data exposure
- Repository hygiene enforcement
Parameters:
{
"branch": "string (optional) - Target branch",
"message": "string (optional) - Commit message",
"testResults": "object (optional) - Test execution results",
"skipSecurity": "boolean (optional) - Skip security scanning (default: false)",
"dryRun": "boolean (optional) - Preview changes without pushing (default: false)",
"projectPath": "string (optional) - Project path (default: cwd)",
"forceUnsafe": "boolean (optional) - Force push despite issues (default: false)",
"humanOverrides": "array (optional) - Human override decisions",
"requestHumanConfirmation": "boolean (optional) - Request human confirmation",
"checkDeploymentReadiness": "boolean (optional) - Check deployment readiness (default: false)",
"targetEnvironment": "string (optional) - Target environment (staging|production|integration)",
"enforceDeploymentReadiness": "boolean (optional) - Enforce deployment readiness (default: false)",
"strictDeploymentMode": "boolean (optional) - Strict deployment mode (default: true)"
}
Example Usage:
{
"branch": "main",
"message": "feat: add new authentication system",
"checkDeploymentReadiness": true,
"targetEnvironment": "production",
"strictDeploymentMode": true,
"testResults": {
"success": true,
"testsRun": 25,
"testsPassed": 25,
"testsFailed": 0
}
}
Response Format:
{
"content": [
{
"type": "text",
"text": "# Smart Git Push V2 Results\n\n## Security Scan Results\n[security findings]\n\n## Deployment Readiness\n[readiness assessment]\n\n## Push Status\n[push results]\n\n## Metrics Updated\n[deployment metrics]"
}
]
}
Key Features:
- Security Scanning: Detects credentials, secrets, and sensitive data
- Repository Hygiene: Blocks irrelevant files (temp, build artifacts)
- Deployment Readiness: Validates deployment readiness before pushing
- Metrics Tracking: Updates deployment success rates and test results
- Human Overrides: Supports human confirmation for edge cases
Cache Dependencies:
- Creates/Updates:
.mcp-adr-cache/deploy-history.json(deployment metrics) - Uses: Enhanced sensitive detector for security scanning
Blocking Conditions:
- Critical security issues detected
- Failed tests (when
testResultsprovided) - Deployment readiness failures (when enabled)
- Irrelevant files detected (unless overridden)
๐ฌ Research & Knowledgeโ
perform_researchโ
Purpose: Answer research questions using cascading data sources (project files โ knowledge graph โ environment โ web search)
Use Cases:
- Investigate architectural decisions and patterns
- Understand project implementation details
- Research deployment and configuration approaches
- Gather context for ADR creation
- Validate architectural assumptions
Parameters:
{
"question": "string (required) - The research question to investigate",
"projectPath": "string (optional) - Path to project root (defaults to cwd)",
"adrDirectory": "string (optional) - ADR directory relative to project (defaults to './adrs')",
"confidenceThreshold": "number (optional) - Minimum confidence for results (0-1, defaults to 0.6)",
"performWebSearch": "boolean (optional) - Enable web search as fallback (defaults to true)"
}
Example Usage:
{
"question": "What authentication methods are used in this project?",
"confidenceThreshold": 0.8,
"performWebSearch": false
}
Response Format:
{
"content": [
{
"type": "text",
"text": "# Research Results: [question]\n\n## Summary\n[research findings]\n\n## Confidence Score: [percentage]\n\n## Sources Consulted\n[detailed source information]\n\n## Research Metadata\n[execution details]\n\n## Next Steps\n[recommendations]"
}
]
}
Research Sources (in order of priority):
- ๐ Project Files - Code, configs, documentation
- ๐ง Knowledge Graph - ADR relationships and decisions
- ๐ง Environment Resources - Live system data (Kubernetes, Docker, etc.)
- ๐ Web Search - External information (fallback only)
Confidence Scoring:
- High (โฅ80%): Reliable answer from project sources
- Moderate (60-79%): Good answer, may need validation
- Low (<60%): Limited information, web search recommended
generate_research_questionsโ
Purpose: Generate targeted research questions for architectural investigation
Parameters:
{
"projectPath": "string (required)",
"researchArea": "string (optional) - Specific area of focus",
"questionCount": "number (default: 10) - Number of questions to generate",
"complexity": "string (enum: 'basic'|'intermediate'|'advanced', default: 'intermediate')"
}
memory_loadingโ
Purpose: Load and manage architectural memory for knowledge persistence
Parameters:
{
"projectPath": "string (required)",
"memoryType": "string (enum: 'architectural'|'decisions'|'patterns'|'all', default: 'all')",
"loadStrategy": "string (enum: 'incremental'|'full'|'selective', default: 'incremental')"
}
โ๏ธ Rules & Validationโ
generate_rulesโ
Purpose: Generate architectural validation rules from ADRs and patterns
Parameters:
{
"projectPath": "string (required)",
"adrDirectory": "string (default: './adrs')",
"ruleTypes": "array (optional) - Types of rules to generate",
"strictness": "string (enum: 'lenient'|'moderate'|'strict', default: 'moderate')"
}
validate_rulesโ
Purpose: Validate code against architectural rules
Parameters:
{
"projectPath": "string (required)",
"rules": "array (required) - Rules to validate against",
"filePatterns": "array (optional) - File patterns to validate",
"reportFormat": "string (enum: 'summary'|'detailed'|'json', default: 'detailed')"
}
๐๏ธ File & Cache Managementโ
read_fileโ
Purpose: Read files with security validation and content analysis
Parameters:
{
"filePath": "string (required) - Path to file",
"encoding": "string (default: 'utf8') - File encoding",
"securityCheck": "boolean (default: true) - Enable security validation"
}
manage_cacheโ
Purpose: Manage analysis cache for performance optimization
Parameters:
{
"operation": "string (enum: 'clear'|'status'|'optimize'|'configure', required)",
"cacheType": "string (optional) - Specific cache type",
"maxAge": "number (optional) - Maximum cache age in seconds"
}
๐ง Configuration & Utilitiesโ
configure_output_maskingโ
Purpose: Configure output masking for sensitive information protection
Parameters:
{
"maskingRules": "array (required) - Masking rules configuration",
"globalSettings": "object (optional) - Global masking settings",
"testMode": "boolean (default: false) - Enable test mode"
}
mcp_planningโ
Purpose: MCP server planning and coordination for complex workflows
Parameters:
{
"projectPath": "string (required)",
"planningScope": "string (enum: 'project'|'architecture'|'deployment'|'comprehensive', default: 'comprehensive')",
"includeTimeline": "boolean (default: true)",
"stakeholders": "array (optional) - Project stakeholders"
}
๐ Response Patternsโ
Standard Success Responseโ
{
"status": "success",
"data": {
// Tool-specific response data
},
"metadata": {
"executionTime": "number (milliseconds)",
"toolVersion": "string",
"confidence": "number (0-1)",
"warnings": ["array of warnings"],
"recommendations": ["array of recommendations"]
}
}
Error Responseโ
{
"status": "error",
"error": {
"code": "string - Error code",
"message": "string - Human-readable error message",
"details": "object - Additional error details",
"suggestions": ["array of suggested fixes"]
},
"metadata": {
"executionTime": "number",
"toolVersion": "string"
}
}
๐ Getting Startedโ
Basic Project Analysisโ
# Comprehensive project analysis
{
"tool": "analyze_project_ecosystem",
"arguments": {
"projectPath": ".",
"enhancedMode": true,
"knowledgeEnhancement": true,
"recursiveDepth": "comprehensive"
}
}
Security-First Workflowโ
# 1. Analyze content security
{
"tool": "analyze_content_security",
"arguments": {
"content": "your-code-here",
"securityLevel": "strict"
}
}
# 2. Generate masking instructions
{
"tool": "generate_content_masking",
"arguments": {
"content": "your-code-here",
"securityFindings": "results-from-step-1"
}
}
# 3. Check deployment readiness
{
"tool": "deployment_readiness",
"arguments": {
"projectPath": ".",
"environment": "production",
"strictMode": true
}
}
๐ Additional Resourcesโ
- Tutorials - Step-by-step guides
- How-To Guides - Problem-solving guides
- Explanation - Conceptual documentation
- GitHub Repository - Source code and issues
Last updated: September 2025 | Version 2.1.0