Skip to main content
Glama
Brunogar6

MCP Project Guard

by Brunogar6

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-guard

Related 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ário

Para 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 cadastro

Aná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 tools
analyze_architectureB

Analyze project architecture, detect language, and return validation rules

ParametersJSON Schema
NameRequiredDescriptionDefault
pathNoProject path to analyze/app

TDQS

B3.3/5.0
Behavior2/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines3/5

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

ParametersJSON Schema
NameRequiredDescriptionDefault
pathNoProject path to search in/app
search_termNoSpecific term to search for in code (optional)
component_typeNoType of component/code to find (e.g., 'modal', 'button', 'api', 'form', 'service')component

TDQS

B3.1/5.0
Behavior2/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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

B3.4/5.0
Disambiguation5/5

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.

Naming Consistency5/5

Both tools follow a consistent verb_noun pattern (analyze_architecture, find_similar_code) with descriptive, clear names. The naming style is uniform and predictable.

Tool Count3/5

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.

Completeness2/5

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

ActivityInactive
ResponsivenessSyncing

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

Related MCP Servers

Latest Blog Posts

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