How .mcp-server-context.md Helps with ALL 25 Tools
Overviewโ
The .mcp-server-context.md file provides comprehensive support for all 25+ tools in the MCP ADR Analysis Server through multiple mechanisms:
โ Complete Tool Coverageโ
1. Tool Discovery (All Tools)โ
When LLMs @.mcp-server-context.md, they instantly see all 25 tools organized by category:
**ADR Management** (5 tools)
- adr_suggestion, adr_validation, rule_generation, review_existing_adrs, adr_bootstrap_validation
**Deployment & Infrastructure** (4 tools)
- deployment_readiness, deployment_guidance, deployment_analysis, environment_analysis
**Research & Analysis** (4 tools)
- perform_research, research_question, research_integration, expand_analysis
**Development Workflow** (5 tools)
- smart_git_push, todo_management_v2, troubleshoot_guided_workflow, bootstrap_validation_loop, tool_chain_orchestrator
**Memory & Context** (3 tools)
- conversation_memory, memory_loading, get_server_context
**Cloud & Database** (3 tools)
- llm_web_search, llm_cloud_management, llm_database_management
**Other** (4 tools)
- content_masking, interactive_adr_planning, smart_score, mcp_planning
Benefit: LLMs know what tools exist and what they do without querying.
2. Usage Patterns (All Tools)โ
The analytics section tracks usage for every tool:
## ๐ Recent Analytics
### Tool Usage (Last 7 Days)
1. adr_suggestion: 34 calls - 97% success
2. smart_score: 28 calls - 100% success
3. deployment_readiness: 15 calls - 93% success
4. environment_analysis: 12 calls - 100% success
5. perform_research: 8 calls - 88% success
...
Benefit: LLMs see which tools are working well and which are frequently used.
3. Tool Chains (All Tools)โ
The patterns section shows successful multi-tool workflows:
### Successful Tool Chains
1. adr_suggestion โ adr_validation โ smart_score: 12 times
2. perform_research โ research_integration โ adr_suggestion: 8 times
3. environment_analysis โ deployment_readiness โ deployment_guidance: 6 times
4. review_existing_adrs โ rule_generation โ adr_bootstrap_validation: 4 times
Benefit: LLMs learn how to combine tools effectively for complex workflows.
4. Context Awareness (All Tools)โ
Every tool execution is tracked in the knowledge graph:
### Active Intents
**Recent Intents**:
- **Implement database migration** - executing
โโ Tools used: environment_analysis, deployment_analysis, llm_database_management
- **Generate API documentation** - completed
โโ Tools used: review_existing_adrs, adr_suggestion, rule_generation
Benefit: LLMs see what tools were used for what purpose and with what results.
5. Memory Integration (All Tools)โ
Memory entities track tool outputs:
### Memory Entities
**Entity Breakdown**:
- Architectural Decisions: 12 (from adr_suggestion, adr_validation)
- Technical Decisions: 8 (from deployment_guidance, environment_analysis)
- Observations: 5 (from perform_research, expand_analysis)
- Patterns: 3 (from smart_score, review_existing_adrs)
Benefit: LLMs understand what knowledge each tool has contributed.
How Each Tool Category Benefitsโ
ADR Management Tools (5 tools)โ
- Discover: See all ADR-related tools at once
- Learn: Understand which ADR tools work together (e.g., suggestion โ validation โ bootstrap)
- Track: See how many ADRs have been created/validated
- Improve: Notice patterns in ADR creation (e.g., common themes, validation failures)
Deployment Tools (4 tools)โ
- Discover: See all deployment tools and their purposes
- Learn: Understand deployment workflows (analysis โ readiness โ guidance)
- Track: Monitor deployment readiness scores over time
- Improve: Identify deployment blockers and patterns
Research Tools (4 tools)โ
- Discover: Know which research tools are available
- Learn: See research โ integration workflows
- Track: Track research findings and their impact on decisions
- Improve: Identify knowledge gaps that research should address
Workflow Tools (5 tools)โ
- Discover: See all development workflow tools
- Learn: Understand orchestration patterns (todo โ git โ validation)
- Track: Monitor workflow efficiency and bottlenecks
- Improve: Optimize tool chains based on success rates
Memory Tools (3 tools)โ
- Discover: Understand memory management capabilities
- Learn: See how conversation context is maintained
- Track: Monitor memory entity growth and relationships
- Improve: Identify memory gaps and optimization opportunities
Cloud/Database Tools (3 tools)โ
- Discover: Know infrastructure management capabilities
- Learn: See cloud/database management patterns
- Track: Monitor infrastructure operations
- Improve: Identify infrastructure optimization opportunities
Real-World Example: LLM Using Context for Multi-Tool Workflowโ
User Request:โ
I need to add a new microservice for user authentication.
What should I do?
LLM with Context File:โ
Looking at @.mcp-server-context.md, I can see:
1. **Available Tools**: We have adr_suggestion, environment_analysis,
deployment_readiness, and deployment_guidance
2. **Recent Patterns**: Successful chain: environment_analysis โ
deployment_analysis โ adr_suggestion
3. **Current State**:
- 12 architectural decisions documented
- Project score: 87/100
- Active intent: "Database migration strategy"
4. **Recommendations**:
- Knowledge gap: "Authentication patterns not yet documented"
**My Recommendation**: Let's follow this workflow:
1. Use `perform_research` to research authentication patterns
2. Use `environment_analysis` to understand current auth setup
3. Use `adr_suggestion` to generate authentication ADR
4. Use `deployment_guidance` for deployment strategy
5. Use `adr_validation` to validate the ADR
This follows the successful pattern we've used before.
What the Context File DOESN'T Provide (By Design)โ
โ Detailed Tool Schemasโ
Why: Schemas change frequently, would make file too large Solution: LLMs can query MCP protocol for exact schemas when needed Context file shows: Tool names and high-level descriptions
โ Real-Time Tool Statusโ
Why: Would require polling, adds complexity Solution: Context file updates after tool executions Context file shows: Recent usage patterns and success rates
โ Tool-Specific Configurationโ
Why: Configuration is environment-specific Solution: Tools read from environment/config files Context file shows: Project path and ADR directory
How to Maximize Context File Effectivenessโ
1. Regular Updatesโ
Ensure the context file updates after every tool execution:
// After tool execution
await generator.writeContextFile(kgManager, memoryManager, conversationManager);
2. Rich Analyticsโ
Let the knowledge graph track tool usage:
await kgManager.addToolExecution(intentId, toolName, parameters, result, success);
3. Meaningful Intentsโ
Create intents with clear, descriptive names:
await kgManager.createIntent('Implement authentication microservice', [
'Research patterns',
'Design ADR',
'Plan deployment',
]);
4. Tool Chainsโ
Document successful tool chains:
// Knowledge graph automatically tracks tool execution order
// Context file surfaces successful patterns
Verification: Does It Help ALL Tools?โ
| Tool Category | Tool Count | Discoverable? | Usage Tracked? | Patterns Shown? |
|---|---|---|---|---|
| ADR Management | 5 | โ Yes | โ Yes | โ Yes |
| Deployment | 4 | โ Yes | โ Yes | โ Yes |
| Research | 4 | โ Yes | โ Yes | โ Yes |
| Workflow | 5 | โ Yes | โ Yes | โ Yes |
| Memory | 3 | โ Yes | โ Yes | โ Yes |
| Cloud/Database | 3 | โ Yes | โ Yes | โ Yes |
| Other | 4 | โ Yes | โ Yes | โ Yes |
| TOTAL | 28 | โ 100% | โ 100% | โ 100% |
Conclusionโ
YES - The context file helps with ALL 25+ tools by:
- โ Listing all tools by category (discovery)
- โ Tracking usage of every tool (analytics)
- โ Showing successful tool chains (patterns)
- โ Recording tool outputs in memory (knowledge)
- โ Providing context for tool selection (recommendations)
The context file is a force multiplier - it makes LLMs more effective at using your entire tool ecosystem, not just a few popular tools.
Next Steps:
- Integrate the context generator into your server
- Test with a complex multi-tool workflow
- Observe how LLMs use the context to make better tool choices
- Monitor tool usage patterns in the analytics section
This context file transforms your 25+ tools from a scattered toolkit into a coherent, discoverable, learnable system that LLMs can master.