MCP Project Guard
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Project Guard Find similar code patterns for a modal component."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Project Guard
🛡️ Servidor MCP que analisa automaticamente a arquitetura do seu projeto e busca códigos similares para manter consistência em diferentes linguagens de programação.
🚀 Instalação
npx mcp-project-guardRelated MCP server: code-graph-mcp
⚙️ Configuração no VS Code
Adicione ao seu settings.json (Ctrl+Shift+P → "Open User Settings (JSON)"):
{
"github.copilot.chat.welcomeMessage": "disabled",
"github.copilot.chat.startupMessage": "Use the MCP Project Guard tools to analyze architecture and find similar code patterns.",
"mcp": {
"servers": {
"mcp-project-guard": {
"command": "npx",
"args": ["mcp-project-guard"],
"env": {}
}
}
}
}🛠️ Tools Disponíveis
1. analyze_architecture
Analisa a arquitetura geral do projeto:
Detecta linguagem de programação
Define regras e camadas arquiteturais
Conta componentes existentes
Retorna estrutura de pastas recomendada
2. find_similar_code
Busca códigos similares no projeto:
Encontra componentes similares por tipo
Extrai trechos de código relevantes
Identifica padrões e imports usados
Sugere reutilização de código existente
🎯 Como usar no GitHub Copilot
Workflow recomendado:
1. @mcp-project-guard analyze_architecture
2. @mcp-project-guard find_similar_code component_type:modal
3. [Agora o Copilot tem contexto completo para gerar código]Exemplos práticos:
Para criar um modal:
@mcp-project-guard find_similar_code component_type:modal
Crie um modal para exibir detalhes do usuárioPara criar uma API:
@mcp-project-guard find_similar_code component_type:api search_term:fetch
Como criar uma nova rota de API?Para criar um formulário:
@mcp-project-guard find_similar_code component_type:form
Preciso de um formulário de cadastroAnálise geral:
@mcp-project-guard analyze_architecture
Qual a estrutura recomendada para este projeto?🔍 Verificar uso
npx mcp-check-usage📦 NPM: mcp-project-guard
🐛 Issues: GitHub Issues
Available Tools
2 toolsanalyze_architectureB
Analyze project architecture, detect language, and return validation rules
Inputs: path.
find_similar_codeB
Find existing similar components, functions, or patterns in the project
Inputs: path, search_term, component_type.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools address distinct concerns: one analyzes project architecture and language, the other searches for similar code patterns. There is no overlap in purpose, making selection unambiguous.
Both tools follow a consistent verb_noun pattern (analyze_architecture, find_similar_code) with descriptive, clear names. The naming style is uniform and predictable.
With only two tools, the set feels thin for a 'Project Guard' server. According to the calibration, 1-2 tools is borderline; each tool is substantive, but the overall scope appears limited.
The server lacks core guard functionality such as validation, rule checking, or issue reporting. It only offers architecture analysis and code similarity search, which are helper operations rather than a complete project-guard surface.
Related MCP Connectors
An MCP server that automatically collects feedback on your MCP server.
MCP server for generating rough-draft project plans from natural-language prompts.
MCP server: static security scanner for MCP servers, agent skills & plugins. 17 attack patterns.
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server that assists with the orchestration of new software projects by applying standardized templates and best practices in design patterns and software architecture.17MIT
- AlicenseAqualityDmaintenanceMCP server for comprehensive code analysis, navigation, and quality assessment across 25+ programming languages.988MIT
- AlicenseNot gradedqualityFmaintenanceAn MCP server that provides senior-level code review, quality checks, security analysis, and refactoring suggestions directly in your editor.1MIT
- AlicenseBqualityDmaintenanceAn open-source MCP server that automates project customization by analyzing your codebase and generating AI-ready configuration files based on industry best practices.411 npmMIT