Skip to main content
Glama
Amaru221

Universal Architecture Context MCP Server

by Amaru221

🧭 Universal Architecture Context MCP Server

Un servidor Model Context Protocol (MCP) ligero, dinámico y totalmente universal. Está diseñado para mapear y transmitir la estructura de arquitectura de cualquier proyecto de software a asistentes de IA (como OpenCode), reduciendo hasta un 90% el consumo de tokens al evitar la exploración recursiva e individual de archivos.


⚡ Características

  • 🧠 Agnóstico y Universal: Compatible con Symfony, React, Node, Go, Rust, Python, Java, C#, etc.

  • 🏢 Autodetección de Arquitectura: Reconoce automáticamente si el repositorio es un monolito o un monorepo/multiproyecto (ej. proyect-api y proyect-front).

  • 📂 Clasificación Dinámica: Inspecciona el directorio de código fuente (src, app, lib, pkg) y agrupa los archivos según su carpeta de primer nivel (componentes, controladores, entidades, hooks, utils, etc.).

  • 🪟 Cross-Platform: Soporte nativo y normalización de rutas para Windows, macOS y Linux.


Related MCP server: spring-api-intel-mcp

🛠️ Herramientas MCP Expuestas

Herramienta

Parámetros

Descripción

list_modules

Ninguno

Devuelve el tipo de arquitectura detectada (monolito o multiproyecto) y la lista de módulos/subproyectos encontrados.

get_project_structure

module (Opcional)

Devuelve la estructura dinámica de carpetas y archivos. Si no se indica module, analiza todo el repositorio.


🚀 Instalación y Compilación

  1. Clonar/Ubicar el repositorio en tu proyecto:

    cd mcp-architecture-context

Available Tools

2 tools
get_project_structureA

Devuelve la estructura de carpetas y archivos. Si no se indica 'module', devuelve la estructura completa de todo el proyecto.

ParametersJSON Schema
NameRequiredDescriptionDefault
moduleNoNombre opcional del módulo o subproyecto (ej: 'dayone-api', 'dayone-front', 'core', etc.).

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the burden. It discloses the key behavioral trait: omitting 'module' returns the full project structure. However, it doesn't mention whether this is a read-only operation, performance implications, or what the output format looks like. For a read-only structure tool, this is adequate but not rich.

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?

Two sentences, front-loaded with the core purpose, and the conditional behavior is stated efficiently. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only tool with one optional parameter and no output schema, the description is mostly complete. It explains the main behavior and the parameter's effect. It could mention the output format or that it's read-only, but given the simplicity, this is sufficient.

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?

Schema description coverage is 100%, so the schema already documents the 'module' parameter. The description adds the behavioral meaning: if not provided, full structure is returned. This adds value but doesn't go beyond what the schema plus the main description already imply.

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 returns the folder and file structure, and specifies the scope behavior when 'module' is not provided. It distinguishes itself from list_modules by focusing on structure rather than module listing, though it doesn't explicitly name the sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context: use it to get the project structure, and optionally narrow to a module. It implies the alternative list_modules is for listing modules, but doesn't explicitly state when to use one over the other. The conditional behavior is clearly explained.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_modulesB

Lista todos los módulos/subproyectos detectados en el repositorio y su tipo de arquitectura (monolito o multiproyecto).

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full responsibility for behavioral disclosure. It does not state whether the operation is read-only, whether it requires any permissions, or if it has side effects. The phrase 'detected in the repository' implies a scanning action but does not clarify the tool's safety profile.

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, concise sentence that front-loads the primary action and output. There is no waste; every word contributes to the tool's purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a parameterless tool with no output schema, the description sufficiently explains what the tool returns (list of modules and architecture type). An agent can invoke it without additional information. It is complete for the tool's simplicity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters and the schema is empty, so the description adds no parameter information. According to the rubric, with 0 params the baseline is 4, and the description does not need to explain parameters. It correctly stays silent on them.

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 lists modules/subprojects and their architecture type, using a specific verb and resource. However, it does not explicitly differentiate from the sibling tool get_project_structure, though the mention of architecture type provides some distinction.

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?

There is no guidance on when to use this tool versus get_project_structure. No context, prerequisites, or exclusions are provided, leaving the agent to infer the appropriate use case.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 2 tool updatesv1.0.0
    • First observedget_project_structure
    • First observedlist_modules

TDQS

A3.6/5.0

Scored across 2 tools

Disambiguation5/5

Only two tools with clearly distinct purposes: one lists modules and their architecture types, the other returns file/folder structure. No overlap in functionality.

Naming Consistency5/5

Both tool names follow a consistent verb_noun pattern: list_modules and get_project_structure. The verbs (list, get) and nouns (modules, project_structure) are clear and predictable.

Tool Count3/5

With only 2 tools, the server feels thin for a domain as broad as 'Universal Architecture Context'. While each tool is useful, the set is borderline minimal and might benefit from additional tools like get_module_details or get_dependencies.

Completeness2/5

The two tools cover basic inspection (modules and structure) but miss significant aspects of architecture analysis such as dependency graphs, architectural pattern detection, or per-module configuration details. For a server claiming 'Universal Architecture Context', the surface is notably incomplete.

Related MCP Connectors

Related MCP Servers