New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

realworld-angular-patterns-mcp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

realworld-angular-patterns-mcp

MCP server for Realworld Angular patterns

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

Realworld Angular Patterns - MCP Server

MCP (Model Context Protocol) server that provides enterprise Angular patterns to AI assistants.

🚀 Quick Setup

1. Install Dependencies

cd mcp-server
npm install
npm run build

2. Configure Cursor MCP

Add this to your Cursor settings (~/.cursor/mcp_servers.json):

{
  "mcpServers": {
    "realworld-angular-patterns": {
      "command": "node",
      "args": ["/path/to/realworld-patterns/mcp-server/dist/index.js"]
    }
  }
}

Or install globally:

# Install globally
npm install -g realworld-angular-patterns-mcp

# Then configure Cursor
{
  "mcpServers": {
    "realworld-angular-patterns": {
      "command": "realworld-angular-patterns-mcp"
    }
  }
}

3. Use in Cursor

Once configured, Cursor can:

  • Validate Angular code against enterprise patterns
  • Generate code templates following patterns
  • Access pattern rules for suggestions
  • Enforce dependency boundaries automatically

🎯 Available Resources

The MCP server provides:

ResourceDescription
patterns://angular/rulesComplete enterprise Angular patterns
patterns://angular/templatesReusable code templates
patterns://angular/validationValidation rules

🛠️ Available Tools

ToolDescription
validate-angular-codeValidates code against patterns
generate-angular-templateGenerates pattern-compliant templates

📝 Usage Examples

Validation

// Cursor will automatically validate this component:
@Component({
  selector: "app-user-list",
  standalone: true, // ✅ Required pattern
  imports: [CommonModule],
  template: `
    <div class="container-fluid">
      <!-- ✅ Bootstrap pattern -->
      @if (loading()) {
      <!-- ✅ Angular 18+ pattern -->
      <div class="spinner-border"></div>
      }
    </div>
  `,
})
export class UserListComponent {
  loading = signal(false); // ✅ Signals pattern
}

Code Generation

Ask Cursor: "Generate a user service following realworld patterns"

Result:

@Injectable({ providedIn: "root" })
export class UserService {
  private http = inject(HttpClient);
  private _state = signal(initialState);
  state = this._state.asReadonly();
}

🔧 Development

# Development mode
npm run dev

# Build for production
npm run build

# Test the server
npm start

📦 Publishing

# Publish to NPM
npm run build
npm publish

🎯 Integration with Other Tools

Claude Desktop

{
  "mcpServers": {
    "realworld-patterns": {
      "command": "realworld-angular-patterns-mcp"
    }
  }
}

VS Code (when MCP support is added)

{
  "mcp.servers": [
    {
      "name": "realworld-patterns",
      "command": "realworld-angular-patterns-mcp"
    }
  ]
}

🌟 Benefits

Real-time validation of Angular code
Automatic pattern enforcement
Template generation following enterprise standards
Dependency boundary checking
Bootstrap-only CSS validation
Signals-based state management guidance

Your AI assistant now understands and enforces your enterprise Angular patterns automatically! 🎉

npm deploy

cd mcp-server
npm pack
npm install -g realworld-angular-patterns-mcp-1.0.0.tgz

FAQs

Package last updated on 28 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts