Skip to main content

๐Ÿ“– Complete API Reference

MCP ADR Analysis Server - All available tools, parameters, and usage examples

Version: 2.1.0 | Tools: 41 comprehensive tools | Updated: October 2025


๐ŸŽฏ Quick Navigationโ€‹

๐Ÿ” Core Analysis Toolsโ€‹

๐Ÿ“ ADR Generation & Managementโ€‹

๐Ÿ”’ Security & Content Protectionโ€‹

๐Ÿ“Š Project Health & Deploymentโ€‹

๐Ÿ› ๏ธ Workflow & Developmentโ€‹

๐Ÿ”ฌ Research & Knowledgeโ€‹

โš™๏ธ Rules & Validationโ€‹

๐Ÿ—‚๏ธ File & Cache Managementโ€‹

๐Ÿ”ง Configuration & Utilitiesโ€‹


๐Ÿ”ง 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 testResults provided)
  • 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):

  1. ๐Ÿ“ Project Files - Code, configs, documentation
  2. ๐Ÿง  Knowledge Graph - ADR relationships and decisions
  3. ๐Ÿ”ง Environment Resources - Live system data (Kubernetes, Docker, etc.)
  4. ๐ŸŒ 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โ€‹


Last updated: September 2025 | Version 2.1.0