Agents as a Service
MCP-Native Registry12 Blocks

Production Code.One Command.

Composable, version-verified code blocks for Next.js 16. Your AI agent discovers them via MCP. You install with a single CLI command. Auth, payments, email, dashboards — shipped in seconds, not hours.

Connect

Connect Your Agent in 10 Seconds

Claude Code

claude mcp add --transport http aaas-blocks \
  https://mcp.aaas.blog/mcp

Cursor

// .cursor/mcp.json
{
  "mcpServers": {
    "aaas-blocks": {
      "url": "https://mcp.aaas.blog/mcp"
    }
  }
}

VS Code

// .vscode/mcp.json
{
  "servers": {
    "aaas-blocks": {
      "type": "http",
      "url": "https://mcp.aaas.blog/mcp"
    }
  }
}

Then ask your agent: "Search for auth blocks" or "What code blocks are available?"

Architecture

Three-Layer Dependency Model

Blocks compose upward. Features depend on integrations. Integrations depend on foundations. Your agent checks compatibility automatically.

Layer 3 — Feature

Dashboard, Onboarding, Landing Page

3
Layer 2 — Integration

Stripe, Resend, Blob, PostHog

4
Layer 1 — Foundation

Auth, Database, Config

5
Catalog

12 Production Blocks

Every block is version-pinned and verified against Next.js 16.1.0. Copy-paste free.

foundation

auth/clerk5 files

Clerk Authentication

Proxy middleware, sign-in/up pages, server helpers, UserButton

authclerkoauth
@clerk/nextjs 7.0.0
auth/authjs4 files

Auth.js v5 Authentication

Google + GitHub OAuth, JWT sessions, SessionProvider, sign-in/out buttons

authnextauthoauth
next-auth 5.0.0-beta.30
db/drizzle-neon4 files

Drizzle ORM + Neon Postgres

Config, schema, migrate, seed — zero-config serverless database

databasedrizzleneon
drizzle-orm 0.45.2
config/typescript1 files

TypeScript Strict Config

Strict tsconfig with path aliases and Next.js 16 types

configtypescriptstrict
TypeScript 5.7
config/eslint2 files

ESLint Flat Config + Prettier

ESLint 9 flat config with Next.js plugin and formatting rules

configeslintprettier
eslint 9.17

integration

payments/stripe5 files

Stripe Payments

Checkout sessions, webhook handler, customer portal — full billing stack

paymentsstripecheckout
stripe 21.0.0requires auth/*
email/resend3 files

Resend Email

Resend client, React Email templates, typed send helper

emailresendreact-email
resend 4.0.0
storage/blob3 files

Vercel Blob Storage

Upload route, client component, URL helpers — file storage in seconds

storageblobupload
@vercel/blob 0.27.0
analytics/posthog3 files

PostHog Analytics

Provider, event tracking, pageviews, feature flags — full product analytics

analyticsposthogfeature-flags
posthog-js 1.200.0

feature

feature/landing4 files

SaaS Landing Page

Hero, features grid, pricing table, footer — launch-ready in one command

landingsaasmarketing
Next.js 16.1.0
feature/dashboard5 files

Admin Dashboard

Sidebar navigation, stat cards, data table — authenticated admin shell

dashboardadminsidebar
Next.js 16.1.0requires auth/*
feature/onboarding3 files

Onboarding Wizard

Multi-step wizard with progress indicator and field validation

onboardingwizardforms
Next.js 16.1.0requires auth/*
MCP Surface

5 Agent-Native Tools

search_blocks

Full-text search across all blocks. Returns matches with install commands.

"auth", "database", "stripe payments"

get_block

Full metadata, README documentation, dependencies, and environment variables.

"auth/clerk", "db/drizzle-neon"

get_block_code

Actual source code files. Single file or all files for a block.

"auth/clerk" → 5 TypeScript files

list_by_layer

Browse all blocks in a specific layer with descriptions.

"foundation" | "integration" | "feature"

check_compatibility

Given installed blocks, shows what you can add and what foundations are missing.

["auth/clerk"] → compatible: payments/stripe, feature/dashboard

Workflow

From Prompt to Production

01

Agent discovers

You say "I need auth for my Next.js app." Your agent queries the MCP and finds auth/clerk.

02

Agent reads the code

The agent calls get_block_code to understand the implementation — middleware, routes, components.

03

Agent checks compatibility

check_compatibility confirms which blocks you can add next. Missing foundation? It tells you.

04

You install

npx @aaas/blocks add auth/clerk — files land in your project, dependencies install, env vars are documented.

Pricing

Free. Open Source.

Every block is MIT-licensed. The MCP server is free to connect. The CLI is free to use. No API key required. No sign-up. No limits.

12
Code Blocks
3
Composable Layers
$0
Price

Want custom blocks for your stack? Book a call — custom block development starts at EUR 500.

Ready to deploy?

Initialize Your
Autonomous Workforce

Start with the API — 500 free credits on signup. Or book a call to scope custom agent workflows for your business.