
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server for AI-assisted development that provides pattern validation, hallucination prevention, security scanning, and test generation.
MCP Context Manager is cataloged as an MCP server attributed to bswa006. An MCP server for AI-assisted development that provides pattern validation, hallucination prevention, security scanning, and test generation. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP Context Manager are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It verifies that imports, methods, and patterns exist before AI suggests code, and validates generated code against project patterns and conventions.
Yes. It includes deep codebase analysis for comprehensive pattern detection and architecture understanding, plus pattern detection to match coding style.
Yes. It includes a security compliance tool that scans code for vulnerabilities and security issues, along with security requirements resources.
README.md · 565134d7e8db · Fetched 2026-11-13 08:17:45 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
The definitive MCP (Model Context Protocol) server for perfect AI-assisted development. This server transforms AI agents into expert developers that write flawless, secure, and well-tested code with zero hallucinations.
npm: https://www.npmjs.com/package/mcp-context-manager
GitHub: https://github.com/bswa006/mcp-context-manager
This MCP server is the missing piece for AI-assisted development, providing:
# Install globally
npm install -g mcp-context-manager
# Or use directly with npx
npx mcp-context-manager
Then add to your Claude Desktop config:
{
"mcpServers": {
"context-manager": {
"command": "npx",
"args": ["mcp-context-manager"]
}
}
}
Note: After updating Claude Desktop config, restart Claude Desktop completely for changes to take effect.
If you still see "0 tools enabled", try this alternative configuration:
{
"mcpServers": {
"context-manager": {
"command": "node",
"args": ["/path/to/global/node_modules/mcp-context-manager/dist/cli.js"]
}
}
}
To find the global node_modules path, run: npm root -g
# Clone the repository
git clone https://github.com/bswa006/mcp-context-manager
cd mcp-context-manager
# Install dependencies
npm install
# Build the server
npm run build
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"context-manager": {
"command": "node",
"args": ["/path/to/ai-agent-template-mcp/dist/server.js"]
}
}
}
Add to your Cursor settings:
{
"mcp.servers": {
"context-manager": {
"command": "node",
"args": ["/path/to/ai-agent-template-mcp/dist/server.js"]
}
}
}
template://ai-constraints - CRITICAL rules AI must follow when generating codetemplate://current-patterns - REQUIRED patterns to match in new codetemplate://hallucination-prevention - Common AI mistakes and prevention guidetemplate://naming-conventions - MANDATORY naming patterns to followtemplate://security-requirements - CRITICAL security rules (non-negotiable)template://api-signatures - Valid API methods to prevent hallucinationstemplate://error-handling - REQUIRED error handling patternstemplate://agent-memory - Persistent memory of patterns and learningstemplate://agent-context - Real-time context for current sessiontemplate://pattern-library - Comprehensive code patterns for all scenariostemplate://workflow-templates - Step-by-step guides for common taskstemplate://test-patterns - Testing strategies for 80%+ coverageHere's a comprehensive list of all 15 tools available in the MCP server:
| Tool | Purpose | Key Features |
|---|---|---|
| check_before_suggesting | Prevent hallucinations | Verifies imports, methods, and patterns exist before AI suggests code |
| validate_generated_code | Validate AI output | Checks generated code against project patterns and conventions |
| get_pattern_for_task | Pattern guidance | Provides exact patterns to follow for components, hooks, services, etc. |
| check_security_compliance | Security validation | Scans code for vulnerabilities and security issues |
| detect_existing_patterns | Pattern detection | Analyzes existing codebase to match coding style |
| Tool | Purpose | Key Features |
|---|---|---|
| initialize_agent_workspace | Project setup | Creates PROJECT-TEMPLATE.md, CODEBASE-CONTEXT.md, and context files |
| analyze_codebase_deeply | Deep analysis | Comprehensive pattern detection, architecture understanding |
| complete_setup_workflow | One-command setup | Runs all setup tools in sequence for complete configuration |
| Tool | Purpose | Key Features |
|---|---|---|
| generate_tests_for_coverage | Test generation | Creates tests to achieve 80%+ coverage with edge cases |
| track_agent_performance | Metrics tracking | Monitors token usage, validation scores, and improvements |
| Tool | Purpose | Key Features |
|---|---|---|
| create_conversation_starters | AI context helper | Quick tasks, recent work, project overview for faster AI understanding |
| create_token_optimizer | Token savings | 3-tier context system (minimal/standard/comprehensive) with ROI tracking |
| create_ide_configs | IDE integration | Auto-loading configs for Cursor, VS Code, IntelliJ |
| setup_persistence_automation | Auto-updates | Git hooks, cron jobs, monitoring, validation scripts |
| create_maintenance_workflows | Team collaboration | Onboarding guides, checklists, metrics dashboards, training materials |
CRITICAL: AI must use this before suggesting any code to prevent hallucinations.
{
imports: string[]; // List of imports to verify
methods: string[]; // List of methods/APIs to verify
patterns?: string[]; // Code patterns to verify
}
AI must validate all generated code against project patterns.
{
code: string; // Generated code to validate
context: string; // What the code is supposed to do
targetFile?: string; // Where this code will be placed
}
Get the exact pattern to follow for a specific task.
{
taskType: 'component' | 'hook' | 'service' | 'api' | 'test' | 'error-handling';
requirements?: string[]; // Specific requirements
}
Verify code meets security requirements before suggesting.
{
code: string; // Code to check
sensitiveOperations?: string[]; // List of sensitive ops
}
Analyze existing code to match patterns when generating new code.
{
directory: string; // Directory to analyze
fileType: string; // Type of files to analyze
}
Initialize complete AI agent workspace with templates and context.
{
projectPath: string; // Path to project
projectName: string; // Name of project
techStack?: { // Optional tech stack
language?: string;
framework?: string;
uiLibrary?: string;
testFramework?: string;
};
}
Generate intelligent tests to achieve 80%+ coverage.
{
targetFile: string; // File to test
testFramework?: string; // jest, vitest, mocha
coverageTarget?: number; // Default: 80
includeEdgeCases?: boolean; // Include edge cases
includeAccessibility?: boolean; // Include a11y tests
}
Track and analyze AI agent performance metrics.
{
featureName: string; // Feature completed
timestamp: string; // ISO timestamp
metrics: {
tokensUsed: number;
timeElapsed: number;
validationScore: number;
securityScore: number;
testCoverage: number;
// ... more metrics
};
}
Perform comprehensive analysis of codebase to understand patterns and architecture.
{
projectPath: string; // Path to analyze
maxDepth?: number; // Max directory depth (default: 5)
excludePatterns?: string[]; // Patterns to exclude
}
Create conversation starters to help AI understand project context quickly.
{
projectPath: string; // Project path
analysisId?: string; // Analysis ID from analyze_codebase_deeply
includeQuickTasks?: boolean; // Include common quick tasks
includeCurrentWork?: boolean; // Include recent git commits
tokenLimit?: number; // Maximum tokens for the file
customTasks?: string[]; // Custom quick tasks to include
}
Create tiered context files for token optimization with ROI tracking.
{
projectPath: string; // Project path
analysisId?: string; // Analysis ID
tiers?: ('minimal' | 'standard' | 'comprehensive')[];
trackUsage?: boolean; // Enable token usage tracking
generateMetrics?: boolean; // Generate ROI metrics report
}
Create IDE-specific configurations for Cursor, VS Code, and IntelliJ.
{
projectPath: string; // Project path
analysisId?: string; // Analysis ID
ide: 'cursor' | 'vscode' | 'intellij' | 'all';
autoLoadContext?: boolean; // Enable automatic context loading
customRules?: string[]; // Custom rules to add
includeDebugConfigs?: boolean; // Include debugging configurations
}
Set up automated context updates with monitoring and validation.
{
projectPath: string; // Project path
analysisId?: string; // Analysis ID
updateSchedule: 'daily' | 'weekly' | 'on-change' | 'manual';
gitHooks?: boolean; // Install git hooks for validation
monitoring?: boolean; // Enable context monitoring
notifications?: { // Notification settings
email?: string;
slack?: string;
};
}
Create team workflows for maintaining AI context quality over time.
{
projectPath: string; // Project path
analysisId?: string; // Analysis ID
teamSize: number; // Number of developers
updateFrequency: 'daily' | 'weekly' | 'biweekly' | 'monthly';
includeChecklists?: boolean; // Include review checklists
includeMetrics?: boolean; // Include metrics dashboard
includeTraining?: boolean; // Include training materials
}
Complete MCP setup workflow: analyze codebase, create all context files, and configure automation.
{
projectPath: string; // Project path
projectName: string; // Project name
teamSize?: number; // Team size
updateSchedule?: 'daily' | 'weekly' | 'on-change' | 'manual';
ide?: 'cursor' | 'vscode' | 'intellij' | 'all';
includeAll?: boolean; // Include all optional features
}
AI MUST use this prompt before generating any code.
AI should validate its own code before presenting to user.
AI checks if it is following project patterns correctly.
AI verifies all imports and methods exist before using them.
AI checks its own code for security issues.
Get specific workflow guidance based on task context.
Track agent performance after completing features.
The fastest way to get started is using the complete_setup_workflow tool:
// In your AI chat:
Use the complete_setup_workflow tool with these parameters:
{
"projectPath": "/path/to/your/project",
"projectName": "My Awesome Project",
"teamSize": 5,
"updateSchedule": "weekly",
"ide": "all"
}
This will:
After completion:
agent-context/ directoryinitialize_agent_workspacedetect_existing_patternscheck_before_suggestingget_pattern_for_taskvalidate_generated_codecheck_security_compliancegenerate_tests_for_coveragetrack_agent_performanceThe MCP server tracks:
check_before_suggesting first# Run in development mode
npm run dev
# Type check
npm run type-check
# Lint
npm run lint
# Build for production
npm run build
ai-agent-template-mcp/
├── src/
│ ├── server.ts # Main server entry point
│ ├── resources/ # Resource handlers
│ │ ├── index.ts # Resource definitions
│ │ └── extractors.ts # Pattern extractors
│ ├── tools/ # Tool implementations
│ │ ├── validators/ # Hallucination prevention
│ │ ├── analyzers/ # Pattern detection
│ │ ├── patterns/ # Pattern providers
│ │ ├── workspace/ # Workspace initialization
│ │ ├── testing/ # Test generation
│ │ └── performance/ # Metrics tracking
│ └── prompts/ # Workflow guidance
├── AGENT-CODING-TEMPLATE.md # Master template
├── AGENT-CONTEXT.md # Session tracking
├── AGENT-MEMORY.md # Persistent memory
└── .context7.yaml # API verification
When an AI agent with this MCP server generates code:
Pre-Generation Phase:
Generation Phase:
Validation Phase:
Based on the AI Agent Template methodology:
Contributions are welcome! Please read our contributing guidelines and submit PRs.
MIT
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP Context Manager from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/ai-agent-template-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.