MCP Project Guard
Click on "Install 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 GuardFind 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
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Project path to analyze | /app |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the burden of behavioral disclosure. It only states the basic function (analyze, detect, return) without explaining side effects, read-only status, error handling, or what exactly 'validation rules' means. This leaves significant ambiguity for a tool with no annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence of 12 words, front-loaded with the core action ('Analyze project architecture'). Every word contributes meaning, and there is no redundancy or filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has one simple parameter and no output schema or annotations, so the description must carry the full context. It covers the main function but leaves key details unexplained, such as what 'validation rules' are, how they are returned, and any prerequisites or limitations. This makes it adequate but incomplete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema already provides a description for the 'path' parameter (100% coverage). Since there is only one parameter and its meaning is fully documented in the schema, the description adds no additional param semantic value. Baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a clear verb ('analyze') and resource ('project architecture'), and adds expected outputs (detect language, return validation rules). It does not explicitly distinguish from find_similar_code, but the purpose is unambiguous enough that a 4 is appropriate.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies its usage by stating what it does, but it provides no explicit guidance on when to use this tool versus find_similar_code, nor any exclusions or alternative recommendations. This is a case of implied usage.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
find_similar_codeB
Find existing similar components, functions, or patterns in the project
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Project path to search in | /app |
| search_term | No | Specific term to search for in code (optional) | |
| component_type | No | Type of component/code to find (e.g., 'modal', 'button', 'api', 'form', 'service') | component |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It fails to state that the tool is read-only, how 'similar' is determined, or whether there are any side effects. The description is minimal and does not add meaningful behavioral context beyond the basic action.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that front-loads the action ('Find existing similar') and clearly states the scope ('in the project'). It contains no extraneous information and is appropriately sized for the tool's simplicity. Every word earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is relatively simple with three optional parameters and no output schema. The description explains the core purpose but omits details about what the results look like, how the search behaves, or any limitations. For a basic search tool, this is adequate but not comprehensive, leaving the agent without expectations for return format or edge cases.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% coverage: each parameter has a description (path, search_term, component_type). The tool description itself adds little beyond the schema, but it does align with the 'component_type' parameter by mentioning 'components, functions, or patterns'. Since the schema already explains parameters, a baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: 'Find existing similar components, functions, or patterns in the project'. It uses a specific verb and resource, effectively differentiating it from the sibling tool 'analyze_architecture' by focusing on finding similar code rather than analyzing architecture. However, it does not explicitly name alternatives or contrasts, so it stops short of a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no explicit guidance on when to use this tool versus alternatives. It implies usage for locating reusable code but omits any context about scenarios where it would be preferred over 'analyze_architecture' or other approaches. There are no exclusions or prerequisites mentioned.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
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.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.
A MCP server built for developers enabling Git based project management with project and personal…
MCP Server for JFrog, providing tools for development and artifact management.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn 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
- AlicenseNot gradedqualityDmaintenanceAn open-source MCP server that automates project customization by analyzing your codebase and generating AI-ready configuration files based on industry best practices.21MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Brunogar6/mcp-project-guard'
If you have feedback or need assistance with the MCP directory API, please join our Discord server