# MCP Tools Reference

Lists all available MCP tools with their descriptions.

## Core Tools (6)
| Tool | Description |
|------|-------------|
| `validate_conventions` | Validate SmartStack conventions (tables, migrations, services, namespaces, controllers) |
| `check_migrations` | Analyze EF Core migrations for conflicts and ordering issues |
| `scaffold_extension` | Generate code: feature, entity, service, controller, component, dto, validator, repository |
| `api_docs` | Get API documentation from Swagger/OpenAPI or controller files |
| `suggest_migration` | Suggest migration name following SmartStack conventions |
| `generate_permissions` | Generate RBAC permissions (HasData for PermissionConfiguration.cs) |

## Test Tools (4)
| Tool | Description |
|------|-------------|
| `scaffold_tests` | Generate test files for entities, services, controllers |
| `analyze_test_coverage` | Analyze test coverage and identify missing tests |
| `validate_test_conventions` | Validate test naming and structure conventions |
| `suggest_test_scenarios` | Suggest test scenarios based on code analysis |

## Frontend Tools (5)
| Tool | Description |
|------|-------------|
| `scaffold_routes` | Generate frontend routes from backend NavRoute attributes |
| `validate_frontend_routes` | Validate frontend routes match backend NavRoutes |
| `scaffold_api_client` | Generate TypeScript API client with React Query hooks |
| `scaffold_frontend_extension` | Generate frontend extension infrastructure (types, slots, contexts) |
| `analyze_extension_points` | Analyze React components for extension points |

## Security & Quality Tools (4)
| Tool | Description |
|------|-------------|
| `validate_security` | Validate OWASP security patterns |
| `analyze_code_quality` | Analyze code quality metrics |
| `analyze_hierarchy_patterns` | Analyze entity hierarchy patterns |
| `review_code` | Comprehensive code review with security, performance, a11y checks |

## Output Format

```
MCP TOOLS REFERENCE

CORE TOOLS (6)
  validate_conventions    Validate SmartStack conventions
  check_migrations        Analyze EF Core migrations
  scaffold_extension      Generate code (entity, service, etc.)
  api_docs                Get API documentation
  suggest_migration       Suggest migration name
  generate_permissions    Generate RBAC permissions

TEST TOOLS (4)
  scaffold_tests          Generate test files
  analyze_test_coverage   Analyze test coverage
  validate_test_conventions  Validate test conventions
  suggest_test_scenarios  Suggest test scenarios

FRONTEND TOOLS (5)
  scaffold_routes         Generate frontend routes
  validate_frontend_routes  Validate route alignment
  scaffold_api_client     Generate TypeScript API client
  scaffold_frontend_extension  Generate extension infrastructure
  analyze_extension_points  Analyze React extension points

SECURITY & QUALITY TOOLS (4)
  validate_security       Validate OWASP patterns
  analyze_code_quality    Analyze code quality
  analyze_hierarchy_patterns  Analyze hierarchy patterns
  review_code             Comprehensive code review

Total: 19 tools available
```
